Discover and explore top open-source AI tools and projects—updated daily.
rivet-devLightweight library for secure Node.js code execution
Top 54.7% on SourcePulse
A lightweight library for secure Node.js code execution, secure-exec enables developers to run untrusted code, particularly for AI agents, without the overhead of containers or virtual machines. It offers a fast, resource-efficient, and flexible sandboxing solution that integrates directly within a Node.js process, simplifying deployment and reducing infrastructure complexity.
How It Works
This library leverages V8 isolates, the same primitive powering browser tabs and Cloudflare Workers, for robust code isolation. By avoiding full containers or virtual machines, secure-exec achieves significantly faster cold starts and drastically lower memory footprints per execution. It bridges essential Node.js APIs (like fs, child_process, http) to real host capabilities, enabling compatibility with standard npm packages and frameworks.
Quick Start & Requirements
npm install secure-execHighlighted Details
fs, child_process, http, dns, process, and os, allowing execution of frameworks like Express, Hono, and Next.js.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Cloudflare Workers is explicitly not supported due to its lack of exposed V8 APIs required by secure-exec. For orchestrating stateful, long-running tasks, pairing with Rivet Actors is recommended for durability and fault tolerance. While it bridges Node.js APIs, it does not provide a full operating system environment, differentiating it from traditional VM or container-based sandboxes.
10 hours ago
Inactive
instavm
eugene1g
zerocore-ai