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

@stridekit/sandbox

v0.0.3

Published

Client SDK for creating and managing Stridekit sandbox VMs

Downloads

23

Readme

Sandbox SDK

Stridekit Sandbox SDK - Client library for interacting with Stridekit VM Agent via orchestrator.

Installation

npm install @stridekit/sandbox
# or
pnpm add @stridekit/sandbox

Quick Start

import { Sandbox } from '@stridekit/sandbox';

// Set API key via environment variable
// export STRIDEKIT_API_KEY="your-api-key"

// Create a new sandbox VM — resolves only once the VM is running
const sandbox = await Sandbox.create();

// Run a command
const result = await sandbox.commands.run({
  cmd: 'echo "Hello from Stridekit!"',
});

console.log(result.stdout); // "Hello from Stridekit!"

// Clean up
await sandbox.terminate();

Authentication

Generate an API key at app.stridekit.ai/orgs/{your-org}/api-keys.

The SDK supports multiple authentication methods.

Quick Overview

// 1. Environment variable (recommended)
// export STRIDEKIT_API_KEY="your-api-key"
const sandbox = await Sandbox.create();

// 2. Static configuration
Sandbox.config({ apiKey: 'your-api-key' });

// 3. Dynamic resolver
Sandbox.config({
  resolveApiKey: async () => await getToken(),
});

Usage

Create a sandbox

const sandbox = await Sandbox.create({
  vmConfig: {
    name: string;                        // VM name
    cpuCount: number;                    // Number of CPUs
    memoryMB: number;                    // Memory in MB
    preset: VmPreset;                    // 'ubuntu24-x86_64' | 'ubuntu24-aarch64' | 'alpine3-x86_64' | 'alpine3-aarch64'
    networkPolicy?: NetworkPolicy;       // Egress policy (undefined = deny-all; use 'allow-all' to opt out)
    exposedPorts?: ExposedPort[];        // Ports accessible from outside the VM
    timeoutSeconds?: number;             // Auto-terminate after N seconds (max 18000, default 3600)
    volumeMounts?: VolumeMount[];        // Persistent volumes to attach
    envVars?: Record<string, string>;    // Env vars injected into all commands and PTYs
  };
  timeout?: number;                      // Command timeout (ms)
  vmCreationTimeout?: number;            // VM creation timeout (ms, default 180 000)
});

Run a command

const result = await sandbox.commands.run({ cmd: 'node --version' });
console.log(result.stdout); // e.g. "v22.0.0"
console.log(result.exitCode); // 0

Snapshot

const snapshot = await Sandbox.createSnapshot({ vmId: sandbox.getVmInfo().vmId, name: 'my-snapshot' });
const restored = await Sandbox.restoreSnapshot({ snapshotId: snapshot.snapshotId });

Volume

const volume = await Sandbox.createVolume({ sizeGb: 10 });
const sandbox = await Sandbox.create({
  vmConfig: { ..., volumeMounts: [{ volumeId: volume.volumeId, mountPath: '/data' }] },
});

Port forwarding (Node.js only)

import { SandboxNode } from '@stridekit/sandbox/node';

const sandbox = await SandboxNode.create();
const fwd = await sandbox.portForward(3000);
console.log(`http://${fwd.host}:${fwd.port}`);
await fwd.close();

Documentation

Full API reference, guides, and examples: docs.stridekit.ai

License

Licensed under the Apache License, Version 2.0.