Repository navigation
Profile Document
English · 한국어
The client stores a private profile in the same encrypted vault as journal entries. Display ID is not a login identity or a unique public username.
Display name: 1–30 characters; Bio: 0–160; display ID: 3–20 ASCII letters, digits, or underscores, without uniqueness checks. Defaults are language-dependent Me/나 and @private; changing language does not rename a saved profile.
Images accept PNG/JPEG/WebP up to 20 MB and resize proportionally to at most 100×100px without upscaling. Canvas re-encodes PNG and drops original metadata. Display is circular; resetting the image shows the name's first character.
Profile edit buttons stay disabled and report a busy state while the current profile is loading. Composer readiness alone does not imply that the separate profile read has completed.
Open the editor from the composer on mobile (up to 680px), the bottom of the short left bar on tablets (681–1180px), or the bottom-left profile area on desktop. Editing changes only the preview until save. Success refreshes author display in the sidebar, composer, journal, and search. Bio appears in the editor preview. Closing/canceling/Escape/backdrop asks before discarding changes. While saving, block close and duplicate input. Trap keyboard focus and restore it to the trigger when closed.
Use UUID 00000000-0000-4000-8000-000000000001. Its text contains JSON { name, bio, handle, avatar }; avatar is a resized PNG data URL or null. Use existing entry encryption, Outbox, push/pull, snapshot, recovery, and backup paths. Do not attach journal photos, quotes, or pinning. The API receives no plaintext profile fields.
Exclude the UUID from journal/search readers and entry counts, but include it in internal vault enumeration for key changes, republishing, recovery, and backup. Local reset and bound-account deletion remove it. Do not decrypt/edit while PIN-locked.
It exists locally before login. Preparing recovery/sync enqueues the existing profile; offline changes retry through normal sync. A new device signs in, unlocks with the recovery code, and receives it. No additional endpoint or data migration is needed. The API recognizes the UUID, excludes its document/tombstone from entry quota, and rejects file links/uploads targeting it. Blob usage counts blob bytes. The API checkout's OpenAPI and sync protocol remain the server contract reference.
Concurrent edits preserve both encrypted versions. The editor offers keeping the current device's version or using the remote version. Accepting remote replaces the singleton rather than making an ordinary journal copy. Saving also rejects a stale edit if another tab changed the local profile; reopen the editor for the latest value.
Relevant tests: web/tests/persona.test.ts covers encryption, exclusion, key change, backup/recovery, sync/snapshot/republishing, conflicts, stale edits, locking, and invalid remote images. web/tests/e2e/persona.spec.ts checks three viewport sizes and focus/editing behavior. web/tests/e2e/api-sync.spec.ts covers two-device profile recovery, offline changes, conflicts, quota exclusion, and plaintext absence against a local API/PostgreSQL. These checks do not substitute for external SMTP, public HTTPS, or physical-device validation.
- Client development · 클라이언트 개발
- Self-hosting · 자체 호스팅
- PWA, offline use, and updates · PWA·오프라인·업데이트
- Client performance · 클라이언트 성능
- Architecture · 아키텍처
- Cryptographic format · 암호화 형식
- Image processing · 사진 처리
- Security model · 보안 경계
- Product principles · 제품 원칙
- Dependency licenses · 의존성 라이선스
- Account and sync · 계정과 동기화
- Backup and recovery · 백업과 복구
- Entry quotes · 기록 인용
- Profile document · 프로필 문서