← All work

Work · 2024

Lattice

A realtime editor where every cursor converges, even after a flight with no wifi.

RoleSenior engineer
WhereNorthwind
Year2024
StackTypeScript, CRDT, WebSocket
0

The problem

Teams edited the same document and lost work to last-write-wins. Support spent hours a week restoring overwritten paragraphs.

The approach

  1. 01Replaced the document model with a CRDT so edits merge instead of overwrite.
  2. 02Kept the server dumb: it relays and stores operations, and the clients do the thinking.
  3. 03Built a visual history so people could see who changed what and roll a single edit back.

The outcome

  • 0overwritten edits since launch
  • -90%restore requests
  • 40msmedian sync time

Screenshots

Next casePigeon →