Project 05 / 09

Doodleboard

A whiteboard drawn by hand, with no drawing library.

I wanted to know how tools like Excalidraw really work, so I built one on the raw Canvas API with no drawing library at all.

Two people can open the same board and draw together, and see each other's strokes as they happen.

drawing tools
7
drawing tools
drawing libraries
0
drawing libraries
two-person rooms
Live
two-person rooms
Doodleboard screenshot

01

Every tool from scratch

Rectangles, circles, arrows, text, pen, pencil and eraser are all hand-rolled: the hit-testing, the coordinate maths and the redraw loop that keeps it smooth.

The tool system is built so new tools can be added without touching the others.

Doodleboard: Every tool from scratch

02

Drawing together

Shapes are turned into small messages and sent over WebSockets, so the other person sees each stroke land. Rooms and sessions are protected with JWT, and boards are saved with Prisma and Postgres.