Free tool · MIT

Free Next.js + Supabase + Stripe security checker

Your AI agent shipped the app. Did it also ship a Stripe secret key, a table without RLS or an open webhook? This free CLI runs 24 checks locally. No account, no uploads.

Honest limits

  • Heuristic static scan, 24 checks. A clean run isn't proof of security.
  • False positives happen: it doesn't follow data across files (for example, auth in a helper it doesn't recognise).
  • Not checked: your live Supabase project, dashboard policies, Stripe settings, dependencies, full git history.

View on GitHub

Run it once

Node 18+ and git. It isn't on npm yet, so npx runs it straight from GitHub:

npx github:edtrackai/nextjs-supabase-stripe-security-checker /path/to/your/app

Interactive runs print a one-line ad for our paid tools (off with --quiet; never in CI or --json).

Or clone it and try it on the included vulnerable sample app first:

git clone https://github.com/edtrackai/nextjs-supabase-stripe-security-checker.git
cd nextjs-supabase-stripe-security-checker && npm install
node bin/nss-security-check.js fixtures/vulnerable-app
node bin/nss-security-check.js /path/to/your/app --fail-on=high

What the output looks like

Real output from v0.6.0 on fixtures/vulnerable-app:

Terminal: the free nextjs-supabase-stripe-security-checker v0.6.0 run on its vulnerable fixture app. 17 files, 24 checks. Findings include a tracked .env file, a Stripe webhook without signature verification, JSON parsed before verification, and a table without RLS. Summary: critical 10, high 9, medium 6, low 1.
Real output from v0.6.0 (excerpt)
Show as text (colours removed, middle trimmed)
nss-security-check v0.6.0  17 files · 24 checks

CRITICAL K3  .env file with values tracked by git
         .env.local:1  tracked by git
         fix: git rm --cached the file, add it to .gitignore, and rotate every key it contained (history keeps them).

CRITICAL K2  Secret-looking NEXT_PUBLIC_ variable
         .env.local:2  NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY
         fix: NEXT_PUBLIC_ values ship to the browser. Rename without the prefix and read it only on the server.

[… 24 more findings trimmed for this page …]

critical 10 · high 9 · medium 6 · low 1
Each hit is a prompt to review, not a verdict.

And on the hardened fixtures/clean-app (run with --fail-on=high, exit 0):

nss-security-check v0.6.0  27 files · 24 checks

✓ No findings. Static checks only: this is not proof the app is secure.
critical 0 · high 0 · medium 0 · low 0

Real output from v0.6.0

Want the agent stopped before it leaks a key? Guardrails Pack: hooks, permission presets, and git guards for Claude Code and Cursor ($24 plus VAT where applicable).

Run it on every pull request

- uses: edtrackai/nextjs-supabase-stripe-security-checker@v0
  with:
    fail-on: high

The Action writes a job summary, adds file/line annotations and keeps one PR comment up to date. It needs contents: read, plus pull-requests: write only for the comment. Inputs: path, fail-on (critical | high | medium | low | none), comment, github-token. Full workflow: docs/github-action.md.

What it checks

Leaked keys (K1–K4), server auth (A1–A5), Supabase RLS and Data API grants (R1–R6), Stripe webhooks and checkout (S1–S7), and hardening (H1–H2). The full list with severities is in the README.

Learn what each check catches

Ad (paid, ours): Want a deeper pass before launch? Launch Audit ($12 plus VAT where applicable) runs 28 checks across RLS policies, keys, auth and Stripe webhooks, with an auditor agent that has no Edit or Write tools. It doesn't check Data API grants; this free checker does (R5/R6).

Free and MIT-licensed, from Stack & Ship (it's ours). On an interactive terminal the CLI prints one line labelled "Ad" about our paid tools; hide it with --quiet or NO_PROMO=1. It's off in CI, and the GitHub Action's comment and summary contain no ads.