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

@masyv/secretscan

v0.1.1

Published

SecretScan — Real-time secret & credential detector for Claude Code. 47 patterns covering Anthropic, AWS, GitHub, Stripe, database URLs, JWTs and more.

Readme

SecretScan

Real-time secret & credential detector for Claude Code. Blocks API keys, tokens, private keys, and database passwords from ever entering your LLM context window.

Rust npm License: MIT

The Problem

When Claude Code runs tools, their outputs flow directly into the context window. That includes:

  • cat .env → your API keys
  • git log → commit messages with accidentally committed credentials
  • Database query results → connection strings, hashed passwords
  • curl responses → tokens, JWTs, session cookies

SecretScan intercepts every tool output before it reaches Claude, redacts detected secrets, and logs them locally. Claude sees [REDACTED:anthropic_api_key:bbfc6912] — not sk-ant-api03-....

47 Built-in Patterns

| Severity | Providers | |----------|-----------| | 🔴 Critical | Anthropic, OpenAI, AWS, GitHub, Stripe, Google Service Account, PostgreSQL, MySQL, MongoDB, PEM Private Keys | | 🟠 High | GitLab, Slack, npm, SendGrid, Cloudflare, Azure, Redis, Heroku, Vercel, Datadog, HuggingFace, Discord, Shopify | | 🟡 Medium | JWT tokens, Twilio, env file secrets, Slack webhooks | | 🔵 Low | Test keys, certificates, high-entropy strings |

Plus Shannon entropy analysis for detecting unknown secrets by statistical pattern.

Quick Start

# Install from source
git clone https://github.com/Manavarya09/secretscan
cd secretscan
./scripts/build.sh && ./scripts/install.sh

# Auto-configure Claude Code
secretscan setup

# That's it — restart Claude Code and you're protected.

What It Looks Like

$ echo 'ANTHROPIC_API_KEY=sk-ant-api03-...' | secretscan scan

🚨  1 secret found:

  🔴 [CRITICAL]  Anthropic API Key   fingerprint: bbfc6912
             sk-ant-api03-xxxxx…

With the hook active, Claude sees:

ANTHROPIC_API_KEY=[REDACTED:anthropic_api_key:bbfc6912]

Recovery

Originals are stored locally in SQLite — never forwarded anywhere:

secretscan expand bbfc6912
# → sk-ant-api03-...

Allowlist

False positive? Mark it safe:

secretscan allow bbfc6912 --reason "This is a test key in the repo"

CLI Reference

COMMANDS:
  scan      Scan text, file, or stdin for secrets
  hook      PostToolUse hook mode (reads hook JSON from stdin)
  expand    Retrieve original value by fingerprint
  allow     Add fingerprint to allowlist
  unallow   Remove fingerprint from allowlist
  stats     Show scan statistics
  audit     List recent findings
  patterns  List all 47 built-in patterns
  setup     Auto-install PostToolUse hook into ~/.claude/settings.json

OPTIONS:
  --json        Output as JSON
  --db-path     SQLite path [default: ~/.secretscan/secretscan.db]
  -v, --verbose Verbose logging

Manual Hook Setup

Add to ~/.claude/settings.json:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [{ "type": "command", "command": "secretscan hook" }]
      }
    ]
  }
}

Performance

  • < 2ms per scan for typical tool outputs
  • Zero network calls — everything is local
  • < 5MB binary (release, stripped)

License

MIT