Standalone
Clone Workflow Builder and run the reference editor locally. UI-only demo or the full AI Studio stack with backend execution.
Run Workflow Builder locally from the monorepo. Two paths depending on what you want to evaluate.
Don’t want to clone yet? Open the live demo to try it in your browser first.
Pick a path
Section titled “Pick a path”| Goal | Path | Setup time | Docker |
|---|---|---|---|
| See the editor running in your browser | Demo | ~2 min | no |
| Run the full reference stack (editor + execution + AI) | Full Stack Demo | ~10 min | yes |
To embed the SDK in your own React app instead, see React Component.
Requirements
Section titled “Requirements”Works the same on macOS, Linux, and Windows.
Preflight
Section titled “Preflight”After cloning, run this once. It verifies Node, pnpm, Docker, port availability, and required .env files.
git clone https://github.com/synergycodes/workflowbuilder.gitcd workflowbuilderpnpm installpnpm preflightExpected output:
Workflow Builder preflight
✅ node 22.12.0✅ pnpm 10.9.0✅ docker running✅ port_3001 free (backend)✅ port_4200 free (demo)✅ port_4201 free (ai-studio)✅ port_5432 free (postgres)✅ port_5433 free (temporal-db)✅ port_7233 free (temporal)✅ port_8233 free (temporal-ui)⚠️ apps/backend/.env missing — copy from apps/backend/.env.example⚠️ apps/execution-worker/.env missing — copy from apps/execution-worker/.env.example
Ready to go. Pick a path below.The two .env warnings are expected on a fresh clone. They are only required for the Full Stack Demo path and get created by pnpm setup:env in step 1 of that path. After that they switch to ✅ present.
Fix any red (❌) items before continuing. pnpm preflight --json returns the same report in structured form for tooling.
UI only. No backend, no Docker. The fastest way to see the editor in action.
pnpm dev:demoExpected output:
[1] VITE vX.Y.Z ready in NNN ms[1][1] ➜ Local: http://localhost:4200/[0] Found 0 errors. Watching for file changes.Open http://localhost:4200. The editor loads with the default plugin set and a starter template.

Full Stack Demo
Section titled “Full Stack Demo”Full reference product: editor, Hono backend, Temporal worker, Postgres. The frontend on port 4201 is the AI Studio reference product (apps/ai-studio). Demonstrates end-to-end workflow execution.
1. Create .env files
Section titled “1. Create .env files”First time only. Copies the .env.example templates into place; existing .env files are left untouched.
pnpm setup:env2. Start infrastructure
Section titled “2. Start infrastructure”pnpm infra:upExpected output (first run):
Network backend_default Created Volume "backend_temporal-db-data" Created Volume "backend_app-db-data" Created Container backend-app-db-1 Started Container backend-temporal-db-1 Started Container backend-temporal-1 Started Container backend-temporal-ui-1 StartedVerify: open http://localhost:8233 (Temporal UI). The default namespace appears.
3. Run migrations
Section titled “3. Run migrations”First time, or after pulling schema changes.
pnpm -F backend db:migrateExpected output:
> drizzle-kit migrate
Using 'postgres' driver for database querying[✓] migrations applied successfully!4. Start the stack
Section titled “4. Start the stack”pnpm dev:ai-studioExpected output (three interleaved streams):
Temporal ready[backend] Backend running on http://127.0.0.1:3001[worker] Execution worker started on task queue: workflow-execution[ai-studio] VITE vX.Y.Z ready in NNN ms[ai-studio] ➜ Local: http://127.0.0.1:4201/Open http://localhost:4201. Pick the “Sales Inquiry” template, click Play. The Temporal UI at http://localhost:8233 shows the running execution.
To stop: Ctrl+C, then pnpm infra:down.
Connect a real LLM (optional)
Section titled “Connect a real LLM (optional)”AI Studio works with stub responses out of the box. To use a real model, add to both apps/backend/.env and apps/execution-worker/.env:
OPENROUTER_API_KEY=sk-or-v1-...AI_MODEL=anthropic/claude-3.5-haikuIf the key is missing, the worker fails to start with OPENROUTER_API_KEY is required. If the model id is wrong, the first AI node fails at runtime and the error surfaces in the UI log panel.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
EADDRINUSE on 3001, 4200, 4201, 5432, 5433, 7233, or 8233 | Another process holds the port | pnpm preflight shows the conflict. Stop the other process or change the port. |
Temporal UI loads but the default namespace is missing | Migrations not run | pnpm -F backend db:migrate |
Worker exits with OPENROUTER_API_KEY is required | Real LLM env var missing | Set it in apps/execution-worker/.env. Optional unless you want a real LLM call. |
pnpm dev:demo shows TypeScript errors but the dev server still starts | concurrently runs typecheck alongside Vite. TS errors are non-fatal | Fix the errors or ignore them temporarily. |
| Vite acts up after a dependency change | Stale node_modules/.vite | rm -rf node_modules/.vite and rerun. |
See also
Section titled “See also”- React Component. Embed the SDK in your own React app.
- Node library. Browse, search, and drag nodes from the palette.
- Add Custom Node Type. Register a new node type with custom properties.
- via callback persistence. Pass diagram data and save callbacks as React props.
- FAQ. Installation, licensing, and compatibility questions.