# Supabase JS — card for AI agents

Isomorphic JavaScript SDK for Supabase backend-as-a-service.

Category: SDKs for hosted services · npm package `@supabase/supabase-js` · latest version 2.118.0 (checked 2026-11-01)
Install: `npm install @supabase/supabase-js`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## 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.

## Agent Skills for it
- supabase-js from fcakyon/claude-codex-settings: `npx skills add fcakyon/claude-codex-settings --skill supabase-js`

## Docs written for agents
- [llms.txt (index of the docs)](https://supabase.com/llms.txt)

## What it is
- Supabase JS is the JavaScript client for Supabase projects. The repository describes it as "an isomorphic Javascript client for Supabase". It queries your database, subscribes to realtime events, uploads and downloads files, calls Postgres functions over rpc, invokes edge functions and queries pgvector.
- The package sits on top of a set of smaller SDKs kept in one monorepo: `@supabase/auth-js`, `@supabase/postgrest-js`, `@supabase/realtime-js`, `@supabase/storage-js` and `@supabase/functions-js`. The Supabase site's React example creates a client with `createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY)`. It then reads a table with `supabase.from('todos').select('*')`.
- It suits JavaScript and TypeScript apps that already use, or plan to use, a Supabase backend. The README lists support for Node.js, Deno, modern browsers, Bun, React Native and Cloudflare Workers. Each runtime comes with its own rules about which versions stay supported.

## Caveats
- Node.js support ends in a minor release: 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.
- Older Node needs a pinned version: Node.js 18 support ended in `2.79.0` and Node.js 20 support ended in `2.110.0`. The README says to stay on `2.78.0` or `2.109.0` if you must keep those runtimes.
- Realtime needs WebSocket in the browser: Browser support requires native `fetch`. Realtime features additionally require a native `WebSocket` API.
- Experimental features can change without notice: Anything marked experimental is outside the usual stability promise.

## Numbers (AgentGid data)
- Gid Score: 82.0 (#68 of all tools, 1 of 287 in its category)
- Used in 675 public projects set up for AI coding agents (10.8%)
- Downloads last week: 67,874,403 (as of 2026-11-24), +121.8% over 4 weeks
- GitHub stars: 4,615 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
React 86.5%, Lucide React 66.7%, Tailwind CSS 82.2%, Next.js 58.5%, Tailwind Merge 59.6%, clsx 59.7%

## Checked alternatives (same job)
- Firebase: https://agentgid.com/tools/firebase-node/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/supabase-supabase-js/
- Homepage: https://github.com/supabase/supabase-js/tree/master/packages/core/supabase-js
- Repository: https://github.com/supabase/supabase-js
- Source: https://github.com/supabase/supabase-js#readme
- Source: https://github.com/supabase/supabase-js
- Source: https://github.com/supabase/supabase-js/releases
- Source: https://supabase.com/llms.txt
- Source: https://supabase.com/index.md

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
