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

npm-audit-gate

v1.0.0

Published

CI gate that fails builds on npm vulnerabilities, with exceptions scoped by advisory and exact dependency path. Yarn 4 only.

Readme

npm-audit-gate

CI gate that fails builds on npm vulnerabilities, with exceptions scoped by advisory and exact dependency path. Yarn 4 only.

yarn npm audit reports which packages are vulnerable, and yarn info provides the resolved dependency graph, which gives every full path by which those packages are reached. The gate fails if any of those paths is not covered by the consuming repo's .audit-allowlist.jsonc.

Usage

Run the gate from the root of the repo you want to check:

npx @binsentry/npm-audit-gate

Exit 0 means no unallowlisted advisories.

Each exception is scoped to one advisory arriving via one exact dependency path, so an advisory accepted because it arrives through a build-time tool will still fail the build if it later arrives through a runtime dependency.

Adding an allowlist entry

When the gate fails, it prints everything you need:

❌ minimist GHSA-xvch-5gv4-984h (critical): Prototype Pollution in minimist
   https://github.com/advisories/GHSA-xvch-5gv4-984h
   path: ndarray-unpack>cwise>static-module>quote-stream>minimist

Copy the ghsa and the path into .audit-allowlist.jsonc at the repo root, with a comment saying why the risk is acceptable and what would change that:

{
  "severity": "critical",
  "allowlist": [
    // ndarray hasn't been updated in 12 years, so there is no upgrade path available.
    { "ghsa": "GHSA-xvch-5gv4-984h", "path": "ndarray-unpack>cwise>static-module>quote-stream>minimist" }
  ]
}

A package reached more than one way produces one failure per path, and each needs its own entry.

severity sets the threshold for the whole repo and defaults to critical if omitted. It is a floor, so high also reports anything critical. The file itself is optional: a repo with no exceptions doesn't need one.

An entry may also set "expires": "2027-01-01", after which it stops matching and the build fails again. Set one whenever the exception is meant to be temporary (i.e. waiting out a fix that is not available yet) so the entry can't outlive the reason for it.

An entry that matches nothing is reported as unused — either the advisory was fixed, the path changed, or it expired. Remove it.