Supabasetomas_pozo, kalleby_santos, katerina_skroumpelou, matt_johnstonAnnouncement
Introducing @supabase/server
Summary
Supabase is releasing @supabase/server in public beta, a package for authentication verification, client setup, request context, and common server-side boilerplate across backend runtimes. Supabase says an anonymous analysis of 25,000 deployed Edge Functions found developers repeatedly rebuilding setup for clients, JWT verification, claims parsing, CORS, auth context, and shared files. The package's withSupabase wrapper or createSupabaseContext function supplies a SupabaseContext containing a user-scoped client, service-role admin client, verified identity, JWT claims, auth metadata, and auth mode, while declarative modes cover user, none, secret, publishable, or combined access. It returns standard Request-to-Response handlers for Edge Functions, Vercel Functions, Cloudflare Workers, Hono, Bun, and Deno, and includes primitives for custom middleware and adapters. @supabase/server does not replace @supabase/ssr, which remains focused on cookie-based sessions, and the release invites feedback on its public-beta API and adapters.
Context
An anonymous analysis of 25,000 deployed Edge Functions found developers repeatedly rebuilding the same server-side setup, including Supabase clients, JWT verification, claims parsing, CORS, auth context, environment-variable wiring, and shared utility files.
Approach / What changed
@supabase/server provides withSupabase and createSupabaseContext, which configure request context, authentication, clients, and CORS. Its SupabaseContext includes user-scoped and admin clients, verified identity, JWT claims, auth metadata, and auth mode. The package also exposes lower-level primitives and runtime or framework adapters for custom middleware and routing.
Takeaways
withSupabase supports declarative auth modes for users, unauthenticated requests, secret keys, publishable keys, or combinations of user and secret authentication.
The context exposes both an RLS-respecting user-scoped Supabase client and a service-role admin client for privileged operations.
@supabase/server supports standard Request/Response handlers across Edge Functions, Vercel Functions, Cloudflare Workers, Bun, Deno, and Hono, while @supabase/ssr remains focused on cookie-based session management.
Source and freshness
- Source
- supabase.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.