Work/SynapseStudio
EDTECH · WEBSOCKETS · 2023

Synchronizingcollaborative canvasesat 60 FPS in real time.

// ClientSynapse Labs
// Timeline14 weeks · Q3 2023
// Our RoleReal-Time Systems · Canvas Engineering · Distributed State Sync
SCREEN_06 // VECTOR_CANVAS|LATENCY: 19ms
STATUS: LIVE
LOC: EU_WEST_LON
ENC: BINARY-WS / YJS
SYNAPSESTUDIO

Infinite Canvas Spatial Partitioning & CRDT Multi-User Collaboration

01 / The Problem

Hundreds of remote designers. Canvas stuttering on iPads. Nasty merge conflicts on shared boards.

SynapseStudio set out to create an unconstrained infinite vector whiteboard for collaborative product design and educational workshops. Early prototypes built with standard SVG DOM trees froze whenever more than twenty participants drew simultaneously.

Worse, operational transformation (OT) synchronization code frequently corrupted grouped vector paths and erased stroke histories during simultaneous offline reconnects.

Synapse partnered with Codedway to rebuild their vector canvas from the ground up using GPU hardware acceleration and Conflict-free Replicated Data Types (CRDTs).

500+
concurrent active peers per infinite canvas room
0.00%
state sync conflict rate achieved via Yjs CRDTs
60 FPS
silky rendering speed sustained on mobile and low-powered tablets
02 / Our Approach

GPU spatial acceleration paired with deterministic CRDT convergence.

Phase 01

Canvas Core (Wk 1–4)

Replacing SVG DOM with custom WebGL pipeline featuring Quadtree spatial partitioning.

// WEBGPU_QUADTREE
Phase 02

State Sync (Wk 5–8)

Integrating Yjs CRDT over multiplexed binary WebSockets for peer state replication.

// CRDT_BINARY_WS
Phase 03

Mobile Optimization (Wk 9–11)

Touch gesture decimation and memory footprint tuning for Safari and Android browsers.

// TOUCH_GESTURE
Phase 04

Stress Tests (Wk 12–14)

Deploying headless Chromium bots generating 10,000 vector operations/sec per board.

// 10K_VECTORS_PASS
Codedway took our stuttering prototype and transformed it into the smoothest, fastest vector canvas on the web.
— CEO, Synapse Labs
03 / What We Built

Hardware-Accelerated Vector Canvas

WebGL/2D Context rendering engine with dynamic spatial occlusion culling keeping draw calls minimal.

WebGL · Canvas API · TypeScript

CRDT State Synchronization

Conflict-free state replication ensuring hundreds of users can edit shapes simultaneously with zero data loss.

Yjs · WebSockets · Go

Binary Protocol Multiplexing

Compact binary packet serialization reducing cursor movement bandwidth consumption by 85%.

Protobuf · WebSockets · Node.js

Smart Gesture Decimation

Algorithmic smoothing and path decimation algorithms converting raw stylus input into crisp bezier curves.

TypeScript · Math / Geometry

Infinite Undo/Redo Engine

Selective non-destructive undo/redo tracking individual participant edits without clobbering peers.

CRDT History · Memory Buffers

Cross-Platform Touch Gestures

Fluid multi-touch pinch, zoom, and panning mechanics responsive on iOS, Android, and desktop mice.

React · Pointer Events API
04 / Results

Numbers don't lie.

500+
CONCURRENT PEERS PER ROOM
<25ms
PEER PROPAGATION LATENCY
60 FPS
STABLE CANVAS FRAME RATE
0.00%
STATE MERGE CONFLICTS
Our users routinely praise how responsive the board feels, even in global workshops with hundreds of simultaneous participants.
— Head of Product, Synapse Labs
05 // ARCHITECTURAL DEEP DIVE & BENCHMARKS

SynapseStudio empowers distributed creative and engineering teams to brainstorm, diagram, and collaborate in real time on an infinite canvas with zero lag.

[METRIC_AUDIT]Real-Time Synchronization

By implementing Yjs CRDTs over multiplexed binary WebSockets, vector mutations propagate across hundreds of concurrent peers worldwide in less than 25 milliseconds.

The Challenge

  1. State Divergence: Preventing race conditions and canvas stutter when hundreds of users simultaneously edit geometric shapes.
  2. GPU Acceleration: Rendering thousands of complex SVG path elements at a steady 60 frames per second on mobile Safari and lower-powered tablets.
  3. Bandwidth Optimization: Minimizing cursor broadcast payload sizes to avoid saturating client network connections.

Architecture Highlights

  • Custom WebGL/Canvas rendering pipeline with spatial partitioning (Quadtree) for off-screen occlusion culling.
  • High-throughput Go WebSocket edge servers with binary protocol encoding.
  • CRDT undo/redo management preserving individual user history without clobbering collaborative changes.
Next →

Vaultly — Fintech Operations & Core Settlement

REACT · NODE.JS · POSTGRES
View case study →

Have a project? Let's scope it.

We'll tell you honestly if we're the right fit.