@sbtools/plugin-deno-functions
Plugin that documents Supabase Edge Functions by statically analysing TypeScript source files.
Quick Start
bash
npm install @sbtools/plugin-deno-functionsAdd to config:
json
{
"plugins": [
{
"path": "@sbtools/plugin-deno-functions",
"config": {
"baseUrl": "/functions/v1",
"configTomlPath": "supabase/config.toml"
}
}
]
}bash
npx sbt edge-functionsCommands
| Command | Description |
|---|---|
edge-functions | List discovered edge functions |
edge-functions --brief | Summary table only |
edge-functions --json | Output raw JSON |
edge-functions --openapi | Generate OpenAPI spec |
$ npx sbt edge-functions --brief
Edge Functions (4 discovered)
┌──────────────────┬────────┬─────────────────────────┐
│ Function │ Verify │ Endpoint │
├──────────────────┼────────┼─────────────────────────┤
│ send-email │ JWT │ /functions/v1/send-email │
│ process-payment │ JWT │ /functions/v1/process-… │
│ generate-report │ JWT │ /functions/v1/generate-… │
│ health-check │ none │ /functions/v1/health-c… │
└──────────────────┴────────┴─────────────────────────┘Configuration
| Key | Default | Description |
|---|---|---|
baseUrl | /functions/v1 | URL prefix for edge function endpoints |
configTomlPath | supabase/config.toml | Path to Supabase config.toml |
Integration
Results integrate into Backend Atlas, Swagger UI/ReDoc, and sbt status.