Skip to main content
This example uses the TypeScript SDK to build a small HTTP API. Each request gets a fresh sandbox, writes submitted code to /app/main.js, runs it with Node.js, returns the result, and destroys the sandbox.

Prerequisites

  • Node.js 18+.
  • A running StacyVM server.
  • Docker provider access on the StacyVM host.
  • A StacyVM API key if auth is enabled.
The source lives in examples/code-runner-typescript.

Install

Configure

Run The App

Submit Code

Response

Production Notes

Before exposing this service, add authentication, request size limits, per-user quota attribution, audit logging, and host runtime certification.