TypeScript SDK
@a3s-lab/box provides Promise-based local APIs for Node.js 20 or newer. It
uses the installed A3S Box runtime and does not require a server URL or API key.
Install
Verify the runtime before starting the application:
Create a Sandbox
Always clean up in finally when the Sandbox outlives a single expression.
Builder-style CI/CD
Script contents travel through standard input to the guest interpreter. They are not interpolated into a host shell.
Isolation selection
MicroVM is the default. On a certified Linux host, explicitly select the shared-kernel Sandbox:
Named bridge networks and static published ports are MicroVM-only. Use generation-fenced loopback forwarding for supported shared-kernel workloads.
Runtime selection
Set A3S_BOX_BINARY only when the executable is not on PATH, or inject a
typed local runtime in application tests. The SDK exchanges structured machine
messages with the runtime and never parses CLI tables.
See the complete package guide and npm package.