projects / collab-board

Live Systems 2026

collab-board

A real-time collaborative whiteboard, full stack. Svelte 5 on the front, Go on the back, both shipped as one binary. Pointer-driven canvas with pen and eraser, live cursors with name labels, chat, shareable room links, and snapshots so late joiners see what's already on the board. The backend keeps its concurrency story (bounded send buffers, non-blocking fan-out, explicit eviction of slow clients) under a frontend that earns the same care.

collab-board architecture diagram

Overview

Highlights

  • Svelte 5 (runes) + TypeScript SPA, built by Vite, embedded into the Go binary via //go:embed, single-binary deploy preserved
  • Pointer-event drawing surface: touch, stylus and mouse share one code path
  • Pen and eraser tools (eraser via canvas destination-out compositing); 8-color palette and three stroke widths
  • Server-sent stroke snapshots for late joiners, with a bounded ring buffer (cap 2000) on the room goroutine
  • Live, name-labeled remote cursors with deterministic per-user color and idle fade-out
  • Shareable room URL with one-click copy; randomly generated codes; URL ↔ room sync

Stack

  • Go
  • Svelte
  • TypeScript
  • Vite
  • Fullstack
  • WebSockets
  • Concurrency
  • Real-Time
  • Canvas
  • Docker

Demo

collab-board architecture diagram