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

secanix

v0.1.6

Published

Security scanner buat app hasil vibe-coding (Next.js + Supabase/Firebase).

Readme

Secanix

Security scanner buat app hasil vibe-coding (Next.js + Supabase/Firebase).

Checks

| Check | ruleId | Severity | Triggers on | Fix | |---|---|---|---|---| | Leaked secrets (gitleaks) | varies per gitleaks rule | Critical | Hardcoded API key/token/credential in a git-tracked or about-to-be-tracked file | Rotate the secret now, strip it from code & git history (not just a new commit), move it to an env var / secret manager | | Exposed Supabase service role key | supabase-service-role-key-public-env | Critical | NEXT_PUBLIC_* env var holding a Supabase service role key — gets inlined into the client bundle at build time | Move it to a server-only env var, rotate the key in the Supabase dashboard if it's ever been deployed | | Missing auth on Next.js API route | nextjs-api-route-missing-auth | High | A Pages/App Router API handler with no session/token check before it runs any logic | Add an auth check (getServerSession/getToken/etc.) at the top of the handler | | Supabase RLS disabled | supabase-rls-disabled | Critical | A table where RLS was explicitly turned off | Re-enable RLS (ALTER TABLE ... ENABLE ROW LEVEL SECURITY) and add matching policies | | Supabase RLS missing | supabase-rls-missing | High | A table created with no RLS enable statement at all | Add ALTER TABLE ... ENABLE ROW LEVEL SECURITY plus a policy for the table | | CORS wildcard origin | cors-wildcard-origin | Medium | Access-Control-Allow-Origin: * (or equivalent) on an API response | Replace * with an explicit origin allowlist, or validate the origin dynamically server-side | | Open Firebase security rules | firebase-rules-open | Critical | Firestore/Realtime Database/Storage rules using if true / .read/.write: true | Replace the allow-all rule with one that checks request.auth != null etc. — Firebase's default is deny-all, don't override it to allow-all | | Exposed Firebase Admin key (env) | firebase-admin-key-public-env | Critical | NEXT_PUBLIC_* env var holding a Firebase Admin SDK key — gets inlined into the client bundle at build time | Move it to a server-only env var, rotate the key in Firebase Console if it's ever been deployed | | Committed Firebase service account key | firebase-service-account-key-committed | Critical | A literal Admin SDK service-account JSON key file checked into the repo | Delete the file from the repo & git history, rotate the key in Firebase Console, store the new one in a secret manager / env var | | Vulnerable dependency (osv-scanner) | varies (GHSA id) | Derived from CVSS score (≥9 critical, ≥7 high, ≥4 medium, else low) | A dependency with a known CVE | Update to the patched version named in the advisory |

Two checks (leaked secrets, vulnerable dependencies) delegate to gitleaks/osv-scanner, so their ruleId varies per finding instead of being fixed — everything else in this table is custom, Next.js/Supabase/Firebase-specific pattern matching.

CLI Usage

npx -p secanix@latest secanix

Runs all checks against the current directory and prints a human-readable report.

npx -p secanix@latest secanix --json

Same scan, machine-readable JSON output — useful for piping into other tooling.

Suppressing false positives

Some findings are correct in general but not in your case — e.g. an API route protected by middleware.ts instead of an in-handler check, which api-auth-missing can't see. Add a .secanix.json at your project root:

{
  "ignore": [
    {
      "file": "app/api/admin/route.ts",
      "ruleId": "nextjs-api-route-missing-auth",
      "reason": "protected by middleware.ts, matcher /api/admin/*"
    }
  ]
}

Both file (relative path) and ruleId must match exactly. Suppressed findings aren't silently dropped — they're printed separately (with your reason) so they stay visible for review, not just filtered out of the JSON output.

GitHub Action

Add to .github/workflows/security-scan.yml in your repo:

name: Security Scan
on: pull_request
permissions:
  pull-requests: write
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: cutryandifonna/secanix@v1

The action fails CI when a critical finding is present (leaked secret, exposed Supabase service role key, or RLS disabled). It posts and updates a single PR comment listing all findings by severity. This requires the consuming workflow to grant permissions: pull-requests: write itself, as shown above — without it, comment posting fails with a 403. GitHub-hosted ubuntu-latest runners (uses sudo for tool installs — self-hosted runners need equivalent permissions).