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

gatefit

v0.8.0

Published

Stripe Entitlement Edge Pack — CI that asserts the access DB survives ugly billing transitions

Readme

gatefit

Stripe Entitlement Edge Pack — CI that asserts the access DB survives ugly billing transitions.

YAML fixture scenarios, an npx gatefit CLI, and a GitHub Action. Node 22+. Not a billing UI. 0.8.0 adds free S10–S12 goldens and the gatefit.io homepage redesign. This change does not publish 0.8.0.

Distribution

The CLI and GitHub Action in this repository stay free. The docs site is live. npm is live: npx gatefit (gatefit). Buy the $49 one-time Gatefit Indie License from https://gatefit.io/#pricing, which links to the Polar Checkout Link on buy.polar.sh.

  • Docs site: live. Hosted at https://gatefit.io. Cloudflare Pages project gatefit, hostname gatefit-bdu.pages.dev. From site/: npm run build, then npx wrangler@4 pages deploy dist --project-name gatefit. CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID come from the environment. GitHub Pages needs a public repository or a paid plan and is not the live host. .github/workflows/pages.yml builds the site on pushes to main and does not deploy. scripts/deploy-site.sh can copy site/dist locally or deploy that Cloudflare target.
  • npm: live. npx gatefit today is the published tarball [email protected] at https://www.npmjs.com/package/gatefit. This repo is 0.8.0. This change does not publish 0.8.0. The named gate runs npm publish --dry-run only. A v* tag publishes with OIDC. See Releasing.
  • Polar checkout: Gatefit Indie License, $49 one-time via the Polar Checkout Link https://buy.polar.sh/polar_cl_biyvx7HYtN2u19tUJCCkIuGOc98uVv7IG3gcB04eIJ0. A plain site build and scripts/deploy-site.sh use that committed link. PUBLIC_POLAR_CHECKOUT_URL may override it. Any other value fails closed.

Install / run

npx gatefit --version
npx gatefit adapter-check
npx gatefit run --suite paid_grants_access --adapter ./src/your-access-adapter.ts

This repo is 0.8.0. It is not published yet. Registry: https://www.npmjs.com/package/gatefit

better-sqlite3 is optional and ships prebuilds for common platforms. npm 9 still runs node-gyp during install and drops the package when that compile fails. npm 10 and newer unpack the prebuild. --version, --help, and adapter-check run when the native module is missing. The reference SQLite adapter loads it only when that adapter runs. If the module is missing, that command tells you to upgrade npm to 10 or newer, reinstall with npm install --ignore-scripts, or install a C++ compiler, then exits non-zero.

From a clone:

npm install
node bin/gatefit.js --version
node bin/gatefit.js adapter-check
node bin/gatefit.js run --suite paid_grants_access --adapter ./src/your-access-adapter.ts

Named verify gate (fixture-first; do not set GATEFIT_LIVE_CLOCK):

bash ./ci-local.sh

Bring your own AccessAdapter in ≤30 minutes: docs/bring-your-adapter.md.

gatefit init (free) generates a Postgres adapter for drizzle, Prisma, Supabase, or plain pg and runs every free golden against it. It is not part of 0.5.2 and is new in 0.6.0. See site/src/content/docs/init.md for templates, safety rules, and its exit codes (2 usage, 3 would overwrite, 4 live key refused).

GitHub Action

Marketplace-ready Action lives at the repo root (action.yml). Snippets use @v0.8.0. That tag is not cut in this change. Tag v0.7.0 is the last release.

- uses: actions/setup-node@v4
  with:
    node-version: "22"
- uses: gatefit/[email protected]
  with:
    adapter: src/your-access-adapter.ts

Nested path still works:

- uses: gatefit/gatefit/.github/actions/[email protected]
  with:
    adapter: src/your-access-adapter.ts

The Action wraps gatefit run. Adapter path is in your repo. uses: gatefit/[email protected] runs this repo’s goldens, including free S7–S12. 0.5.2 is the first release that ships S7–S9. 0.8.0 is the first release that ships S10–S12. This change does not publish that tag. See docs/publish.md and the release notes docs/release-v0.8.0.md.

Do not set GATEFIT_LIVE_CLOCK for the named gate. Do not use sk_live. Never treat Stripe HTTP 200 as proof of access.

Opt-in live Test Clocks (not default CI): docs/live-clock.md.

Telemetry

Site analytics: gatefit.io uses cookieless Cloudflare Web Analytics, with no cookies and no browser storage. A Buy click sends one {"event":"buy_click"} beacon to https://t.gatefit.io/v1/site and never blocks the Checkout Link.

CLI telemetry: not shipped in 0.5.2. It ships in 0.6.0, and it is opt-in and off by default. The collector at t.gatefit.io is live. It accepts pack: paddle, accepts the S10–S12 suite ids, applies the FUTURE_SKEW_MS guard, and serves the status checks for gatefit.io/status/ at GET /v1/status (worker/telemetry/README.md). Deployed 2026-11-08 from main 70faa3e (version ffb08bff). Without GATEFIT_TELEMETRY=1 or gatefit telemetry on, the CLI makes no telemetry request and writes no telemetry file. DO_NOT_TRACK=1, GATEFIT_TELEMETRY=0, and gatefit telemetry off always win. On CI, only GATEFIT_TELEMETRY=1 opts in. When on, it sends one POST to https://t.gatefit.io/v1/event after init, run, adapter-check, or live. The request is bounded to about 1.5 s, fails silently, and never changes exit codes or output. gatefit telemetry status prints the exact JSON.

Payload keys, each value from a fixed list: v, install_id (random UUID), version, node (major), platform, arch, command, outcome, template, pack, suite (bundled golden id, pack, or custom). Paths, repo names, emails, keys, env values, adapter names, and Stripe or Polar data are never sent. Details: site/src/content/docs/telemetry.md.

Releasing

Bump version in package.json and the lockfile version field, and add the matching CHANGELOG.md heading, in a pull request. Merge to main. Then push an annotated tag whose name is v plus that version:

git tag -a vX.Y.Z -m "vX.Y.Z"
git push origin vX.Y.Z

The tag must match v*. The workflow fails when the tag without the leading v is not package.json version. That push runs .github/workflows/publish.yml: unit tests (npm test), the tarball checks (bin present, no site/, no secrets), then npm publish --access public. Provenance is automatic. The publish job requires the GitHub environment npm, so a required reviewer can be added there. workflow_dispatch runs the checks and does not publish. Do not set a registry token.

One-time setup on npmjs.com for package gatefit: open Package settings, Trusted Publisher, GitHub Actions. Organization or user gatefit, repository gatefit, workflow filename publish.yml, environment name npm, and allow npm publish. Then set Publishing access to Require two-factor authentication and disallow tokens.

./ci-local.sh stays the merge gate. It runs npm publish --dry-run and does not push tags.

License

S1–S6, S7–S12 (no-card trial, portal downgrade, active entitlement summary, trial pause and resume, Smart Retries recovery from unpaid, collection pause), seats/races, dispute/unpaid, and live Test Clocks stay free. Those packs do not read GATEFIT_LICENSE_KEY and do not call Polar. 0.5.2 is the first release that ships S7–S9. 0.8.0 is the first release that ships S10–S12. This change does not publish 0.8.0.

The $49 Gatefit Indie License unlocks chaos mode, Polar and Paddle packs. The Polar provider pack is new in 0.6.0. The Paddle provider pack is new in 0.7.0. A missing, invalid, or revoked key exits non-zero and points at https://gatefit.io/#pricing.

The Polar provider pack ships in 0.6.0 as gatefit run --suite polar. It uses the same license and checks your access table against Polar webhooks: docs.

The Paddle provider pack ships in 0.7.0 as gatefit run --suite paddle (npx [email protected] or the installed package), under the same $49 one-time Gatefit Indie License: docs.

gatefit run --suite chaos --adapter src/adapters/hardened.ts --seed 1

Chaos mode replays every golden under a seeded set of delivery perturbations and compares the access row to the in-order replay. The perturbations are duplicated deliveries, reordered events, stale events, late events, dropped-then-replayed events, and the checkout-return page loading before the webhook. HTTP 200 is not access. The seed defaults to 1. --seed wins over GATEFIT_CHAOS_SEED. The same seed prints the same bytes. A failure prints that seed and the perturbed events. Details: docs/chaos.md.

export GATEFIT_LICENSE_KEY='GATEFIT-…'

Validation is POST https://api.polar.sh/v1/customer-portal/license-keys/validate with the key and organization id 68556619-45ab-4a88-8ad8-08606c2b820e. No Polar API token. A valid result is cached for 24 hours by sha256, never as the raw key. If Polar is unreachable, a cached valid result is reused with a warning. With no cache, the command warns and still runs. Details: docs/license.md.