finds.dev

nuxt-modules/supabase

Supabase module for Nuxt.

View on GitHubHomepage ↗

★ 935TypeScriptMITupdated Jun 2026

// the take

A Nuxt module that wires up the Supabase JS client for both client and server-side use in Nuxt 3/4 apps. It handles the SSR complexity of maintaining a consistent auth session across client and server, which is the genuinely hard part of using Supabase with a universal renderer. For anyone building a Nuxt app on Supabase, this removes a week of boilerplate.

The isomorphic client setup is the real value here — separate `useSupabaseClient` for the browser and `serverSupabaseClient`/`serverSupabaseServiceRole` for Nitro routes, with cookies handling session hydration across the SSR boundary. Auth redirect is handled as a plugin with a `useSupabaseCookieRedirect` composable, which is the right approach for SSR-safe redirects. The module is maintained under the official nuxt-modules org with Renovate and CI configured, so it tracks Nuxt and Supabase JS SDK releases promptly. Nuxt 4 support is already in.

Test coverage is thin — there's one test file (`module.test.ts`) that almost certainly just checks the module loads, not that auth flows actually work end-to-end. The cookie-based session approach can cause subtle bugs when Supabase's token refresh races with SSR rendering; there's a `fetch-retry` util that hints this has bitten people before. The module's surface area is entirely dependent on Supabase's own JS SDK design decisions, so if Supabase changes their auth model (they have, twice), you're at their mercy. No real-time subscription helpers are included — you have to wire those up yourself against the raw client.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
935
Forks
160
Language
TypeScript
License
MIT
Last commit
27 Jun 2026

// nearby

If supabase isn't quite it.

All repos →