Skip to main content

What are Runtimes?

Runtimes are secure, isolated execution environments that power Reactors and Proxy Transforms, allowing your custom code to process sensitive data without it touching your systems.

Supported Runtime Images

Basis Theory supports the following runtime images, each with different capabilities:

Featurenode-btnode22
Node.js Version1622
ProvisioningSynchronousAsynchronous
DependenciesWhitelist onlyAny npm package
TimeoutFixedConfigurable
ResourcesFixedScalable
Warm InstancesDefault onlyConfigurable
PermissionsVia linked ApplicationDeclarative

node-bt

The node-bt runtime image is the default runtime with a curated set of whitelisted dependencies. This runtime is used when no runtime object is specified.

Best for:

  • Existing reactor code
  • Use cases covered by available dependencies
  • Simple integrations

Learn more about node-bt →

node22

The node22 runtime image provides full control over your runtime environment, allowing you to install any npm package and configure compute resources. To use this runtime, specify runtime.image: "node22" when creating your reactor or proxy transform.

Best for:

  • New reactor projects
  • Custom dependency requirements
  • Performance-critical workloads
  • Advanced error handling needs

Learn more about node22 →

Choosing a Runtime

ScenarioRecommended Runtime Image
New projectsnode22 for maximum flexibility
Existing codenode-bt continues to work; migrate when needed
Custom dependenciesnode22 if you need packages not in the whitelist
Configurable resourcesnode22 for timeout, memory, and concurrency control