Offline & sync
Local-first storage makes the app instant and offline-capable; real-time sync keeps every device and teammate current.
createtodo is local-first: your workspace is stored in a database inside your browser. The app reads and writes locally, which is why it opens instantly and every interaction feels immediate — no spinner between you and your todos.
Real-time sync
Changes are streamed to the server and out to every other tab, device, and teammate the moment they happen. There is no save button and no refresh; a todo a teammate closes — or an agent files from a terminal — appears in your list as it happens, and a row that changed under you pulses once so you notice. View settings, favorites and drafts travel the same way. If a newer change from another device or member replaced an edit of yours, a toast says so — naming the todo and the fields that were replaced — and offers Use mine to put your edit back.
Working offline
Because the app runs against local data, losing your connection doesn’t stop you. Keep creating, editing, and completing todos; changes queue locally and flush automatically when you’re back online.
The sync indicator
The workspace menu — the workspace name at the top of the sidebar — opens with where things stand: Synced, Syncing changes, Offline (“Saved locally”), or Sync issue, with the detail under it. After a reload the app shows your local data at once and a Syncing local database… toast while it catches up in the background.
If the server refuses a change — typically a tab running a build older than the API — the changes are held rather than lost: the workspace menu shows the server’s message and offers Retry now. Held changes also retry on their own: refused ones after a deploy, and ones the server failed on after 1, 5 and 15 minutes, then every 15 minutes, and whenever you come back online, return to the tab, or another change saves.
If changes sit unaccepted for about a minute — the tab that sends them is asleep, or the server isn’t answering — the indicator turns amber: Not saved to server, with how many changes are waiting and since when, and an amber dot next to the workspace name. Retry now wakes the sending tab; the state clears only once the server accepts the changes, so if it stays amber, nothing got through yet. Your changes are still saved locally. One tab sends the changes of every tab you have open; if it stops answering, another tab takes over within seconds, and a save the server never answers is given up after 150 seconds and sent again.
A device opening a workspace for the first time has nothing local to show yet. If the sync server can’t be reached then, every open tab says Can’t reach the sync server after ten seconds, with Reload, and the workspace opens by itself once the server answers.
Collaborative editing
Todo descriptions go further than last-write-wins: they are collaborative documents, so simultaneous edits from multiple people or agents merge cleanly instead of overwriting each other. Other fields take the last write.
The CLI, offline
ct pull builds the same kind of local replica for the command line, so
ct ready, ct list, ct show and ct prime keep working without a connection, and
writes made offline wait in ct queue until the next online run.