Skip to content
supabasePublic

About

The canonical, machine-readable record of which features each official Supabase client SDK implements.

Resources

Code of conduct

Contributing

Security policy

Stars

52 stars

Watchers

0 watching

Forks

Latest commit

 

History

327 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supabase SDK

Shared tooling and specifications for the Supabase client SDKs. This repository is a lightweight monorepo: each project lives as a flat sibling under packages/, with a single toolchain per package and no monorepo build tooling on top.

Important

Only repository collaborators can open pull requests here.
See the full notice at the top of CONTRIBUTING.md.

Packages

Package Toolchain What it is
packages/capability-matrix TypeScript The canonical feature registry for all Supabase client SDKs: capability YAML data, per-feature specs, JSON Schema, validator, and site generator. Renders supabase.github.io/sdk.
packages/dart-symbol-extractor Dart Public API symbol extractor for Dart SDKs, used by the Dart compliance workflow.
packages/go-symbol-extractor Go Public API symbol extractor for Go SDKs, used by the Go compliance workflow.
packages/python-symbol-extractor Python Public API symbol extractor for Python SDKs, used by the Python compliance workflow.
packages/postgrest-typegen TypeScript Introspects a PostgreSQL schema into the GeneratorMetadata contract and generates PostgREST types for TypeScript, Go, and Python.
packages/typegen TypeScript Language registry for supabase gen types --lang: maps each language to its generator (in-process or an external tool) so new languages need no CLI change.

Repository layout

packages/       # One directory per project (flat siblings, one toolchain each)
supabase/       # Supabase project for storing historic data
.github/        # CI workflows and composite actions, including the reusable
                # SDK compliance workflows consumed by the SDK repos

The workflow and action paths under .github/ are a public interface: SDK repos reference supabase/sdk/.github/workflows/validate-sdk-compliance-<language>.yml, sync-sdk-compliance.yml, and the sdk-compliance-* composite actions. Those file names and locations are stable.

SDK compliance

If you are here to opt an SDK into compliance validation, or to update which features your SDK supports, see the capability-matrix README.

Supabase project

Packages that store data share one Supabase project, interfaces-metrics (vxkleeakxdhcblzofcvq in the supabase organization). Its configuration and migrations live in supabase/.

Schema Package What it holds
matrix_history packages/capability-matrix One snapshot of the capability matrix per day, read by the History page on the matrix site.

When a package adds data to the project:

  • It owns one schema and keeps its tables there. The Data API doesn't expose that schema.
  • Its migration file names include that schema, for example 20261127101947_matrix_history.sql, so the history shows which package owns each migration.
  • Functions it calls through the Data API go in public, the only exposed schema. They are security definer, executable by service_role only, and named so they can't clash with another package's (record_matrix_day).
  • It gets its own secret key, so the key can be revoked without breaking the other packages. Every secret key can still read and write everything, so separate keys don't keep the packages' data apart.
  • In CI, the project URL is a repository variable and the key a secret, both named after the package: SDK_MATRIX_SUPABASE_URL and SDK_MATRIX_SECRET_KEY for the capability matrix.

Run the Supabase CLI from the repository root. The local stack uses ports 55320–55329 so it can run next to other local stacks, with Studio on http://127.0.0.1:55323:

supabase start                              # local stack with every migration applied
supabase migration new <schema>_<change>    # new file in supabase/migrations
supabase db reset                           # re-apply all migrations locally

Apply migrations to the hosted project by hand once their pull request has merged:

supabase link --project-ref vxkleeakxdhcblzofcvq
supabase db push --remote --dry-run         # without --remote, db push targets the local stack
supabase db push --remote

Linking records the hosted project's service versions in supabase/.temp, and supabase start then runs the same versions locally. If one has no public image (PostgREST v17.1 at the moment), delete its file, here supabase/.temp/rest-version, to fall back to the CLI's default.

Contributing

See CONTRIBUTING.md. Run each package's own toolchain from its directory:

cd packages/capability-matrix && bun install && bun test
cd packages/dart-symbol-extractor && dart pub get && dart test
cd packages/go-symbol-extractor && go test ./...
cd packages/python-symbol-extractor && uv sync --frozen && uv run --frozen pytest

About

The canonical, machine-readable record of which features each official Supabase client SDK implements.

Resources

Code of conduct

Contributing

Security policy

Stars

52 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages