How GoDraw Works
StableYour boards live in your browser first, the cloud second.
A big-picture tour of GoDraw's local-first storage, canvas rendering, and real-time collaboration.
The idea
GoDraw is local-first. Whatever you draw lives in your browser right away, so the app stays fast and works even when the network blinks. When you sign in, those boards sync up to the cloud so they follow you between devices and can be shared.
How it renders
The drawing surface is a raw HTML5 Canvas 2D engine, not a tree of SVG DOM nodes. Painting pixels directly is much faster when a board fills up with hundreds of shapes. To avoid redrawing everything on every change, GoDraw splits the work across layered renderers (a background, the main content, and an overlay), so only the layer that actually changed gets repainted. See Rendering for the details.
That signature hand-drawn look comes from a sketchy-rendering library that nudges each outline slightly off-true, so a perfect rectangle reads like a quick pen sketch.
How people draw together
Real-time collaboration is built on a CRDT, a data structure where everyone edits their own copy and the math guarantees all copies converge to the same result, no central lock required. That is why two people can move the same area at once without clobbering each other. More in Real-time & CRDTs.
Even something as small as stacking order is built to merge cleanly: layer order uses fractional indexing, so moving one shape forward changes a single value instead of renumbering the whole board. See Z-ordering.
Tip
Each idea below stands on its own. Start with whichever matters most for what you're building.