Skip to content

@sbtools/plugin-frontend-usage

npm

Plugin that scans frontend .ts/.tsx/.js/.jsx files for Supabase SDK usage and generates an interactive HTML report.

Quick Start

bash
npm install @sbtools/plugin-frontend-usage

Add to config: { "path": "@sbtools/plugin-frontend-usage" }

bash
npx sbt frontend-usage
# → docs/frontend-usage.html

Commands

CommandDescription
frontend-usageScan, generate HTML, open in browser
frontend-usage --jsonOutput raw JSON
frontend-usage --no-openSkip opening report

Patterns Detected

Tables (.from()), RPCs (.rpc()), auth, storage, edge functions, REST calls.

Configuration

KeyDefaultDescription
scanPaths["src/"]Directories to scan