n8n

n8n is an independent, from-scratch workflow runtime for n8n-style JSON graphs built with LMScript, LMCode, and an lmcode-go HTTP host. It validates linear workflow and connector schemas, resolves whole-field JSON expressions, and executes bounded JSON POST requests tested offline with lmmock.

Quick reference

npm ci --ignore-scripts --no-audit --no-fund
npm run build
npm run demo
npm test
./build/lmflow-host --lmcode-schema --json
Component or function Signature or invocation Summary
src/run.lms lmscript src/run.lms WORKFLOW.json CONNECTOR.json CREDENTIALS.json Validate workflow and connector JSON, compile the LMCode program, and run it on lmflow-host
src/validate.lms flow.validate_all(workflow, connector) Verify schemas, unique node IDs/names, credential references, linear connections, and expressions
input input(name: string) -> Json Load the validated workflow or connector JSON document inside the LMCode program
credential credential(id: string, field: string) -> string Look up a secret field from the external credentials JSON file without exposing it in workflow JSON
base_url base_url(default_url: string) -> string Return the effective provider base URL (honoring --base-url, LMFLOW_BASE_URL, or LMMOCK_URL)
json_put json_put(obj: Json, key: string, value: Json) -> Json Return a JSON object with key set to scalar Json value (preserving string, number, or bool types)
http_post_json http_post_json(url: string, body: Json) -> HttpResponse Send a bounded 10s, 1 MiB application/json POST request with redirects disabled
workflow_fail workflow_fail(message: string) -> void Abort workflow execution with a structured run-phase error message
# Build lmflow-host and run the Telegram sendMessage -> getChat workflow against lmmock
npm run demo

Documentation pages

Source repository and releases