npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sbtools/plugin-deno-functions

v0.3.0

Published

Supabase Edge Function documentation plugin for supabase-tools.

Readme

@sbtools/plugin-deno-functions

Plugin for supabase-tools that documents Supabase Edge Functions by statically analysing TypeScript source files. No runtime dependency on the main package — connected only through the plugin contract and supabase-tools.config.json.

Quick Start

# 1. Install the plugin
npm install @sbtools/plugin-deno-functions
# 2. Register it in supabase-tools.config.json — see "Activation" below
# 3. Run it
npx tsx supabase-tools/cli.ts edge-functions

Activation

Add a plugins entry to your supabase-tools.config.json:

{
  "plugins": [
    {
      "path": "@sbtools/plugin-deno-functions",
      "config": {
        "baseUrl": "/functions/v1",
        "configTomlPath": "supabase/config.toml"
      }
    }
  ]
}

Set "enabled": false to disable the plugin without removing the entry.

Commands

| Command | Description | |---|---| | edge-functions | List discovered edge functions with metadata | | edge-functions --brief | Summary table only, skip per-function details | | edge-functions --json | Output raw JSON | | edge-functions --openapi | Also generate docs/edge-functions-openapi.json | | edge-functions --help | Show all options |

All commands: npx tsx supabase-tools/cli.ts <command>

What It Does

Scans each {functionsPath}/{name}/index.ts and extracts via regex:

| Field | Detection method | |---|---| | Function name | Directory name | | HTTP methods | req.method === 'POST' patterns | | Request fields | const { a, b } = await req.json() destructuring | | Response fields | JSON.stringify({ success, ... }) patterns | | Environment variables | Deno.env.get('...') calls | | Auth type | config.toml verify_jwt + service role key usage | | CORS | corsHeaders pattern detection | | External APIs | fetch('https://...') URL literals | | DB tables | .from('table') supabase client calls | | Storage buckets | .storage.from('bucket') calls |

Results are integrated into:

  • Backend Atlas — Edge Functions section with cards, badges, curl/SDK examples, and source viewer
  • Swagger UI / ReDoc — Edge function paths merged into the combined OpenAPI spec
  • sbt status — Edge function endpoints listed alongside service URLs

Optional metadata.json

Place a metadata.json next to index.ts in any function directory to override or supplement what static analysis can't infer:

{
  "description": "Extracts text from PDFs stored in Supabase storage",
  "auth": "service_role",
  "request_fields": [
    { "name": "storage_path", "type": "string", "required": true },
    { "name": "paper_id", "type": "string (UUID)", "required": true }
  ]
}

Configuration

| Key | Default | Description | |---|---|---| | baseUrl | /functions/v1 | URL prefix for edge function endpoints | | configTomlPath | supabase/config.toml | Path to Supabase config.toml (for verify_jwt settings) |

Dependencies

| Type | Requirement | |------|-------------| | Files | supabase/functions — edge function source directories must exist |

No Docker or database required for listing. OpenAPI generation needs a running API for full spec.

Requirements

  • Node.js 18+
  • supabase-tools/ in the same project (provides the plugin loader)
  • No additional dependencies — the plugin is self-contained

Project Structure

your-project/
├── supabase/
│   ├── functions/              # Edge functions scanned by this plugin
│   │   ├── my-function/
│   │   │   ├── index.ts
│   │   │   └── metadata.json   # Optional override
│   │   └── ...
│   └── config.toml             # verify_jwt settings
├── supabase-tools/             # Main toolkit
│   └── packages/plugin-deno-functions/  # This plugin
└── supabase-tools.config.json  # Plugin registered here