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

@amlalabs/kalahari

v0.2.8

Published

Local microVM sandboxes for agent code

Readme

@amlalabs/kalahari

This repository is the release source for the @amlalabs/kalahari npm package. It exists so that the npm package, its prebuilt native bindings, and the underlying Rust sources are auditable in one place.

Kalahari is a local microVM sandbox API for agent code. The TypeScript package is intentionally thin: lifecycle, image preparation, command execution, and VM scheduling live in the Rust kalahari crate (under rust/) exposed through Node-API.

Provider compatibility modules are migration shims. New code should use KalahariClient and KalahariSandbox directly; the E2B, Daytona, ComputeSDK, and Harbor exports exist so teams can adapt existing integrations without changing their whole call site in one step.

Install

npm install @amlalabs/kalahari

Prebuilt native bindings ship for linux x64 (glibc), linux arm64 (glibc), and darwin arm64. Other platforms (Windows, FreeBSD, Alpine/musl Linux, darwin x64) are not yet supported; please open an issue if you need one.

Quick start

import { KalahariClient } from "@amlalabs/kalahari";

const client = new KalahariClient({
  image: "python:3.12-alpine",
  memoryMb: 2048,
  vcpus: 1,
});

const sandbox = await client.createSandbox();
await sandbox.mkdir("/workspace");
await sandbox.writeFile("/workspace/main.py", "print('hello from kalahari')\n");

const result = await sandbox.run("python3", {
  args: ["/workspace/main.py"],
  cwd: "/workspace",
});
console.log(result.stdout);
await sandbox.destroy();

One-shot commands:

import { runCommand } from "@amlalabs/kalahari";

const result = await runCommand({
  image: "node:22-alpine",
  command: "node",
  args: ["--version"],
});

Compatibility shims for migration:

import { kalahari } from "@amlalabs/kalahari/computesdk";
import { Sandbox as E2BSandbox } from "@amlalabs/kalahari/e2b";
import { Daytona } from "@amlalabs/kalahari/daytona";
import { createHarborEnvironment } from "@amlalabs/kalahari/harbor";

See the npm package page for the full API surface.

Building from source

npm install
npm run build:native   # builds the Node-API addon from rust/crates/kalahari
npm run build          # also runs tsc

The rust/ directory in this mirror is a pruned cargo workspace containing the kalahari crate and its workspace-internal dependencies. It is regenerated on each release; do not rely on edits surviving across releases.

Contributing

See CONTRIBUTING.md. Pull requests against this mirror may conflict with generated release output, so please open an issue before starting large changes.

License

AGPL-3.0-or-later OR BUSL-1.1. See LICENSE and LICENSES/.