Glossary
CRDT (conflict-free replicated data type)
Definition
CRDT: A conflict-free replicated data type: a data structure whose copies can be updated independently and concurrently without coordination, and whose merge is commutative, associative and idempotent, so all copies converge to the same state once they have received the same updates.
Also known asconflict-free replicated data typeconvergent replicated data typecommutative replicated data type
In short
A CRDT (conflict-free replicated data type) is a way of storing shared data so that copies on different devices can be edited independently, even offline, and still converge on the same result once they exchange changes. Its merge gives the same answer in any order and ignores duplicates, so no server has to read or order the edits. That makes CRDTs a natural fit for end-to-end encrypted collaboration.
Key takeaways
- CRDT replicas accept edits without coordinating and are guaranteed to converge.
- The merge is commutative, associative and idempotent, so order and duplicates don't matter.
- A last-writer-wins register is the simplest CRDT, at the cost of losing one of two simultaneous edits.
- Text editors use sequence CRDTs that give every character a stable identity.
- Because merging happens on each device, the server can store and relay encrypted changes it can't read.
Last reviewed 3 December 2026 by Foxcolab Team
A CRDT, or conflict-free replicated data type, is a way of storing shared data so that copies on different devices can be edited independently, even offline, and still end up identical once they've swapped changes, with no server deciding the order. Shapiro, Preguiça, Baquero and Zawirski formalized the idea in a 2011 paper: "an update does not require synchronisation, and CRDT replicas provably converge to a correct common state." CRDTs are what let several people type in the same document at once and all see the same result.
How convergence works#
The paper shows that a state-based CRDT's merge has three properties:
| Property | What it means in practice |
|---|---|
| Commutative | Merging A then B gives the same result as B then A |
| Associative | Grouping doesn't matter when three or more edits meet |
| Idempotent | Receiving the same edit twice changes nothing |
So devices can exchange changes in any order, over any connection, as often as they like, and still agree.
Common CRDTs#
- Last-writer-wins register. One value; the write with the latest timestamp wins. It's simple, but the paper notes it orders edits "at the cost of losing concurrent updates."
- Counters and sets that add and remove items without conflicts.
- Sequence CRDTs for text, which give every character a stable identity, so two people typing in the same paragraph don't overwrite each other. Libraries such as Yjs package these for apps, and its documentation notes that "Yjs doesn't need a central source of truth."
An example#
Asha and Ben open the same report on a train with no signal. Asha fixes a typo in the first sentence; Ben adds a sentence at the end. When their devices reconnect, each sends its changes and merges the other's. Both end up with the fixed typo and the new sentence, with no conflict dialog.
Why CRDTs suit end-to-end encryption#
Operational transformation, the older approach, adjusts each edit against the edits it raced with, and whatever does that adjusting has to read the edits, often a server. A CRDT merges on each device, so the server only has to store and pass changes along, and those changes can be encrypted before they leave the device.
In Foxcolab#
Foxcolab Docs, Notes and Whiteboard keep each document in a CRDT, and every change is encrypted on your device before it's sent, so Foxcolab's servers store and relay changes they can't read. Foxcolab Sheets uses last-writer-wins registers for cells and a CRDT for rows, columns and sheet structure. In Docs, Notes and Sheets, changes the server hasn't confirmed wait in an encrypted outbox on your device and go out when you reconnect. For the details, read real-time collaboration in an encrypted spreadsheet.
Keep exploring
Related terms
- Co-authoringCo-authoring is several people editing the same document at the same time, each seeing the others' changes as they type. Few people ask whether the service in the middle can read it all.
- End-to-end encryption (E2EE)End-to-end encryption keeps data encrypted from the sender's device to the recipient's device, so the servers in between only ever handle ciphertext.
- Version historyVersion history is the saved trail of a document's past states, so you can see what changed, who changed it and when, and roll back a mistake in a few clicks.
- Collaboration softwareCollaboration software is the set of apps a team uses to work on the same things together, from shared documents and chat to meetings and file storage. Who can read what you put in it varies widely.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.