Getting Started
Install & run
npx visual-node [projectDir]
or install it globally:
npm install -g visual-node
visual-node [projectDir]
This opens the editor at http://localhost:4000 against projectDir (defaults to the
current directory). If projectDir doesn't exist yet, it's created for you.
The compile / run cycle
- Build a flow on the canvas — right-click to search for a node, or open Browse Nodes in the toolbar for a searchable catalog of every built-in node type (see the Node Reference).
- Hit Compile to generate code from the flow. For a multi-file project,
Compile walks every
.blueprintfile at once (not just the one you have open), so cross-filerequire()s between them resolve correctly. - Run your code using the Run button in the toolbar:
- Server mode (default): Button reads "Run Server"; compiles and spawns an Express
server as a real child process. Configure which
.blueprintfile is your entry point via Settings in the toolbar (or leave blank to auto-detect viaexpress.listennode scan). See logs streamed live in the editor; Stop Server kills it. - Script mode: Button reads
Run <filename>.js(dynamic based on the currently open file). Useful for running plain logic files (functions, helpers) without an Express server. Switch modes in Settings.
- Server mode (default): Button reads "Run Server"; compiles and spawns an Express
server as a real child process. Configure which
- Or skip the built-in runner entirely — the generated files are plain
.js, so you cancdinto the project directory yourself and runnode server.js(or any.jsfile) afternpm installin that directory, if the flow declares any npm dependencies.
Everything visual-node writes — the .blueprint source files and the generated .js
output — lives in your project directory as normal, committable files. There's no
separate database or hidden state.
Where to go next
- Configuration — env vars and how the project directory is resolved.
- Core Concepts — understand the flow model before diving into the Node Reference.
- Examples — five complete, runnable worked flows, from a minimal "Hello World" route up through Variables, visual Function Graphs with branching, and npm-package dependencies.