AI writes your backend. It makes the same security mistakes, every time. supafix finds them in seconds โ and fixes the ones it can.
npx supafix
No install required. Works with Next.js, SvelteKit, Nuxt, and any Supabase project.
What it checks
Checks your migrations, source code, config files, and Edge Functions โ not just patterns, but context.
USING (true) โ unconditionally permissiveWITH CHECK on write policiesuser_metadata used for RBACgetSession() as server-side auth gatecreateBrowserClient in server filesauth.admin outside admin routesreq.json() piped into insert (mass assignment)public: true bucket in migrations or codeUSING (true) on storage.objectsdangerouslyAllowBrowser: true.env not in .gitignoreSecurity grade
Every scan ends with a letter grade. Add a badge to your README โ or keep it private and work through the findings.
Auto-fix
Run --fix and supafix generates a migration for your RLS gaps and updates your .gitignore โ then tells you what it couldn't touch and why.
CI integration
Drop the GitHub Action in your workflow. It outputs the security grade, finding counts, and a JSON results file as step outputs.