Skip to main content
The node template ships Node.js 20 LTS, npm, the typescript compiler, and yarn. Pick it for TypeScript / Node scripts and any workflow that needs to install npm packages at runtime.

What you’ll learn

  • Picking template="node" to skip a Node install
  • Writing a .ts file into the sandbox, compiling with tsc, running with node

Prerequisites

Code

Expected output

Need an actual TypeScript Declaw client inside the sandbox? npm install @declaw/sdk works at runtime against the node template — but for an agent-in-sandbox pattern, the ai-agent template is usually a better starting point.