Supabase · static · offline · no AI · no telemetry
tracegrid joins your Supabase schema (grants, RLS, functions, edge functions, storage) with every call site in your code, then reports what's exposed but never used: functions anon can run that nothing calls, client-read tables without RLS, owner-rights views.
npx tracegrid --demo
| Finding | Example | Tier |
|---|---|---|
| Exposed function nothing calls | internal_cleanup() executable by anon, no caller | Fix |
| Client-read table without RLS | from('audit_log') with RLS off | Fix |
| Owner-rights view over RLS tables | client reads a view without security_invoker | Fix |
| Missing RPC or edge function | .rpc('get_totals') not in the schema | Review |
| Edge function with no caller | functions/old-sync never invoked | Review |
On 20 public Supabase apps, 111 of 113 Fix findings held up when checked by hand: benchmarks. Every rule: docs/rules.md. Findings are static-analysis leads; read the limitations before revoking anything.
Replays your Supabase migrations, or reads the live catalog read-only with --db-url: tables, functions, grants, RLS.
Parses your code with the TypeScript parser for .from, .rpc, functions.invoke and storage calls.
Joins both into one graph and reports exposure with no caller, the direction most tools skip.
cd your-app && npx tracegridWrites report.md, graph.json and graph.html to ./tracegrid-out/. Node 20+.
- run: npx --yes tracegrid@0.2.1 --check --github --no-plugins
--check fails only on new Fix findings not in your baseline. Built for fork-PR CI: plugins off, read-only, escaped output. CI guide · Security model