← Back

The White Space

Real-time collaborative whiteboard

React, TypeScript, Node.js, Redis, WebSocket

thewhitespace.vercel.app ↗

A whiteboard that several people can draw on at the same time. You see who else is there and what they are drawing while they draw it.

Keeping everybody's screen in step is the interesting part. Each stroke travels over a WebSocket connection, which stays open in both directions so the server can push a change out to people instead of waiting to be asked for it.

Redis sits behind that. It hands each change to every server that has someone connected, and it holds the current state of the board, so a person who joins halfway through sees the same picture as everyone who was already there.