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

pastoralist

v1.12.8

Published

Audit, secure, and clean up package manager overrides for npm, pnpm, Yarn, and Bun.

Readme

Pastoralist

npm version npm downloads TypeScript CI OpenSSF Scorecard codecov GitHub stars

Pastoralist is an audit trail for package manager overrides.

Overrides often start as real fixes: a CVE patch, a compatibility pin, a fork, or a temporary transitive dependency workaround. Months later, the override is still in package.json, but the reason is usually somewhere else.

Pastoralist keeps the package-manager instruction where it belongs and adds the missing review record: why the override exists, which packages still need it, which security provider found it, and when it can be removed.

Quick Start

Start with a read-only check:

npx pastoralist doctor

For first-run guidance across local use, agents, and CI:

npx pastoralist onboard

The onboarding output includes quick scripts and copy/paste prompts for agents. See the Onboarding guide for the same checklist in the docs.

Install the Pastoralist agent skill in a repo:

npx -p pastoralist pastoralist-setup-skill

Set up local dev with selected skills and hooks:

npx -p pastoralist pastoralist-setup-local-dev --skills all --hooks git,postinstall

When you are ready to add it to the project:

npm install pastoralist --save-dev
npx pastoralist --init
npx pastoralist

Optionally keep the appendix current after installs:

{
  "scripts": {
    "postinstall": "pastoralist"
  }
}

Pastoralist can add that hook for you:

npx pastoralist --setup-hook

Why It Exists

Package managers already know how to force a version:

{
  "overrides": {
    "qs": "6.11.2"
  }
}

That may be exactly the right fix. The missing part is the operational record. Pastoralist adds one without moving the override:

{
  "overrides": {
    "qs": "6.11.2"
  },
  "pastoralist": {
    "appendix": {
      "[email protected]": {
        "dependents": {
          "express": "[email protected]"
        },
        "ledger": {
          "addedDate": "2026-05-30T00:00:00.000Z",
          "reason": "Pin qs while upstream dependencies adopt the patched version.",
          "source": "manual"
        }
      }
    }
  }
}

The override controls installation. The appendix explains the decision. When security checks run, the same ledger can include CVEs, severity, provider, and patched-version metadata.

What It Does

  • Tracks npm and Bun overrides, pnpm pnpm.overrides, and Yarn resolutions
  • Records why an override was added and which packages still depend on it
  • Connects security metadata such as CVEs, severity, provider, and patched version
  • Links patch-package files to the override entries they support
  • Reports stale overrides and removes them only when you pass --remove-unused
  • Reads workspace manifests and writes one consolidated root appendix
  • Provides dry-run, summary, quiet, and JSON output for CI

Commands

| Command | Purpose | | ----------------------------------------- | ---------------------------------------------- | | npx pastoralist onboard | Show setup, agent, and GitHub Action guidance | | npx pastoralist doctor | Read-only setup and override health check | | npx pastoralist | Update the override appendix | | npx pastoralist --dry-run | Preview package.json changes | | npx pastoralist --remove-unused | Remove overrides no package still needs | | npx pastoralist --checkSecurity | Check advisories with the default OSV provider | | npx pastoralist --quiet --checkSecurity | Minimal CI output and vulnerability exit code | | npx pastoralist --summary | Print package, override, and security metrics |

Setup Helpers

| Command | Purpose | | ------------------------------------------------------------------------------------- | ------------------------------------ | | npx -p pastoralist pastoralist-setup-skill | Install the Pastoralist agent skill | | npx -p pastoralist pastoralist-setup-local-dev --help | Show local dev setup options | | npx -p pastoralist pastoralist-setup-local-dev --dry-run | Preview agent, skill, and hook setup | | npx -p pastoralist pastoralist-setup-local-dev --skills all --hooks git,postinstall | Set up skills and hooks |

Configuration

Pastoralist can use package.json, .pastoralistrc.json, pastoralist.json, pastoralist.config.cjs, pastoralist.config.js, or pastoralist.config.mjs.

{
  "pastoralist": {
    "depPaths": "workspace",
    "checkSecurity": true,
    "security": {
      "provider": "osv",
      "severityThreshold": "medium",
      "hasWorkspaceSecurityChecks": true
    }
  }
}

See Configuration and Workspaces for the full setup surface.

GitHub Action

Check override tracking on pull requests:

name: Override Check
on: [pull_request]

jobs:
  pastoralist:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: yowainwright/pastoralist@v1
        with:
          mode: check
          check-security: false

The action can also run security checks, update files, or open scheduled maintenance PRs. See the GitHub Action docs.

Security and Release Assurance

Pastoralist can write to package.json, so the package should be boring to verify.

  • Releases are published from GitHub Actions with npm provenance
  • Published tarballs are packed before release and attached to GitHub Releases with artifact attestations
  • CI runs CodeQL, OpenSSF Scorecard, unit, integration, e2e, and dependency policy checks

You can verify registry signatures from your project:

npm audit signatures

Docs

Thanks

Shout out to Bryant Cabrera and Mardin for the conversation, insight, and pairing around this topic.

Made by @yowainwright. MIT, 2022.