Visualize JavaScript execution as a real-time cockpit: line-by-line flow, variable state, and replayable runtime telemetry for architects and engineers.
Launch the live Vercel deployment →
Execution Cockpit / Void design system preview
Replace this placeholder with a production screenshot atdocs/assets/execution-cockpit-void.pngonce the cockpit capture is finalized.
┌────────────────────────────────────────────────────────────────────────────┐
│ CODEFLOWVIZ EXECUTION COCKPIT · VOID │
├───────────────────────────────┬───────────────────────┬────────────────────┤
│ Monaco Code Pane │ Timeline / Scrubber │ Variable Inspector │
│ ▸ active line illumination │ step 001 ━━━━━●──── │ value number 6 │
│ ▸ AST trace markers │ step into / over/ out│ result number 8 │
│ ▸ sandbox execution status │ replay snapshots │ logs structured │
└───────────────────────────────┴───────────────────────┴────────────────────┘
| Capability | Cockpit Signal |
|---|---|
| Real-time AST Tracing | Instruments JavaScript syntax trees before execution to capture line-level snapshots as code runs. |
| Live Variable Inspector | Surfaces scoped runtime values with type badges, serialized previews, and snapshot-aware inspection. |
| Playback Scrubber | Replays execution history so engineers can step into, over, and out of logic flow without rerunning mental simulations. |
| Tonal Layering “Void” Aesthetic | Uses high-contrast depth, restrained neon accents, and cockpit-style panels to keep dense telemetry readable. |
Traditional debuggers are powerful, but they are often optimized for local breakpoints rather than system-level comprehension. CodeFlowViz 2.0 turns execution into a navigable visual timeline, helping teams explain algorithms, review control flow, and reason about state transitions with less context switching.
CodeFlowViz 2.0 is intentionally split into a decoupled monorepo:
frontend/runs the cockpit UI as a Next.js 14 application, optimized for Vercel delivery.backend/runs the Express execution service in a long-lived Node.js environment, designed for Railway or a comparable host.
This separation solves a practical production constraint: sandboxed code tracing can exceed short serverless execution windows. By moving AST instrumentation and worker-thread execution to Railway while keeping the interface on Vercel, the project preserves a fast frontend deployment path without forcing the execution engine into serverless timeout limits.
┌────────────────────────────┐ HTTPS ┌─────────────────────────────┐
│ Frontend · Vercel │ ─────────────────▶ │ Backend · Railway │
│ Next.js 14 cockpit UI │ │ Node.js + Express API │
│ Tailwind CSS design layer │ ◀───────────────── │ AST instrumentation sandbox │
│ Framer Motion transitions │ trace payloads │ Worker-thread isolation │
└────────────────────────────┘ └─────────────────────────────┘
| Layer | Tools |
|---|---|
| Frontend | Next.js 14, React, Tailwind CSS, Framer Motion, Monaco Editor |
| Backend | Node.js, Express, worker threads |
| Execution Engine | AST instrumentation, sandboxed execution, line-level snapshots |
| Deployment | Vercel frontend, Railway backend |
| Initial Language | JavaScript |
- Node.js 20+
- npm 10+
- A Vercel project for
frontend/deployment - A Railway service, or another long-running Node.js host, for
backend/deployment
git clone https://github.com/<your-org>/CodeFlowViz-2.0.git
cd CodeFlowViz-2.0
npm installCreate environment files for local development.
NEXT_PUBLIC_EXECUTE_API_URL=http://localhost:4000/api/executeFor production on Vercel, point this value to the deployed Railway endpoint:
NEXT_PUBLIC_EXECUTE_API_URL=https://<your-railway-service>.up.railway.app/api/executePORT=4000
CORS_ORIGIN=http://localhost:3000For production on Railway, set CORS_ORIGIN to your Vercel deployment URL:
CORS_ORIGIN=https://<your-vercel-project>.vercel.appnpm run devThis starts both workspaces:
| Workspace | Default URL | Command |
|---|---|---|
| Frontend | http://localhost:3000 |
npm run dev:frontend |
| Backend | http://localhost:4000 |
npm run dev:backend |
curl http://localhost:4000/healthExpected response:
{
"ok": true,
"service": "codeflowviz-backend"
}- Import the repository into Vercel.
- Set the project root to
frontend/. - Add
NEXT_PUBLIC_EXECUTE_API_URLwith the deployed backend/api/executeURL. - Deploy.
- Create a Railway service from the same repository.
- Set the service root to
backend/. - Add
PORTif required by your Railway configuration. - Add
CORS_ORIGINwith the Vercel frontend URL. - Deploy the Express service.
- Multi-language execution — Python and C++ tracing after the JavaScript execution path is hardened.
- Advanced Logic Node overlays — Higher-level control-flow nodes rendered above raw trace events.
- Trace sharing — Exportable sessions for code reviews, incident analysis, and teaching.
- Custom cockpit layouts — Persisted panels for architecture reviews, demos, and debugging workflows.
- Expanded sandbox policies — More granular limits for memory, execution time, and API access.
Contributions are welcome. If you care about debuggers, visualization, language tooling, developer education, or high-performance UI systems, there is room to help.
Recommended first steps:
- Open an issue with the problem, proposal, or trace scenario you want to improve.
- Fork the repository and create a focused feature branch.
- Keep changes small, typed, and easy to review.
- Include screenshots or trace payload examples when UI behavior changes.
- Submit a pull request with a clear summary and validation notes.
License details have not been published yet. Add a LICENSE file before distributing or accepting external production use.