Plugins
Plugins extend supabase-tools with additional commands. Install a plugin via npm and add it to supabase-tools.config.json to use its commands.
Available Plugins
| Plugin | npm | Description |
|---|---|---|
| plugin-db-test | pgTAP test runner (live + PGlite) | |
| plugin-deno-functions | Edge function documentation | |
| plugin-depgraph | Dependency graph visualization | |
| plugin-erd | Mermaid ERD diagram generation | |
| plugin-frontend-usage | Frontend Supabase SDK usage scanner | |
| plugin-logs | Docker logs, pg_stat_statements | |
| plugin-migration-audit | Migration file vs DB tracking — drift detection | |
| plugin-migration-studio | Flagship plugin. 21 tools + 4 workflows; intent graph; release gate; HTTP tool surface for AI agents (port 3335) | |
| plugin-scaffold | Scaffold new plugins | |
| plugin-typegen | TypeScript type generation |
The docs command (Swagger UI, ReDoc, SchemaSpy) and the dashboard command (React SPA) are built into core — no plugin required.
Installation
bash
# Example: install ERD plugin
npm install @sbtools/plugin-erdActivation
Add to supabase-tools.config.json:
json
{
"plugins": [
{ "path": "@sbtools/plugin-erd", "config": {} }
]
}Use "path": "@sbtools/plugin-<name>" for npm packages, or a relative path for local plugins.