Installation
Each library in the Enclave monorepo can be installed independently.Prerequisites
- Node.js: >= 22.0.0
- npm: >= 10 (or yarn/pnpm equivalent)
Core Libraries
@enclave-vm/core
Secure AgentScript execution environment with defense-in-depth.@enclave-vm/ast
AST-based JavaScript validator with 100% CVE coverage.EnclaveJS Streaming Runtime
The EnclaveJS packages provide a streaming runtime for real-time code execution with tool orchestration.Full Stack (Recommended)
Install all packages needed for a complete streaming setup:Individual Packages
@enclave-vm/types
Protocol types and Zod schemas (automatically installed as dependency).@enclave-vm/stream
Streaming protocol implementation with encryption support.@enclave-vm/broker
Tool broker with session management and HTTP API.@enclave-vm/client
Browser and Node.js client SDK.@enclave-vm/react
React hooks and components.@enclave-vm/runtime
Standalone deployable runtime worker.Quick Start Examples
Basic Sandbox (@enclave-vm/core)
Streaming with React
Development Setup
To work on the Enclave monorepo itself:Package Versions
| Package | Version | Description |
|---|---|---|
| @enclave-vm/core | 2.7.0 | Secure sandbox runtime |
| @enclave-vm/ast | 2.4.0 | AST security validator |
| @enclave-vm/types | 0.1.0 | Protocol types |
| @enclave-vm/stream | 0.1.0 | Streaming protocol |
| @enclave-vm/broker | 0.1.0 | Tool broker |
| @enclave-vm/client | 0.1.0 | Client SDK |
| @enclave-vm/react | 0.1.0 | React integration |
| @enclave-vm/runtime | 0.1.0 | Runtime worker |