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

@goguard/scan

v0.1.0

Published

Security scanner for AI-generated code — finds hardcoded secrets, missing auth, data leaks, insecure configs

Readme

@goguard/scan

Security scanner for your codebase. Finds hardcoded secrets, missing auth, data leaks, insecure configs, and more — before you push.

Requires a GoGuard API key. Get yours at dashboard.goguard.dev/settings.

Install & Run

npx @goguard/scan --api-key sk_live_...

Or set the key once as an env var:

export GOGUARD_API_KEY=sk_live_...
npx @goguard/scan

Scans the current directory by default. Pass a path to scan a specific folder:

npx @goguard/scan ./src

What it checks

| Check | Severity | Examples | |-------|----------|---------| | Hardcoded secrets | Critical | AWS keys, Stripe keys, GitHub tokens, DB passwords, private keys | | Committed sensitive files | Critical | .env, credentials.json, *.pem in repo | | Missing .gitignore | Critical | No .gitignore or missing key entries | | Missing auth middleware | Critical/High | Routes like /admin/* without auth/jwt/session middleware | | Raw SQL concatenation | High | `SELECT * FROM users WHERE id = ${id}` | | Response data leaks | High | API returning password, secret, token fields | | Insecure dependencies | High | Known CVEs via npm audit / pip audit | | Supabase misconfig | Critical/High | Missing RLS, public storage, service role key in frontend | | Firebase misconfig | Critical/High | allow read, write: if true in security rules | | Weak JWT secrets | High | Short or common secrets like secret, password |

Options

--api-key     GoGuard API key (or set GOGUARD_API_KEY env var)
--json        Output results as JSON
--fail-on     Exit code 1 if issues at this severity or above (critical, high, medium, low)
--help        Show help

CI / GitHub Action

- uses: goguard/scan@v1
  with:
    api-key: ${{ secrets.GOGUARD_API_KEY }}
    fail-on: high

Results are automatically sent to your GoGuard dashboard under Vulnerabilities.

Example output

GoGuard Security Scan
Scanned 42 files in 320ms

  5 issues found:
    ● 2 CRITICAL
    ● 3 HIGH

CRITICAL (2):
  ● .env:1
    Stripe Secret Key found in source code
    Fix: Move to server-side env var, never expose in frontend

  ● .gitignore
    No .gitignore file found
    Fix: Create a .gitignore with .env, node_modules, and sensitive file patterns

HIGH (3):
  ● src/routes/admin.ts:12
    No auth middleware on GET /api/admin/users
    Fix: Add authentication middleware before the route handler
  ...