Sync and accounts Typbase is local-first. Pages, settings, chats, plugin state, and media live in the local workspace. An account adds sync, collaboration, page posts, and site publishing. The workspace does not need an account to open or s…
Read full update
Sync and accounts Typbase is local-first. Pages, settings, chats, plugin state, and media live in the local workspace. An account adds sync, collaboration, page posts, and site publishing. The workspace does not need an account to open or save. Sign in Open the account button in the app bar and sign in with an Atmosphere host. The account dialog handles sign-in, account creation, account switching, permissions, and the data label. Accounts are device-local. Settings → Sync lists the saved accounts, with switch and remove. Removing an inactive account revokes its session. Signing out revokes the active session and falls back to the next saved account. What syncs Data How it syncs Pages Loro updates and snapshots in the workspace space. Workspace settings Part of the workspace document. Theme, fonts, AI settings, site settings, and publish defaults. Plugin state One document per plugin instance. Assets Content-addressed blobs with at.typbase.asset records. Spaces A workspace syncs through an atproto space. The workspace id is also the space key. One airspace client is built per workspace. One serial queue applies every sync mutation. Concurrent exports cannot overwrite each other’s queue. A record whose import is rejected is skipped and logged instead of blocking later records. Updates and snapshots over 75,000 base64 characters are gzipped and prefixed with gzip: . Receivers decode both forms. Collaboration The workspace space relays presence and room state through the relay. The relay is a websocket fanout with in-memory room state. It is optional. A static web deployment does not host it, so use the companion proxy or a hosted relay for live rooms. The space host’s writer set decides who can write. An invite role is a UI hint. A viewer can open the workspace but cannot write. Offline Edits made while signed out reach the sync engine on the next attach. The queue is per account and per workspace. A workspace switch cannot take another account’s cursor, queued updates, presence, or relay bytes. Join a shared workspace Sign in to the account that received the invite. Accept the invite or open the workspace link. The workspace attaches to its space and starts syncing. If writes are rejected, check the role with the space owner. Move to another device Sign in on the new device. Open the workspace from the registry or the shared link. Wait for the initial space scan. Pages open as their documents arrive. Referenced assets download on demand. Unreferenced assets stay remote.