Functions
Versioned JavaScript and Starlark functions with live validation
When a flow node is not enough, PNeX exposes a functions registry: per-organization user functions in JavaScript (QuickJS sandbox) or Starlark, with append-only versioning and live validation.
Lifecycle
- Create a function and pick its language.
- Edit with live validation — the platform spawns the real runtime binary to check syntax and run a test payload before you save.
- Version: every save appends a version; deployed flows pin an exact version, inlined at deploy time.
- Test against the live runtime before referencing it in a flow.


Sandboxing
JavaScript runs in a QuickJS sandbox with an interrupt handler as the single reliable bound on runaway code. Starlark offers a deterministic, Python-flavoured alternative. The function replaces the incoming message payload with its return value — it does not merge into it.

AI-assisted authoring
The integrated AI assistant can draft and fix functions on request (see AI Assistant), and the editor offers quick-fixes for common validation errors.

