428 npm packages already contain AI assistant dotfiles. 33 exposed live keys. PackGuard hooks into prepublishOnly, opens your tarball before it ships, and blocksclaude/,cursor/, source maps with embedded source, and high-entropy secrets. Refuses to publish until it's clean. Free for solo OSS.
No reviews yetBe the first to leave a review for PackGuard
Maker
📌
Hey PH 👋
Built this after I nearly shipped my own Anthropic API key inside an npm package sitting in a .claude/ state file I didn't know Claude Code had written.
The Knostic audit is what made me realise this isn't just me: 428 of 46,500 scanned packages contain AI assistant config files. 33 had live credentials.
The frustrating part: every existing scanner runs too late. gitleaks, trufflehog git history. Socket.dev, Snyk post-publish. Nobody intercepts at the npm-pack moment.
PackGuard does. It's a one-line prepublishOnly hook that opens the about-to-ship tarball and refuses to publish if it finds anything dangerous.
Free forever for solo OSS (no account needed).
Try it right now: npx packguard scan
Would love to hear: which registry should I tackle after npm — PyPI or crates.io?