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

@penguinharness/sandbox-wsl

v0.2.2

Published

WSL sandbox backend for PenguinHarness on Windows: commands run in a dedicated WSL2 distro under bubblewrap, with Windows interop switched off.

Readme

@penguinharness/sandbox-wsl

A Windows sandbox backend for PenguinHarness. Each agent command runs in a dedicated WSL2 distro (Ubuntu by default), as an unprivileged account, under bubblewrap.

| Dimension | How | | ---------- | ------------------------------------------------------------------------------------------ | | fs-write | The distro is read-only; the Workspace is bound read-write (or read-only) at its /mnt path, and under workspace-write so are the policy's writableRoots (the Session's scratchpad) | | network | network: "none" runs the command in an empty network namespace; "local" is not supported | | mask-paths | A tmpfs over a directory, /dev/null over a file |

Other Windows drives are hidden from a confined command unless Show Windows drives read-only is on. The mount that hides them is remounted read-only after the Workspace is bound, so a write to a path outside the Workspace is refused rather than landing in a tmpfs that vanishes with the command.

WSL keeps the generated resolv.conf outside the distro's root, at /mnt/wsl/resolv.conf or /run/resolvconf/resolv.conf, and /etc/resolv.conf is a symlink to it. Both are bound back read-only, or covering those directories would leave a reachable network where no host name resolves.

Setup

Everything happens on the WSL card under Settings → Plugins → Sandbox, with its progress shown there:

  1. Install WSL: raises the Windows consent prompt for setup/install-wsl.ps1, which runs wsl --install --no-distribution. Some machines need a restart afterwards. This is the only step that needs an administrator.
  2. Initialize sandbox distro: downloads the base rootfs (checked against its published sha256), imports it as its own distro, installs bubblewrap and the Packages list, creates the penguin account, and switches Windows interop off.
  3. Check confinement: runs real commands through the sandbox and lists what passed.

State lives in %LOCALAPPDATA%\penguin\sandbox-wsl (state.json, the downloaded rootfs, the distro's disk).

Why interop is switched off

With interop on, a Windows program started inside bwrap is an ordinary host process. It escapes every namespace: in a measured run it wrote to the Windows disk and reached the internet with the network cut. The distro's /etc/wsl.conf disables interop, the sandbox also hides /run where WSL keeps its interop sockets, and the check verifies both.

The base Linux

| Base | Download | Unpacked | Note | | --- | --- | --- | --- | | Ubuntu 24.04 LTS (default) | 29 MB | 84 MB | glibc: what prebuilt binaries, native npm modules and pip wheels expect | | Alpine | 3.5 MB | 8.7 MB | musl: much smaller, and some prebuilt binaries and wheels do not run |

The Package mirror setting points apt or apk at a mirror; the rootfs itself always comes from the distribution's own site.

Limits

  • Commands run in Linux, not Git Bash. Windows toolchains cannot run confined; add Linux ones through Packages (for example nodejs, npm, python3).
  • A Windows path in a command means nothing inside the distro. The Workspace is at /mnt/<drive>/….
  • A Workspace on a network share has no path inside the distro and cannot be confined.
  • The Workspace is bound at its own path, so the empty directory chain above it (/mnt/c/Users/…) is visible even though every other drive is hidden.