Node.js Sandbox
Executes JavaScript code securely within ephemeral Docker containers, enabling dynamic code generation and testing for AI agents and LLMs.
About
Node.js Sandbox provides a secure environment for executing JavaScript code, designed specifically for AI agents and LLMs. It allows for the dynamic running of JavaScript, installation of NPM packages, and retrieval of results within isolated Docker containers. This facilitates code generation, testing, and interactive assistance by providing a sandboxed environment that minimizes security risks while enabling powerful code execution capabilities.
Key Features
- Offers detached mode to keep containers alive for long-running processes.
- Executes shell commands inside containers.
- Manages isolated Node.js sandbox containers.
- Runs ES module JavaScript snippets and captures stdout.
- Installs npm dependencies per job.
- 1 GitHub stars
Use Cases
- Dynamically generate QR codes for URLs using the `qrcode` package.
- Running one-off JavaScript scripts for quick experiments.
- Spin up servers or long-lived services on-the-fly for testing endpoints.