Generate Supabase RLS policies from Prisma schema. Use when securing database.
Row Level Security is powerful but the policy syntax is tricky. This reads your schema and generates proper RLS policies.
One command. Zero config. Just works.
npx ai-supabase-gen ./prisma/schema.prisma
# Generate from Prisma
npx ai-supabase-gen ./prisma/schema.prisma
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.
npx ai-supabase-gen --help
Parses your Prisma schema to understand data models and relationships. Then generates appropriate RLS policies based on common access patterns.
MIT. Free forever. Use it however you want.