Most of us keep our written lives inside someone else's servers: one login away on any device, and one outage or policy change away from nothing. A growing movement of apps flips that arrangement, and AFFiNE is one of its most visible examples.
The trending query toeverything/AFFiNE was climbing GitHub Trending in late November 2026, which is why it earns a closer read here (the project lives at github.com/toeverything/AFFiNE). The durable idea is local-first software, a design philosophy with real consequences for who controls your documents and how collaboration actually works.
Local-first: offline as the default case
Cloud-first apps store your data on a vendor's servers and lend you a view of it, which is why losing connection means losing access. Local-first apps invert that: data lives on your device first, and the cloud is treated as sync, not storage. Offline stops being an error state and becomes the normal, fully functional case.
The difference sounds subtle until something breaks. A local-first editor opens instantly, works on a plane or in a dead zone, and cannot lock you out, because the copy you edit is the real copy. The vendor's servers become one more place the data is replicated, not the place it lives. The lesson is that where the primary copy of data lives decides who is actually in control.
CRDTs: merging edits without a referee
Syncing multiple copies raises an obvious problem: two people edit the same sentence offline, and later both versions exist. CRDTs, or conflict-free replicated data types, are the data structures that answer it: every edit is recorded in a form that can be merged in any order, so all copies converge to the same result without a server deciding the winner. The math guarantees agreement by construction.
This is the machinery behind Google-Docs-style collaboration, but CRDTs extend it past the cloud: edits merge between devices directly, even after long offline stretches. A collaborative editor that never talks to a server can still merge with a teammate over any channel. The lesson is that conflict resolution can live in the data itself, which is what makes local-first collaboration possible at all.
Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.
One block model, and why open formats matter
AFFiNE's other notable idea is convergence: documents, whiteboards, and databases stop being separate file types and become one block model, where a page is a tree of typed blocks and a table row, a sticky note, or a paragraph are all just blocks with different types. Structure, not format, becomes the foundation, and the same content can be viewed as a document or a canvas.
The open-source angle carries the deeper point: file formats and APIs are power, because who can leave with their data, and in what condition, shapes the whole market. When a workspace exports cleanly and the code is inspectable, switching costs shrink and vendors compete on the product instead. The lesson is that data portability is not a feature detail; it is the balance of power between you and your tools.
| Approach | Where data lives | What happens offline |
|---|---|---|
| Cloud-first | Vendor's servers | Locked out or read-only |
| Local-first | Your device first | Fully usable; edits sync later |
| Sync layer | Copies converge via protocol | Edits merge without conflicts |
Key takeaways
- Local-first apps keep the primary copy of data on your device and treat the cloud as sync, not storage.
- Offline becomes the default, fully functional case rather than an error state.
- CRDTs let copies merge edits without a server deciding the winner, enabling collaboration without a central referee.
- A page can be a tree of typed blocks, letting documents, whiteboards, and databases converge.
- File formats and APIs are power: portability of your data shapes the market.
Quick answers
What is local-first software?
Apps that store your data on your device first and use the cloud for synchronization rather than as the only copy.
What is a CRDT?
A conflict-free replicated data type: a structure whose edits merge in any order so all copies converge to the same result.
Do local-first apps still collaborate?
Yes: edits merge between devices directly, with or without a central server.
What does the block model mean?
A page is a tree of typed blocks, so documents, whiteboards, and tables share one underlying structure.
Why do open formats matter?
They decide whether you can leave with your data intact, which keeps vendors honest and switching affordable.
One thing to do tonight
Check where the text you wrote today physically lives: device, server, or both, and whether you could export it completely. Knowing the answer for your three most important tools tells you exactly how much of your written work you actually own.