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

@euanmsm/vouch

v0.1.1

Published

Runs lifecycle scripts for named packages while .npmrc's ignore-scripts blocks everyone else

Readme

@euanmsm/vouch

Lets a named handful of packages run their install scripts while every other package is blocked from running anything at all.

A dependency's postinstall script runs arbitrary code on your machine, with your permissions, the moment you type npm install — and you almost never read it. That is the route most npm supply-chain attacks take. Setting ignore-scripts=true closes it, but also breaks the few packages that genuinely need a script: sharp downloading a native binary, esbuild fetching a platform build.

This runs those few, by name, and nothing else.

Installing

npm i -D @euanmsm/vouch

Block scripts in .npmrc:

ignore-scripts=true

Then run the allowlist after each install, as its own step:

{ "scripts": { "setup": "npm install && vouch" } }
npm run setup           # locally
npm ci && npx vouch     # in CI and Docker builds

Do not hook it to your own postinstall. ignore-scripts also skips your root package's lifecycle scripts (preinstall, postinstall, prepare, and the pre/post hooks of any script), so npm install would finish without running vouch and without saying so. A script you name directly, like npm run setup, still runs.

Configuring

cp node_modules/@euanmsm/vouch/vouch.example.json \
   .devkit/vouch.json
{
  "allowed": [
    {
      "pkg": "sharp",
      "script": "install",
      "reason": "Downloads prebuilt libvips binary"
    }
  ]
}

reason is required by convention rather than by code: an entry nobody can explain is a hole nobody can review. Add "timeout" in milliseconds to override the five-minute default for a slow native build.

The config is read from the git root, or, when there is no .git as in a Docker build, from the nearest directory above the cwd that has one. Each package is looked for in node_modules from the cwd up to the git root, as Node resolves modules, so an app below the git root or a workspace member with hoisted dependencies finds its packages. Its script runs from the directory where it was found.

With no config file it runs nothing and says so. An allowlisted package that is not installed is skipped with a line saying where it looked; one whose script fails is reported, and the command exits non-zero.