Back to Integrations
Action

nLink Code (Polyglot)

The Code node is the ultimate escape hatch for advanced users. When built-in nodes don't cover your specific edge case, you can write raw scripts or inject compiled WebAssembly to manipulate data arrays, perform complex mathematical calculations, or transform object structures exactly how you need them.

nLink Code (Polyglot)
Advanced / Action
⚠️

What can you do with nLink Code (Polyglot)?

Complete Flexibility

Execute standard ES6 JavaScript, Python scripts or compiled WASM modules natively within your workflow. Access incoming items globally and return fully customized, deeply nested data structures.

High-Performance Polyglot Execution

Code is pre-compiled and highly optimized on the fly. Heavy workloads can be handed off to WebAssembly modules written in Go, Rust, or C++ for near-native computation speeds inside the workflow loop.

Zero Server Infrastructure

Write code directly in the browser editor. We securely execute your custom scripts in isolated backend V8 sandboxes and Wazero runtimes without you ever needing to provision or manage servers.

Detailed Usage & Configuration

The nLink Code Node is an advanced developer tool providing raw native programmatic capabilities without deploying microservices. Write bespoke functional logic in standard ES6 Javascript inside heavily guarded, isolated V8 backend sandboxes, or leverage WebAssembly for extreme processing.

1. Raw Array Interaction

The code interface natively exposes a global $input variable, representing the direct data array payload currently being processed.

Because nLink executes iteratively over deeply nested arrays, your programmatic output MUST securely return an explicitly formatted array (e.g., return [{json: {...}}]) to maintain system pipeline compatibility.

2. Practical Use Cases

Leverage script execution strictly for operations extending beyond the visual parameters of standard nodes:

  • Advanced Array Maps: Seamlessly loop, reduce, and heavily mutate arrays comprising nested database structures natively via native mapping functions like .map() or .filter().
  • Complex Math & Regex: Perform intensive custom cryptographic parsing, complex financial interest calculations, or extract chaotic text variables using extreme Regex structures.
  • WebAssembly Acceleration: Offload intense image manipulation or heavy string processing to compiled WASM binaries, achieving a magnitude of speed increase over raw JavaScript.

3. Security Restraints

Scripts execute in a highly isolated container specifically constructed for programmatic computation. To maintain massive system stability and negate vulnerabilities, your custom logic cannot securely access external HTTP/API endpoints naturally natively from the script—routing and payload dispatch should always connect specifically to the subsequent HTTP Request Node.