Skip to content

Fatdrfrog/slopcollector

Repository files navigation

🦝 SlopCollector

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.

SlopCollector Dashboard

Features

  • 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.

Getting Started

Prerequisites

  • Node.js 18+
  • A Supabase Project
  • OpenAI API Key

Installation

  1. Clone the repository:

    git clone https://github.com/Fatdrfrog/slopcollector.git
    cd slopcollector
  2. Install dependencies:

    pnpm install
  3. Set up environment variables: Copy .env.example to .env.local and fill in your keys.

    cp .env.example .env.local

    You will need:

  4. Run the development server:

    pnpm run dev
  5. Open http://localhost:3000 in your browser.

Self-Hosting

You can easily deploy SlopCollector to Vercel.

Deploy with Vercel

License

MIT

Releases

No releases published

Packages

 
 
 

Contributors