Code Node (& Function Node)

The Code Node runs synchronous JavaScript in a secure code sandbox. No async, no network, no modules.

Written By pvdyck

Last updated 18 days ago

Code Node (& Function Node)

⚠️ Limitations β€” Works with known restrictions, see details below

Compatibility

On indie.money, the Code node runs in a secure code sandbox instead of Node.js:

FeatureStatus
JavaScript (sync)Supported
All n8n variables ($input, $json, $node, $workflow, etc.)Supported
$now, $today, DateTime (Luxon-like)Supported
$('NodeName'), $node['Name']Supported
PythonNot supported β€” JavaScript only
async/awaitNot supported β€” synchronous execution only
fetch / HTTPNot supported β€” use HTTP Request node instead
this.helpersNot supported β€” n8n helper methods are not available in the sandbox
require / importNot supported β€” no external modules
console.logNot supported β€” use return to output data
process.envNot supported β€” use $env or $vars for environment variables
File systemNot supported β€” no fs access
$getWorkflowStaticDataPartial β€” works within a single execution but not persisted between runs

Limits: 2-minute CPU time per execution.

Status

This integration works on indie.money with known limitations. See the details above for specifics.