A real-time, AI-enhanced collaborative whiteboard. Draw diagrams, solve math and physics equations, and brainstorm together in persistent rooms powered by Socket.IO and Google Gemini.
Traditional whiteboard tools like Miro are powerful but act simply as dumb canvases—they have no understanding of what is actually being drawn. If a student writes out a complex physics equation, the software can't help them solve it.
From a systems perspective, syncing freehand drawing across multiple clients concurrently is highly prone to race conditions. If handled poorly, strokes get lost, cursors lag, and server resources are exhausted by high-frequency socket broadcasts.
SketchWiz bridges the gap by piping canvas snapshots directly into Google Gemini's vision models. It can read handwritten math/physics equations and provide step-by-step solutions, or take a rough sketch and suggest professional enhancements.
The architecture utilizes a Turborepo monorepo. A Node.js/Express server handles real-time stroke broadcasting via Socket.IO, while Prisma continuously persists the room's canvas state to a PostgreSQL database so sessions survive browser refreshes.
A Turborepo monorepo decoupling the Next.js client from the Node.js WebSocket server, with Postgres handling persistent room data.