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

api-drift-check

v0.1.0

Published

Self-hosted checker for API Drift Monitor -- runs in your own CI, diffs your live API against its spec, and posts only the pass/fail result (never credentials) to your dashboard.

Readme

api-drift-check

Self-hosted checker for API Drift Monitor — the CLI runs in your own CI, using your own secrets, and never sends your API credentials anywhere. It computes the drift diff locally and posts only a pass/fail result (plus the diff itself, no request/response bodies) to your dashboard.

Quick start

npx api-drift-check init \
  --base-url https://api.example.com \
  --ingest-url https://api-drift-monitor.vercel.app/api/ingest \
  --spec-mode baseline \
  --endpoints "GET:/users/1,GET:/orders"

This writes two files to your repo:

  • .api-drift-check.json — non-secret config (base URL, spec mode, ingest URL). The webhook token is deliberately never written here.
  • .github/workflows/api-drift-check.yml — a scheduled workflow that runs npx api-drift-check run on your own GitHub Actions minutes.

Commit both, then add a repo secret named API_DRIFT_WEBHOOK_TOKEN (the token shown in your dashboard when you add the API) under Settings → Secrets and variables → Actions. Push, and the checker starts running on your schedule.

Spec modes

| Mode | --spec-mode | What it needs | How it diffs | |---|---|---|---| | No spec | baseline | --endpoints "METHOD:path,..." | Learns a schema from the first 5 live samples of each endpoint, diffs against it on later runs. State persists across runs via actions/cache. | | OpenAPI | openapi | --spec-url <url> | Extracts endpoints from the spec and diffs each live response against its documented schema, fetched fresh every run. | | MCP server | mcp | just --base-url (the MCP server's JSON-RPC endpoint) | Snapshots tools/list and diffs it against the previous run's snapshot — there's no external spec to compare against for MCP servers. |

run

Called by the generated workflow; you generally don't need to run this yourself. Exits non-zero if anything drifted, so a real regression shows up as a failed GitHub Actions run — not just a Slack ping that's easy to miss.

Why self-hosted

Nobody wants to hand a stranger's SaaS their production API key. This CLI never asks: it runs where you already trust your code to run, and the only thing that crosses the network to the dashboard is a diff result.

See the main project's README for how the dashboard, hosted mode, and the rest of the system work.