crdt
Doc, List, Map, Composite, structured documents, awareness
a real 259 778-edit history replays in 18.4 ms and matches, character for character
A replicated document: any number of replicas edit at once, offline, over an unreliable transport, and converge. Three merging structures โ a text, a list, a map โ under one name, one snapshot and one thing to authorise; and a layer of document types built on them that adds no merge rule of its own: blocks, formatting, spreadsheets, isometric diagrams, movable trees, counters, sets, handwriting, chunked files, undo, and changes put up for review. Characters are stored as runs โ a thousand typed in a row cost one header and their text โ and the document walks both ways, so editing stays local. Convergence is proven by exhaustive permutation, not sampling. Zero dependencies, CGO=0, 100% statement coverage, and the whole suite runs as WebAssembly under Node in CI.