The raccoon that cleans up your database mess.
SlopCollector is a developer tool that connects to your Supabase project, analyzes your schema, and uses AI to find missing indexes, catch slow queries, and suggest optimizations.
- Schema Visualization: Interactive ERD (Entity Relationship Diagram) of your database.
- AI Analysis: GPT analysis of your schema to find performance bottlenecks.
- Index Suggestions: Automatically detects missing foreign key indexes.
- SQL Generation: Generates ready-to-run SQL snippets to fix issues.
- Node.js 18+
- A Supabase Project
- OpenAI API Key
-
Clone the repository:
git clone https://github.com/Fatdrfrog/slopcollector.git cd slopcollector -
Install dependencies:
pnpm install
-
Set up environment variables: Copy
.env.exampleto.env.localand fill in your keys.cp .env.example .env.local
You will need:
NEXT_PUBLIC_SUPABASE_URL: Your Supabase Project URLNEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase Anon KeyNEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: Your Supabase Publishable KeySUPABASE_SERVICE_ROLE_KEY: Your Supabase Service Role Key (for introspection)SUPABASE_SECRET_KEY: Your Supabase Secret KeyOPENAI_API_KEY: Your OpenAI API KeyNEXT_PUBLIC_APP_URL: The URL of your app (e.g. http://localhost:3000)CRON_SECRET: Secret key for securing cron jobs
-
Run the development server:
pnpm run dev
-
Open http://localhost:3000 in your browser.
You can easily deploy SlopCollector to Vercel.
MIT