A Next.js App Router + TypeScript workflow studio. The public site, dashboard, and editor share the Steel + Pale Blue design system.
Requires Node.js 20.19+, 22.13+, or 24+ for the ESLint 10 toolchain. Browser regressions use an installed Google Chrome by default.
npm install
npm run dev -- --port 3001On Windows PowerShell with script execution disabled, use npm.cmd in place of npm.
npm run typecheck
npm test
npm run build
npm start -- --port 3001The public landing demo remains local. Studio routes require Supabase Google OAuth and the Phase 1 migration; see PHASE1.md for setup, security boundaries, and live-verification status. Fontsource bundles the fonts locally. Run npm run validate for TypeScript, ESLint, unit regressions, and a production build. Run npm run validate:browser to include the Playwright browser regressions. On a machine without Chrome, install a Playwright browser and set PLAYWRIGHT_CHANNEL=chromium. Browser tests launch an isolated development server on port 43821, a local Auth REST fixture, and PostgreSQL/PGlite; they do not claim live Supabase/Google verification. See PHASE0.md for stabilization details.
| Route | Working features |
|---|---|
/ |
Interactive six-node order simulation, amount-dependent routing, node output inspector, pause/speed/manual stepping, preview run count, use-case tabs, FAQ, workspace links |
/dashboard |
Cloud workspace, labeled simulation metrics, first steps, workflow actions, recent persisted real runs when available |
/workflows |
Create, search, filter, activate/pause, duplicate, delete, and edit workflows |
/workflows/[id] |
React Flow canvas, node library, ports, branching connectors, inspector, zoom, keyboard editing, autosave, manual simulation, step outputs |
/executions |
Real run history/details/cancellation; separate local simulation history via ?view=simulation |
/templates |
Six editable templates with text/category filtering |
/settings |
Local profile, workspace name, reduced motion, JSON backup export/import, history clearing, workspace reset |
- Open the starter order workflow and run its simulation.
- Select the webhook, change the sample amount from 149 to 20, and run again. The standard queue is selected instead of the CRM branch.
- Set the amount back to 149 and enable the HTTP node's simulated failure. Downstream work is skipped after the simulated 503.
- Open execution history and inspect a step's payload.
- Add a transform from the node library, connect it, configure it, and reload. The editor autosaves changes after 800ms and flushes when following links. A manual Save button is also available.
- Export a JSON copy in Settings before clearing browser drafts. Authenticated import validates and adds copies, preserving existing cloud workflows. Explicit draft recovery can replace the cloud document and requires confirmation.
On phones and tablets, the editor opens with readable nodes and a pannable canvas; drag the background to explore and use the zoom/fit controls. The inspector opens on node selection. The node library scrolls horizontally on phones and supports click-to-add. React Flow supports keyboard node selection, arrow-key repositioning, and Delete/Backspace removal. Workflow tables scroll within their own keyboard-focusable region.
The editor shows configured values directly inside each node. Start a simulation to follow the active route, pause/resume it, advance one step, or choose 0.5×/1×/2× playback speed. “Follow node” keeps the active node in view; manually moving the canvas switches following off. Node configuration is read-only during playback, but nodes remain selectable for inspection.
Completed steps reveal their actual input/output payloads. Added, updated, and removed fields are identified; skipped nodes are explicitly labeled. Only the active connector animates, completed paths remain marked, and unused branches fade. A finished simulation records one execution; pausing does not create a partial history entry. Editing a graph or configuration clears stale playback visuals. Reduced motion retains the controls and data progression without connector/pulse animation or animated camera movement.
The dashboard's seven-day activity bars separate successful and failed runs in green/coral. Hover or keyboard-focus a day for its actual counts. Saves show a short “Saved just now” confirmation.
Local simulation never contacts configured HTTP/notification destinations. Webhooks use sample payloads. Active/draft labels do not schedule jobs. Simulation requires the editor to remain open. Separately enabled real runs use durable database checkpoints and workers; hosted execution remains disabled. The landing demo uses the pure simulation engine with preview runs separate from workspace history.
The engine validates one trigger, graph connectivity, cycles, configuration, and URLs. It evaluates a deterministic topological order, routes using amount ≥ threshold, skips unused branches, and stops subsequent work after failure. It uses a single shared payload rather than a parallel production execution model.
The public demo and legacy local document use flowforge:v1; local storage is browser/origin-specific. The authenticated studio persists workflows, preferences and up to 200 simulation records in the user's cloud workspace, with account-keyed browser recovery drafts. Real runs are separate persisted execution records. Profile display settings do not create another account.
Current darker palette: base #08090B, panel #0E1114, raised #171D23, border #22282E, accent #A8C7E6, text #E9EDF1. src/app/surfaces.css refines the surface hierarchy with floating menus (#1D252D), softer inactive borders, brighter headings, a fading canvas grid, and local highlights on active ports. Large metric values stay neutral; node icons and status indicators retain their semantic colors. Native controls use a dark color scheme, and the ambient background is softened. Existing fonts, component tooling, routes, and engine contracts are retained.
The landing page follows the design-taste-frontend “product performs” direction: the interface is the principal visual material. GSAP handles staggered entrances and a desktop-only pinned story heading, with scoped cleanup. Motion handles tab-panel transitions and the existing Magic UI beam component. Animation pauses offscreen, in background tabs, and on request; reduced motion provides manual stepping and static content. The application surfaces use flat panels, readable tables, and restrained interaction feedback.
src/app/refinement.css holds the redesign, imported after the established global styles. The visual refinement added no dependencies; Phase 0 adds ESLint and Playwright as development dependencies. Existing Magic UI Animated Beam source was checked against its connected official registry. Vengeance UI was considered, but the official CLI page was inaccessible; no unverified registry URLs or components were installed.
The landing background includes a custom canvas signal field: slow steel-blue currents, drifting points, and traveling line segments. Use “Pause background” below the demo to freeze it. Rendering is capped at 30fps, pixel density at 1.5×, and pauses in hidden tabs; reduced motion renders a static field. It is decorative, ignores pointer input, and is hidden from assistive technology.
The use-case section automatically explores Operations, Sales, and Team updates with four illustrative execution phases per case. Its nodes show processing/completed/waiting states, traveling signals, and changing event messages. Choosing a tab pauses the tour; “Auto-explore all” resumes it. Keyboard focus, offscreen visibility, hidden tabs, and reduced-motion preferences suspend automatic progression. These are labeled illustrative previews, separate from saved executions.
The expanded accent palette follows the later request for green/orange diagram differentiation: green #91CBA7 triggers, blue #A8C7E6 transforms, orange #E5B47F conditions, teal #94C8C5 HTTP requests, and lavender #C2B5DE notifications. The same colors identify node icons, canvas cards, ports, source connectors, minimap nodes, and template diagrams. Green success, orange draft/running, and coral failure states retain their text labels and icons. Dashboard metrics use restrained color accents without altering the dark surface palette or real metric values.
See VERIFICATION.md for validation and DESIGN_REVIEW.md for the design review, exceptions, and screenshot evidence.
Invalid JSON, unsupported versions, or malformed existing documents open a recovery screen instead of silently replacing saved work. Export preserves the exact original text. Reset requires confirmation and saves a second raw copy under flowforge:recovery; a failed archival write aborts reset. If the initial storage read fails, persistence remains disabled for that session.
Version 1 remains the only released document schema; no speculative migration is applied to unrecognized versions. Imports accept valid version-1 backups within 5 MB, 1,000 workflows, 1,000 nodes and 5,000 edges per workflow, and 200 executions. Identifiers, configurations, ports, graph cycles, and historical step payloads are validated. Disconnected editor drafts can round-trip; running them still requires every node to connect to the trigger. Historical runs remain valid after their workflow or nodes are deleted.
Use http://localhost:3001/login consistently with APP_ORIGIN. Google is the only application sign-in flow. The authenticated workspace uses Supabase PostgreSQL with RLS, revision-checked saves, explicit retry/conflict recovery, persistent simulation history and preferences. Local backups are offered for confirmed, additive import and are preserved.
npm run verify:config reports redacted configuration readiness; it never prints keys or secrets. npm run validate:browser runs TypeScript, lint, unit/local PostgreSQL integration tests, a production build and browser/API tests. Browser OAuth/session tests use controlled fixtures; the hosted Google/Supabase checks remain separately documented in PHASE1.md.
Phase 2E security/staging results are in PHASE2E.md. The deployment runbook separates protected disabled deployment, migration application, worker activation and public launch approvals. Hosted deployment/execution remain NO-GO; configuration preparation does not authorize deployment.