Supabase JS
Isomorphic JavaScript SDK for Supabase backend-as-a-service.
3. Used by agents' projects
Dependency in 675 public GitHub projects set up for AI coding agents that we scanned (10.8%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
supabase.com/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Supabase JS does
Supabase JS is one isomorphic client that bundles separate auth, database, realtime, storage and edge-function SDKs for a Supabase project, and it publishes an explicit runtime policy that drops end-of-life Node.js versions in minor releases.
Supabase JS popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Supabase JS is used
- Supabase JS is a dependency in 675 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (13.9% of the 4,867 JavaScript/TypeScript ones), #1 of 287 in sdks for hosted services.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,601; those are left out of every share on this page.
- The most used alternative in our scan is Firebase (97 projects).
- Projects that use it most often also use React (86.5%), Lucide React (66.7%), Tailwind CSS (82.2%).
- It is more common in projects set up for Roo Code (18.0%) than for OpenCode (5.8%).
By coding agent
Often used with
Supabase JS in practice
Strengths
A single package covers database queries, realtime subscriptions, file upload and download, rpc calls to Postgres functions, edge functions and pgvector queries.
Auth, PostgREST, realtime, storage and functions each live as a separate package in the monorepo. The README's own install example pulls <code>@supabase/auth-js</code> on its own.
The support policy names Deno, Bun, React Native and Cloudflare Workers alongside Node.js and browsers. Bun is described as having native fetch and Node.js API compatibility.
The README shows how to verify registry signatures and provenance attestations with <code>npm audit signatures</code>. It also links a guide on defending installs against npm supply-chain attacks.
Watch out for
Once a Node.js version leaves Active LTS or Maintenance, Supabase drops it in a minor release. The maintainers state this is not a breaking change, so a routine upgrade can stop supporting your runtime.
Node.js 18 support ended in <code>2.79.0</code> and Node.js 20 support ended in <code>2.110.0</code>. The README says to stay on <code>2.78.0</code> or <code>2.109.0</code> if you must keep those runtimes.
Browser support requires native <code>fetch</code>. Realtime features additionally require a native <code>WebSocket</code> API.
Install a Supabase package and verify its signature
npm install @supabase/auth-js
npm audit signaturesMore about Supabase JS
Funding
- GitHub Sponsors: https://github.com/supabase
- 18 GitHub sponsors
Agent Skills for it
- supabase-js: This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase rea
Head to head
- Supabase JS vs Firebase used together in 14 projects
Packages around it
- lucide-react: Icon components
- tailwind-merge: Tailwind class merging
- tailwindcss: Utility-first CSS
- clsx: Conditional class names
- class-variance-authority: Variant class names
- react: UI library
Alternatives
Supabase JS This page
Google's platform SDK for realtime database, auth, hosting and serverless functions.
Get started
Install it.
npm install @supabase/supabase-jsRules for your agent
## Supabase JS
- Install `@supabase/supabase-js` and create the client with `createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY)`, reading both values from environment variables as the official example does.
- Check the Node.js version first. Only Active LTS or Maintenance releases are supported. On Node.js 18 pin `2.78.0`, and on Node.js 20 pin `2.109.0`.
- Realtime code in the browser needs native `WebSocket`. React Native relies on fetch polyfills provided by the framework.
- Do not build on features marked experimental; the maintainers say they may be removed or changed without notice.
- Treat `UNUSED_EXTERNAL_IMPORT` warnings from Vite/Nuxt as false positives, per the README.
- After installing, run `npm audit signatures` to verify registry signatures and provenance.
- For API details, read the JavaScript reference at https://supabase.com/llms/js.txt. For schema and project work, use the Supabase MCP server listed in llms.txt.