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 🙏

© 2025 – Pkg Stats / Ryan Hefner

sandboxbox

v3.0.78

Published

Lightweight process containment sandbox for CLI tools - Playwright, Claude Code, and more. Pure Node.js, no dependencies.

Downloads

1,465

Readme

SandboxBox

Cross-platform container runner with Claude Code and Playwright support

Run your projects in isolated containers using Podman. Works on Windows, macOS, and Linux.

Installation

No installation required! Podman binaries auto-download on first use:

npx sandboxbox build
npx sandboxbox run ./my-project

Auto-Download Feature

SandboxBox automatically downloads portable Podman binaries when you run it:

  • Windows - Downloads podman.exe (v4.9.3)
  • macOS - Downloads podman remote client
  • Linux - Downloads static podman binary

Just like sqlite or Playwright, no manual installation needed!

Manual Installation (Optional)

If you prefer to install Podman system-wide:

Windows:

winget install RedHat.Podman

macOS:

brew install podman
podman machine init
podman machine start

Linux:

sudo apt-get install podman     # Ubuntu/Debian
sudo dnf install podman          # Fedora
sudo apk add podman              # Alpine

Quick Start

1. Build Container

npx sandboxbox build

This builds a container with:

  • Node.js v22
  • Claude Code CLI
  • Playwright with all browser dependencies
  • Git, npm, and essential build tools

2. Run Your Project

# Run with default shell
npx sandboxbox run ./my-project

# Run custom command
npx sandboxbox run ./my-project "npm test"

# Run Claude Code
npx sandboxbox run ./my-project "claude --help"

# Run Playwright tests
npx sandboxbox run ./my-project "npx playwright test"

3. Interactive Shell

npx sandboxbox shell ./my-project

Features

🌍 Cross-Platform

  • Windows - Full support with Podman Desktop
  • macOS - Works with Podman machine
  • Linux - Native Podman support

🔒 Isolation

  • Complete container isolation
  • Your host system stays clean
  • Workspace mounted at /workspace

🚀 Pre-installed Tools

  • Node.js v22
  • Claude Code CLI - AI-powered development
  • Playwright - Browser automation with all dependencies
  • Git - Version control
  • npm - Package management

📦 NPX-First Design

  • No global installation needed
  • Single command execution
  • Works with any project directory

Commands

# Build container from Dockerfile
npx sandboxbox build
npx sandboxbox build ./Dockerfile.custom

# Run project in container
npx sandboxbox run <project-dir> [command]

# Interactive shell
npx sandboxbox shell <project-dir>

# Show version
npx sandboxbox version

How It Works

  1. Builds a container image from the Dockerfile using Podman
  2. Mounts your project directory to /workspace in the container
  3. Runs your command in the isolated container environment
  4. Removes the container automatically when done
Your Project              Container
./my-project    ━━━━━>    /workspace
(host)                    (isolated)

Use Cases

Run Claude Code

npx sandboxbox run ./my-app "claude --version"
npx sandboxbox run ./my-app "claude code review lib/"

Run Playwright Tests

npx sandboxbox run ./my-app "npx playwright test"
npx sandboxbox run ./my-app "npx playwright test --headed"

Development Workflow

# Build once
npx sandboxbox build

# Interactive development
npx sandboxbox shell ./my-app

# Inside container:
npm install
npm test
git commit -am "Update"
exit

Run npm Scripts

npx sandboxbox run ./my-app "npm run build"
npx sandboxbox run ./my-app "npm run lint"
npx sandboxbox run ./my-app "npm run test:e2e"

Custom Dockerfile

Create your own Dockerfile:

FROM node:22-alpine

# Install system dependencies
RUN apk add --no-cache git bash curl

# Install global packages
RUN npm install -g @anthropic-ai/claude-code @playwright/test

# Install Playwright browsers
RUN npx playwright install --with-deps chromium

WORKDIR /workspace

CMD ["/bin/bash"]

Then build:

npx sandboxbox build ./Dockerfile

Requirements

  • Podman (https://podman.io/getting-started/installation)
  • Node.js 16+ (for running npx)

Project Structure

sandboxbox/
├── cli.js              # Main CLI - Podman integration
├── Dockerfile          # Container definition
├── package.json        # NPM package config
└── README.md           # This file

Why Podman?

  • Cross-platform - Works on Windows, macOS, Linux
  • Rootless - No daemon, runs as regular user
  • Docker-compatible - Uses OCI standard containers
  • Secure - Better security model than Docker
  • Fast - Lightweight and efficient

Differences from v1.x

v1.x (bubblewrap):

  • Linux-only
  • Required bubblewrap installation
  • Direct process isolation

v2.x (Podman):

  • Cross-platform (Windows/macOS/Linux)
  • Uses Podman containers
  • OCI-standard container images
  • More portable and widely supported

License

MIT

Contributing

Contributions welcome! This project focuses on cross-platform container execution with Claude Code and Playwright support using Podman.