Skip to main content

Examples

Six worked flows live in the examples/ folder on the main branch of the repository, each with a source blueprint file, the compiled .js output, and a binary .blueprint you can open directly in the editor. Every example has been built and run for real — the curl commands and output on each page are not hypothetical.

ExampleDemonstrates
Hello WorldThe minimal flow: init → middleware → route → handler → listen
REST CRUD with VariablesVariables (variable.get/variable.set) + Handler Function's code/blueprint dual mode
Custom Middleware LoggingThe middleware escape hatch (middleware.customCode)
Function Graph with BranchA visual Function Graph with controlFlow.branch
Function Graph with RecursionA recursive function in a visual Function Graph (factorial example)
npm Package RequireRequiring an npm package + the Async Handler checkbox

Opening an example in the editor

Clone the repository, check out main (the examples live there, not on this documentation branch), and point visual-node at the example's folder:

git clone https://github.com/MFahad777/visual-node.git
cd visual-node
npx visual-node examples/01-hello-world