-
Notifications
You must be signed in to change notification settings - Fork 0
serve command
Arham-Qureshi edited this page Jul 21, 2026
·
1 revision
Starts a local HTTP server to serve the interactive graph visualizer and opens it in your browser.
codebase-vis serve
Opens http://localhost:3000 in your default browser, showing graph.html from codebase-out/.
- Starts a lightweight HTTP server serving
codebase-out/as static files - Routes
/tograph.html -
graph.htmlfetchesgraph.jsonviafetch()and renders it with vis-network - Auto-opens your browser using:
-
openon macOS -
xdg-openon Linux -
starton Windows
-
- ForceAtlas2 physics — nodes repel and settle into an organic, readable layout
- Community legend — color-coded checkboxes to toggle entire modules
- Fuzzy search — find any node by name with smooth pan-to-node animation
- Click to inspect — shows module, language, connection count, and neighbor links
- Dependency toggle — show/hide npm package nodes
- Entity toggle — show/hide inline class/function nodes
-
Minimap — Press
Mto toggle a navigable minimap -
Cycle overlay — after running
detect, highlights cyclic edges in red
| Flag | Default | Description |
|---|---|---|
-p, --port |
3000 |
Port to serve on |
codebase-vis serve # Default port 3000
codebase-vis serve -p 4000 # Custom port
codebase-vis serve --port 8080 # Custom port (long flag)- Run
codebase-vis generatefirst —serveserves the existing output, it doesn't regenerate - If port 3000 is in use, an
EADDRINUSEerror is printed — use-pto pick a different port - The visualizer works purely client-side. You can also open
codebase-out/graph.htmldirectly in your browser without the server