Why Duolance works offline

Most web workspaces treat the server as the place where a document lives. Your browser shows a copy, and every keystroke has to make a round trip before it counts. When the connection drops, the page freezes or, worse, quietly loses what you typed.
Duolance turns that around. It is local-first: the page you are editing lives on your device, and the server is where devices meet to exchange changes.
What local-first means in practice
- Pages open instantly. A page you have opened before loads from your device, not from the network.
- Typing never waits. Edits are saved locally as you type, whatever the connection is doing.
- Offline is a normal state. On a plane or on unreliable Wi-Fi you keep writing. The sync indicator tells you when changes are waiting.
- Every tab stays in step. Open the same page in several tabs and they update each other immediately.
How changes merge
The hard part of local-first software is what happens when two people edit the same page while one of them is offline. Duolance uses CRDTs (conflict-free replicated data types), a family of data structures designed so that changes made independently can always be combined into the same result, in any order.
In practice, that means your paragraph and your colleague’s paragraph both survive. Nobody gets a “conflicting copy” to resolve by hand, and nobody’s work is silently overwritten.
What is still in progress
Page content works offline today. Creating and moving pages in the sidebar while offline is the next step: those changes are currently held in memory and need a connection before the tab is closed. A persistent offline queue for the page tree is on our roadmap.