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

@torkbot/code-mode-sandbox

v0.1.0

Published

Sandbox-backed runtime integration for @torkbot/code-mode.

Readme

@torkbot/code-mode-sandbox

Run @torkbot/code-mode programs with Node.js 24 inside @torkbot/sandbox microVMs.

This package owns the integration between code mode's runtime contract and Sandbox VM execution. It adapts a caller-owned, booted SandboxInstance into the execution host required by Node24Runtime; composing those values produces a code-mode runtime backed by Node.js inside that machine.

The caller owns the Sandbox lifecycle. It chooses the image, persistence, mounts, resources, network access, machine identity, and reuse policy; boots the machine; keeps it open while the runtime is in use; and closes it afterward. The Sandbox runtime host owns only the guest processes it launches through Node24Runtime. This package does not boot, pool, reuse, or close Sandbox machines.

@torkbot/code-mode remains responsible for tool declarations, source validation, protocol routing, and telemetry. @torkbot/sandbox remains responsible for isolated VM execution. This package adds only the integration required to use those capabilities together. The runtime channel is the Sandbox process pipe's standard readable and writable Web Streams pair.

Install

npm install @torkbot/code-mode @torkbot/code-mode-sandbox @torkbot/sandbox

Usage

Define and boot the machine with Sandbox, then adapt that machine for code mode:

import { createClient } from "@torkbot/code-mode";
import { Node24Runtime } from "@torkbot/code-mode/node";
import { createSandboxNodeRuntimeHost } from "@torkbot/code-mode-sandbox";
import { defineSandbox } from "@torkbot/sandbox";

const definition = defineSandbox({
  rootfs: machineRootfs,
  resources: {
    cpus: 2,
    memoryMiB: 2048,
  },
});

await using sandbox = await definition.boot({
  cwd: "/workspace",
});

const runtime = new Node24Runtime(
  createSandboxNodeRuntimeHost({
    sandbox,
    cwd: "/workspace",
    nodePath: "/usr/bin/node",
  }),
);

const client = createClient({
  toolbox,
  runtime,
});

The absolute guest working directory and Node.js path are required because they determine module resolution and the executable used for both validation and execution. The Sandbox instance must remain open until every runtime instance started through the composed runtime has finished.

Development

Requires Node.js 24 or newer.

npm ci
npm test
npm run build

Releases

Every successful push to main produces an immutable package payload tied to that commit. Publishing a GitHub release tagged v<package version> verifies that exact CI artifact, derives the published package.json version from the tag, and repacks the payload without rebuilding its code before publishing it to npm.