return becomes the node’s result, which downstream nodes reference as {{code-id.result}}.
Inputs
Function Inputs is a list of name + value pairs. The value is usually a reference like{{sheets-1.values}}. In JavaScript, inputs are available on the inputs object (inputs.data); in Python, each input becomes a function argument with its name (data).
JavaScript
Runs in QuickJS and starts in milliseconds, so it’s the right choice for quick data transformations. Pure JavaScript only: no npm packages, no network access, and a 3 second execution limit.console.log output is captured as stdout.
Python
Runs in a Modal sandbox with installable pip packages and optional GPUs. Use it for heavy computation, ML workloads, or anything that needs libraries.| Field | What it does |
|---|---|
| Function Body | Python code; return a JSON-serializable value |
| Requirements | pip packages to install, one per line |
| Hardware | GPU Type (CPU only, T4, L4, A10G, A100 40GB, A100 80GB, H100), GPU Count (1-8), CPU Cores (0.25-16), Memory (256 MB-64 GB) |
| Timeout (seconds) | Up to 3600, default 300 |
| Region | Auto (nearest), US East, US West, EU West, EU Central |