npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@isol8/core

v0.20.0

Published

Sandboxed code execution engine for AI agents and apps (Docker, runtime and network controls)

Downloads

1,540

Readme

@isol8/core

TypeScript SDK for secure, isolated code execution.

isol8 is a secure execution system for untrusted code (especially LLM/agent-generated code) using sandboxed Docker containers.

@isol8/core is the engine package behind the isol8 CLI and server.

When To Use

Use this package if you want to:

  • embed sandboxed code execution in your own application
  • execute untrusted scripts with resource and network controls
  • run local Docker-backed sandboxes (DockerIsol8)
  • call remote isol8 servers (RemoteIsol8)

Key Features

  • Supports python, node, bun, deno, and bash
  • Execution modes: ephemeral and persistent
  • Streaming execution API (executeStream)
  • File APIs (putFile, getFile) for sandbox sessions
  • Network control with allow/deny filtering
  • Limits for timeout, CPU, memory, PIDs, and output size
  • Built-in secret masking/sanitization in execution paths
  • Container pooling for faster repeat execution
  • Runtime adapter architecture for extensibility
  • Config loader + JSON schema export (@isol8/core/schema)

Installation

npm install @isol8/core
# or
bun add @isol8/core

Quick Start (Local Engine)

import { DockerIsol8 } from "@isol8/core";

const engine = new DockerIsol8({ network: "none" });
await engine.start();

const result = await engine.execute({
  code: "print('Hello from isol8')",
  runtime: "python",
  timeoutMs: 10_000,
});

console.log(result.stdout);
await engine.stop();

Quick Start (Remote Engine)

import { RemoteIsol8 } from "@isol8/core";

const remote = new RemoteIsol8(
  { host: "http://localhost:3000", apiKey: "my-api-key" },
  { network: "none" }
);

await remote.start();
const result = await remote.execute({ code: "console.log(42)", runtime: "node" });
await remote.stop();

Agent/Automation Integration Pattern

Use @isol8/core when you need programmatic sandbox execution in an agent service:

  1. Start engine (DockerIsol8 or RemoteIsol8).
  2. Execute untrusted code with explicit runtime/limits.
  3. Consume structured result (stdout, stderr, exitCode, durationMs).
  4. Optionally stream output using executeStream.
  5. Stop engine during shutdown.

This keeps agent control logic in your app while isol8 enforces sandbox boundaries.

Main Exports

  • DockerIsol8 - local Docker-backed sandbox engine
  • RemoteIsol8 - HTTP client for remote isol8 server
  • loadConfig - resolve and load isol8.config.json
  • VERSION, logger, runtime and request/response types

Related Packages

  • @isol8/cli: command-line interface (isol8)
  • @isol8/server: HTTP server implementation

Full docs: isol8 documentation Project README: isol8/README.md

License

MIT - See LICENSE