Case study
Letting several players share the same 1000 × 1000 pixel canvas, in real time.
Node.js server with Socket.IO, Canvas rendering, a specification and an architecture decision record (ADR).
Broadcasting grid updates to every player, one by one or in batches, without a database: state in memory, saved to disk.
A collaborative canvas playable online, with zoom, nicknames, scores and moderation.
Description
A collaborative web app inspired by r/place: several players place pixels on the same 1000 × 1000 canvas. The Node.js server keeps the grid state and broadcasts it to players over WebSocket with Socket.IO, and rendering happens in a Canvas.
The project was framed by a specification and a written architecture decision record (ADR): no database, the grid is kept in memory and saved to disk.
Technologies
Features
- Shared 1000 × 1000 pixel canvas
- Real-time updates over WebSocket, single or batched
- Camera zoom and pan
- Player nicknames and scores
- Moderation: banning a player
- Grid and scores saved to disk
- Specification and ADR in the docs folder