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

n-pass-scan

v0.1.0

Published

Open-source secret scanner — GitHub Action + CLI. Bridge to N-Pass Developer Watchtower.

Readme

n-pass-scan

Open-source secret scanner — GitHub Action + CLI + pre-commit hook.

22 vendor-specific patterns covering AWS, Stripe, GitHub, OpenAI, Anthropic, Slack, Twilio, SendGrid, Mailgun, Google API, RSA/PEM private keys, JWTs, npm publish tokens, GitLab PATs, Sentry auth tokens, and more.

Powered by the same engine as N-Pass Developer Watchtower.

GitHub Action

name: Secret scan
on: [push, pull_request]
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: Bellazilla/n-pass-scan@v1
        with:
          fail-on: high       # critical | high | medium | none
          reporter: github    # github | sarif | json

Outputs findings / critical-count / high-count for downstream steps.

CLI

# One-off scan of cwd
npx n-pass-scan

# JSON for piping
npx n-pass-scan --json | jq '.findings | length'

# Fail only on critical
npx n-pass-scan --fail-on critical

Pre-commit hook

# Husky
echo 'npx --no-install n-pass-scan --staged' > .husky/pre-commit

# Native git hook
echo '#!/bin/sh\nnpx --no-install n-pass-scan --staged' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

--staged only scans the files in git diff --cached, so the hook is fast even on huge repos.

How it differs from the SaaS Developer Watchtower

The free OSS scanner runs on your CI / your machine. The SaaS Developer Watchtower adds:

  • Continuous scanning across all your public repos (no need to add the Action to each one)
  • Email alerts on new commits with leaks
  • Private repo support (via GitHub App with read-only contents scope)
  • Centralised dashboard for org-wide audit
  • 100 commits/month free, paid plans unlock more

License

MIT.

Publishing

This directory is the seed for the public repository at github.com/Bellazilla/n-pass-scan. To bootstrap:

cd tools/n-pass-scan
pnpm install
pnpm run build
# Then push contents (excluding node_modules + the dist subfolder) to the public repo

The dist/ JavaScript bundle is what GitHub Actions runs (Node 20 runtime, using: node20), so it MUST be committed to the public repo or the Action won't execute.