You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redis (optional — needed for collaborative persistence)
Setup
# Install dependencies
pnpm install
# Configure environment
cp sampleENV.text .env
# Edit .env as needed (defaults work for local dev)# Start all apps
pnpm dev
The web client runs on http://localhost:3000 and the WebSocket server on ws://localhost:8080.
Environment Variables
Variable
Default
Description
NODE_ENV
development
Environment mode
NEXT_PUBLIC_WS_URL
ws://localhost:8080
WebSocket server URL
NEXT_PUBLIC_HTTP_URL
http://localhost:3000
HTTP backend URL
REDIS_URL
redis://localhost:6379
Redis connection string
Scripts
Command
Description
pnpm dev
Run all apps in development mode
pnpm build
Build all apps
pnpm lint
Lint all apps
pnpm check-types
Typecheck all apps
pnpm format
Format code with Prettier
Running Apps Individually
pnpm --filter web dev # Web client only
pnpm --filter websocket dev # WebSocket server only
Notes
If Redis is not running, the WebSocket server will still start but collaborative shape persistence will be disabled.
The web client expects the WebSocket server to be available at NEXT_PUBLIC_WS_URL.
About
DrawFlow is a simple, fast whiteboard for turning ideas into visuals. Sketch diagrams, map out flows, and brainstorm freely with a clean, distraction-free canvas. It’s like having a digital notebook where your thoughts can take shape instantly.