PACKAGE · AUTHENTICATION

@supabase/supabase-js

Isomorphic Javascript SDK for Supabase

WEEKLY DOWNLOADS 66.4M
STARS 4.6K
FORKS 815
OPEN ISSUES 198
GZIP SIZE 61.1 kB
UNPACKED SIZE 676.9 kB
DEPENDENCIES 9
LAST UPDATED 9mo ago
DOWNLOAD TRENDS

@supabase/supabase-js downloads · last 12 months

Download trends for @supabase/supabase-js1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.042.1M84.2M126.3M168.4MNov 2025FebMayAugOct 2026
@supabase/supabase-js
ABOUT @SUPABASE/SUPABASE-JS

The @supabase/supabase-js package is an isomorphic JavaScript SDK for interacting with Supabase from JavaScript and TypeScript applications. It provides a client-side entry point to Supabase services, including authentication and database access, so application code can work with a Supabase backend through a shared SDK rather than assembling separate service integrations.

Its design is oriented around a JavaScript client that can be used across browser and server environments, with an API suited to applications built on Supabase and PostgreSQL. The intended audience includes developers who want to connect application code to Supabase’s backend services while keeping the same general client approach across frameworks and runtimes.

Applications typically create a Supabase client and use it to access service APIs, including authentication and database operations exposed through PostgREST. This supports a workflow in which application code requests data and performs backend actions through the SDK; developers still need to make deliberate decisions about credentials, access policies, and which operations belong on the client versus the server.

The package’s topics include Node.js, Nuxt, Svelte, TypeScript, PostgreSQL, and PostgREST, making it relevant to both browser-facing and server-side JavaScript projects. Its isomorphic positioning can help teams keep Supabase integration consistent across framework layers, while the actual server/client boundaries and deployment configuration remain application-specific.

The supplied package data lists a gzip bundle size of 61.1 kB and an unpacked size of 676.9 kB, useful figures to consider when assessing client delivery and dependency footprint. At version 2.119.2, it is distributed under the MIT license; the provided project snapshot also reports 69.5M weekly downloads, 4.6K GitHub stars, 807 forks, 178 open issues, and a last update of 2026-11-19.

The SDK connects applications to Supabase services but does not remove the need to understand the backend’s permissions or data model. In particular, using a JavaScript client should not be treated as a substitute for configuring database access controls, and server-only secrets should remain outside code that is shipped to browsers.

WHEN TO USE
  • When a JavaScript or TypeScript application needs to call Supabase authentication and database services through one client SDK.
  • When building browser and server portions of an application that should use Supabase through an isomorphic JavaScript interface.
  • When accessing PostgreSQL data through Supabase’s PostgREST-backed database API from application code.
  • When integrating Supabase into a Node.js service and using the same SDK family as the frontend.
  • When working in a Nuxt or Svelte project and you want a Supabase-oriented JavaScript client rather than direct HTTP calls for each service.
  • When you want the Supabase integration represented as client API calls in the application’s JavaScript or TypeScript code.
WHEN NOT TO USE
  • If the application does not use Supabase services, use direct integrations with the backend or database it actually runs instead of adding this Supabase-specific SDK.
  • If the requirement is only to issue a small number of generic HTTP requests, use the platform’s built-in request APIs rather than introducing a service client.
  • If database access must go through a custom server API with no direct Supabase client access, keep requests behind that API and avoid calling the SDK from the application layer.
  • If the application needs an ORM-centered data model or migration workflow beyond the Supabase client’s PostgREST access pattern, use a database tooling approach designed for that workflow.
  • If browser code would require a server-only secret, do not expose it through this SDK in the client; move the operation to a trusted server-side endpoint.
  • If the project cannot accommodate a listed 61.1 kB gzip bundle contribution, compare the SDK’s client-side footprint with a narrower, purpose-built integration before including it.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 9
@supabase/supabase-js vs next-auth ★ 28.4K · 9.1M/wk @supabase/supabase-js vs jwt-decode ★ 3.4K · 26.4M/wk @supabase/supabase-js vs @clerk/nextjs ★ 1.8K · 3.9M/wk @supabase/supabase-js vs firebase ★ 5.2K · 15.2M/wk @supabase/supabase-js vs @auth0/nextjs-auth0 ★ 2.3K · 1.3M/wk @supabase/supabase-js vs jose ★ 7.9K · 238.7M/wk @supabase/supabase-js vs @auth/core ★ 28.4K · 7.4M/wk @supabase/supabase-js vs lucia ★ 10.4K · 867.6K/wk @supabase/supabase-js vs aws-amplify ★ 9.6K · 2.7M/wk