GoDrawGoDraw

Real-time & CRDTs

Stable

Everyone edits their own copy, and the math makes them agree.

How GoDraw merges simultaneous edits without conflicts and shares live presence.

The idea

Multiplayer editing has a hard problem at its heart: what happens when two people change the same thing at the same moment? GoDraw's answer is a CRDT, a conflict-free replicated data type (built on Yjs). Everyone works on their own local copy of the board, and the structure is designed so that all copies always converge to the same result, no matter what order edits arrive in.

Two people editing, copies converging to one result
Independent edits, guaranteed to converge

How it works

There's no central lock that hands out "your turn" permission. Each person's edits apply instantly to their own copy and then flow out to everyone else, where the CRDT merges them automatically. The guarantee is mathematical, not negotiated: two edits to the same region don't corrupt each other; they combine in a defined way.

Presence rides on a separate, lightweight awareness channel: live cursors, who's online, and each person's color, plus short-lived signals like cursor chat messages, high-fives, spotlight, and in-progress votes. Keeping presence apart from the document matters: cursors flicker many times a second and shouldn't be tangled up with the durable content of the board.

Locally, your changes persist to the browser so nothing is lost on a refresh, and they sync to others over a websocket relay.

Why it works this way

A CRDT trades a little extra bookkeeping for a big payoff: no server round-trip to ask permission before you draw, and no merge conflicts to resolve by hand. It's the same principle behind GoDraw's fractional indexing, where each change is independent enough to merge on its own.

Was this helpful?