Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cedarlogic

Browser-based circuit simulator with real-time collaboration via WebSockets.

Domain: cedarlogic.dunkirk.sh · Port: 3100 · Runtime: custom

Extra options

OptionTypeDefaultDescription
wsPortport3101Hocuspocus WebSocket server for document collaboration
cursorPortport3102Cursor relay WebSocket server for live cursors
branchstring"web"Git branch to clone (uses web branch, not main)

Caddy routing

Cedarlogic disables the default mkService Caddy config and uses path-based routing to three backends:

PathBackend
/wswsPort (Hocuspocus)
/cursor-wscursorPort (cursor relay)
/api/*, /auth/*main port
Everything elseStatic files from dist/

Build step

On initial scaffold, cedarlogic installs deps and builds:

bun install → parse-gates → bun run build (Vite)

Subsequent deploys handle their own build via the deploy workflow. The build has a 120s timeout to accommodate Vite compilation.