Skip to content

docs(reference): the Supabase SDK has two entry points, and the edge one runs in a Worker - #952

Draft
tobyhede wants to merge 1 commit into
mainfrom
docs/supabase-reference-two-entries
Draft

docs(reference): the Supabase SDK has two entry points, and the edge one runs in a Worker#952
tobyhede wants to merge 1 commit into
mainfrom
docs/supabase-reference-two-entries

Conversation

@tobyhede

Copy link
Copy Markdown
Contributor

Summary

docs/reference/supabase-sdk.md is our internal reference sheet for the Supabase integration — the page an agent or engineer reads to find out what the wrapper can do. It described the world before #912: one entry point, and a factory that "cannot run in a Worker or the browser".

#912 added a second entry point, @cipherstash/stack-supabase/wasm-inline. It carries no Postgres driver and takes the tables you declare instead of reading them out of the database. Reading them out of the database — introspection — was the only thing that needed a raw Postgres socket, so that entry does run in a Worker. The reference never said so.

Changes

  • The "One entry point" table is now "Two entry points", and lists both with the engine each uses, how each learns your schema, and where each can run.
  • The factory paragraph scopes its restriction to the native entry, and points at the edge entry as the way to run in a Worker.
  • The browser half of the old sentence is kept, because it is still true, and now gives its reason: the WASM client requires a workspace clientKey on every authentication path, so a browser build would ship the key with it.

Verification

docs/ ships in no package — no files array includes it and no build copies it — so there is no changeset and nothing to rebuild. Checked with git grep that the stale sentence appears nowhere else in docs/reference/.

The two-entry claim is checked against packages/stack-supabase/package.json, whose exports map declares . and ./wasm-inline, and against packages/stack-supabase/src/wasm-inline.ts:49-68, whose docblock states the same position this reference now takes.

Related

Refs #912, #804.

The same stale sentence is live in two documents that do ship to customers — skills/stash-supabase/SKILL.md and packages/stack-supabase/README.md. Those are #950, fixed by #951. This PR deliberately does not touch them: they need changesets and a rebuild, and this one needs neither.

…one runs in a Worker

`docs/reference/supabase-sdk.md` still described the state before #912: one
entry point, and a factory that "cannot run in a Worker or the browser".

#912 added `@cipherstash/stack-supabase/wasm-inline`, which carries no Postgres
driver and takes declared `schemas` instead of introspecting. Introspection was
the only thing that needed a Postgres socket, so that entry does run in a
Worker. The reference never said so.

Corrects both halves:

- the "One entry point" table now lists both, with the engine, how each learns
  the schema, and where each runs;
- the factory paragraph now scopes its restriction to the native entry and
  points at the edge entry as the way to run in a Worker.

The browser half of the old sentence was correct and is kept, with the reason
named: the WASM client requires a workspace `clientKey` on every auth path
(#804).

Internal reference documentation — no package ships `docs/`, so no changeset.
The same stale sentence is still live in `skills/stash-supabase/SKILL.md` and
`packages/stack-supabase/README.md`, both of which DO ship; those are tracked
separately.

Claude-Session: https://claude.ai/code/session_01E1J2nVGJWVkqvLepDfinRf
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 41a997a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant