# TypeScript executor

Default isolated-process TypeScript/JavaScript executor. Trusted local code with timeout and cancellation.

Canonical URL: https://opennodeflow.dev/wiki/reference-app-core-executor-javascript/
JSON reference: https://opennodeflow.dev/wiki/reference-app-core-executor-javascript/index.json
Source snapshot: 2026-10-23

# TypeScript executor

The default JavaScript/TypeScript execution adapter. An executor is selected by a node/trigger definition; it is not placed on the graph or connected with data sockets.

## Wrapper contract
This wrapper returns `await execute(code, inputs, config, context)`. Here code is the selected node's async function body, inputs/config are its resolved values, and context supplies run identity, input, logging-related APIs, routes, state and secrets. The helper transpiles TypeScript and runs the body; it returns the body's output object unchanged. This asset declares no sockets or asset-specific configuration schema.

## Example
Select this executor when publishing a transformation whose body is `return {result: inputs.value * 2};`. Declare the transformation's own number input/output there. ONF pins the executor dependency version into that published transformation. Publishing a later executor version does not rewrite already published dependent assets or existing graph pins.

## Runtime boundaries
Execution uses a child Node process with timeout and cancellation. The configured per-attempt timeout covers the wrapper and original body together. It runs with the hosting user's filesystem/network permissions and available runtime; this is not a hostile-code security sandbox, Python provider, container or separate remote identity.

The wrapper adds no logs, state writes, external calls or error interception of its own. Body failures propagate for the workflow engine's configured retries/error-route handling. Node outputs and routes are validated by the engine after execution. Executor test-bench runs instead exercise a supplied sample body and do not have a downstream graph or declared node-socket validation.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `app.core.executor.javascript` |
| Kind | executor |
| Family | app-core |
| Pack | See library discovery |

[Integration guide](/wiki/first-workflow/) · [Browse the catalog](/wiki/integration-catalog/)



## Configuration schema


```json
{}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
