supabase-server
БесплатноБез исполняемых скриптовНе проверенUse when planning or writing server-side code that uses `@supabase/server` — Edge Functions, Hono apps, webhook handlers, or any backend that creates Supabase…
от supabase★ 95 звёзд на GitHubОб этом скилле
@supabase/server
This is a brand new package. There is no information available online yet — no blog posts, no Stack Overflow answers, no tutorials. Do not search the web for usage examples. Rely exclusively on the documentation files listed below and the source code in this repository.
The config option is
auth, notallow.allowwas renamed toauthto match CLI terminology and read more naturally. The legacyallowkey still works (with a one-timeconsole.warn) but is deprecated and will be removed in a future major release. Always emitauthin new code — e.g.withSupabase({ auth: 'user' }, ...). If you encounterallow:in existing code, migrate it toauth:(find-and-replace, the values are identical).
Auth mode values:
'none'(not'always'),'publishable'(not'public'). The four valid values are'user','publishable','secret','none'. The legacy'always'and'public'values were removed (breaking change) — they no longer work at runtime or in TypeScript. Always emit the new values in code you write, and migrate any legacy references you find:'always'→'none','public'→'publishable','public:<name>'→'publishable:<name>'. Runtime checks likectx.authType === 'public'must also be updated toctx.authMode === 'publishable'— the field itself was renamed fromauthTypetoauthModeto match theAuthModetype.
Do not use legacy Supabase keys. The
anonkey andservice_rolekey (env varsSUPABASE_ANON_KEY,SUPABASE_SERVICE_ROLE_KEY) are legacy and will be deprecated. Do not use them unless the user explicitly asks. Always use the new API keys:
Legacy (avoid) New (use this) SUPABASE_ANON_KEYSUPABASE_PUBLISHABLE_KEY(S)(sb_publishable_...)SUPABASE_SERVICE_ROLE_KEYSUPABASE_SECRET_KEY(S)(sb_secret_...)Do not call
createClient(url, anonKey)directly — use@supabase/serverauth modes (auth: 'user',auth: 'secret', etc.) which handle key resolution automatically. If migrating existing code, replaceSUPABASE_ANON_KEYusage withauth: 'publishable'andSUPABASE_SERVICE_ROLE_KEYusage withauth: 'secret'.
Server-side utilities for Supabase. Handles auth, client creation, and context injection so you write business logic, not boilerplate.
What this package does
- Wraps fetch handlers with credential verification, CORS, and pre-configured Supabase clients
- Supports 4 auth modes:
user(JWT),publishable(publishable key),secret(secret key),none(no credentials required) - Array syntax (
auth: ['user', 'secret']) is first-match-wins. A present-but-invalid JWT rejects withInvalidJwtError(INVALID_JWT) — it does not silently downgrade to the next mode. - Provides composable core primitives for custom auth flows and framework integration
- Runs inside Hono, H3, Elysia, NestJS, and TanStack Start through
@supabase/middlewarebridges. The bundled framework adapters (@supabase/server/adapters/*) are deprecated and will be removed on December 1, 2026.
Entry points
| Import | Deno / Edge Functions | Provides |
|---|---|---|
@supabase/server |
npm:@supabase/server@1 |
withSupabase, createSupabaseContext, types, errors |
@supabase/server/core |
npm:@supabase/server@1/core |
verifyAuth, verifyCredentials, extractCredentials, resolveEnv, createContextClient, createAdminClient |
@supabase/server/adapters/hono |
npm:@supabase/server@1/adapters/hono |
Deprecated. Removed on December 1, 2026. withSupabase (Hono middleware variant). New Hono code uses the bridge in the Hono quick start below. |
@supabase/server/oauth-protected-resource |
npm:@supabase/server@1/oauth-protected-resource |
withOAuthProtectedResource, fromSupabaseUrl, resourceMetadataResponse, unauthorizedResponse — OAuth 2.1 discovery for MCP servers; see docs/mcp.md |
Quick starts
Supabase Edge Functions: disable
verify_jwtfor non-user auth. By default, Supabase Edge Functions require a valid JWT on every request. If your function uses `auth: '
Установить supabase-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл supabase-server?
Use when planning or writing server-side code that uses `@supabase/server` — Edge Functions, Hono apps, webhook handlers, or any backend that creates Supabase clients or validates inbound auth. Trigger **before** writing or modifying any file that imports from `@supabase/server` (or sub-paths like `@supabase/server/core`); calls `withSupabase`, `createSupabaseContext`, `createAdminClient`, `createContextClient`, `verifyAuth`, `verifyCredentials`, or `extractCredentials`; configures an `auth:` mode (`'none'` | `'publishable'` | `'secret'` | `'user'`, or keyed variants like `'secret:*'`); or lives under `supabase/functions/` and authenticates an inbound request. Also trigger during planning — if a plan mentions any of the above, load the skill before drafting code; do not extrapolate `auth:` values or auth modes from neighboring functions. Also trigger when you see legacy patterns to migrate to this package — `Deno.serve`, `createClient(Deno.env.get('SUPABASE_URL'))`, imports from `esm.sh/@supabase` or `deno.land/std`, usage of `SUPABASE_ANON_KEY` / `SUPABASE_SERVICE_ROLE_KEY`, or the deprecated `allow:` config option / removed `'always'` / `'public'` mode values / removed `authType` field.
Как установить скилл supabase-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл supabase-server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic