Skip to main content

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. 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.
Peer dependency: React >= 17.0.0

@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