New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@grayhaven/sandcastle

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grayhaven/sandcastle

The fastest way to run untrusted JavaScript safely. Zero-config, Bun-first.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
12
140%
Maintainers
1
Weekly downloads
 
Created
Source

@grayhaven/sandcastle

The fastest way to run untrusted JavaScript safely. Zero-config, Bun-first.

bun add @grayhaven/sandcastle    # zero dependencies
npm install @grayhaven/sandcastle isolated-vm  # Node.js
import { evaluate, run } from "@grayhaven/sandcastle";

await evaluate("1 + 1");                    // 2
await evaluate("x * y", { x: 6, y: 7 });    // 42
await run("return input.x * 2", { x: 21 }); // 42

Performance: 66,000 ops/sec (Bun) / 380,000 ops/sec (Node.js) with pooling enabled.

See the full documentation for the complete API reference.

Keywords

sandbox

FAQs

Package last updated on 01 Apr 2026

Related posts