百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

supabase-js

> 前端框架
开源

一个用于 Supabase 的同构 JavaScript 客户端。查询您的 Supabase 数据库、订阅实时事件、上传和下载文件、浏览 TypeScript 示例,

4.5K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个用于 Supabase 的同构 JavaScript 客户端。查询您的 Supabase 数据库、订阅实时事件、上传和下载文件、浏览 TypeScript 示例,


</picture>

Supabase JS SDK

Guides · Reference Docs

Libraries

This monorepo contains the complete suite of Supabase JavaScript SDK:

Library Description
@supabase/supabase-js Main isomorphic SDK for Supabase
@supabase/auth-js Authentication SDK
@supabase/postgrest-js PostgREST SDK for database operations
@supabase/realtime-js Real-time subscriptions SDK
@supabase/storage-js File storage SDK
@supabase/functions-js Edge Functions SDK

Support Policy

This section outlines the scope of support for various runtime environments in Supabase JavaScript client.

Node.js

We only support Node.js versions that are in Active LTS or Maintenance status as defined by the official Node.js release schedule. This means we support versions that are currently receiving long-term support and critical bug fixes.

When a Node.js version reaches end-of-life and is no longer in Active LTS or Maintenance status, Supabase will drop it in a minor release, and this won't be considered a breaking change.

⚠️ Node.js 18 Deprecation Notice

Node.js 18 reached end-of-life on April 30, 2025. As announced in our deprecation notice, support for Node.js 18 was dropped in version 2.79.0.

If you must use Node.js 18, please use version 2.78.0, which is the last version that supported Node.js 18.

⚠️ Node.js 20 Deprecation Notice

Node.js 20 reached end-of-life on April 30, 2026. As announced in our deprecation notice, support for Node.js 20 was dropped in version 2.110.0.

If you must use Node.js 20, please use version 2.109.0, which is the last version that supported Node.js 20.

Deno

We support Deno versions that are currently receiving active development and security updates. We follow the official Deno release schedule and only support versions from the stable and lts release channels.

When a Deno version reaches end-of-life and is no longer receiving security updates, Supabase will drop it in a minor release, and this won't be considered a breaking change.

Browsers

All modern browsers are supported. We support browsers that provide native fetch API. For Realtime features, browsers must also support native WebSocket API.

Bun

We support Bun runtime environments. Bun provides native fetch support and is compatible with Node.js APIs. Since Bun does not follow a structured release schedule like Node.js or Deno, we support current stable versions of Bun and may drop support for older versions in minor releases without considering it a breaking change.

React Native

We support React Native environments with fetch polyfills provided by the framework. Since React Native does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.

Cloudflare Workers

We support Cloudflare Workers runtime environments. Cloudflare Workers provides native fetch support. Since Cloudflare Workers does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.

Important Notes

  • Experimental features: Features marked as experimental may be removed or changed without notice
  • Build warnings: If you see UNUSED_EXTERNAL_IMPORT warnings from Vite/Nuxt, see the supabase-js README — these are false positives

Quick Start

Installation

bash
npm install @supabase/supabase-js

Read more in each package's README file.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Contribution Steps

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes and add tests
  4. Run tests (pnpm nx affected --target=test)
  5. Commit your changes (pnpm commit)
  6. Push to your branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Development Guidelines

  • Follow conventional commits for commit messages
  • Add tests for new functionality
  • Update documentation for API changes
  • Run pnpm nx format before committing
  • Ensure all tests pass with pnpm nx affected --target=test

Testing

Testing varies per package. See the top-level TESTING.md for an overview and links to package-specific guides.

Documentation

API Documentation

  • Auth SDK - Authentication and user management
  • Database SDK - Database queries and operations
  • Realtime SDK - Real-time subscriptions
  • Storage SDK - File upload and management
  • Functions SDK - Edge Functions invocation
  • Main SDK - Combined SDK

Architecture Documentation

  • Contributing - Development guidelines
  • Release Workflows - Release and publishing process
  • Migration Guide - Cross-cutting migration notes (per-package migrations live alongside each package under packages/core/<package>/migrations/)
  • Security Policy - Vulnerability reporting and disclosure policy
  • Securing your npm installs - Consumer-side guide to defending your install against npm supply-chain attacks

Verifying provenance attestations

You can verify registry signatures and provenance attestations for installed packages using the npm CLI:

bash
npm audit signatures

Quick example for a single package install:

bash
npm install @supabase/auth-js
npm audit signatures

Example output:

audited 1 package in 0s

1 package has a verified registry signature

Because provenance attestations are a new capability, security features may evolve over time. Ensure you are using the latest npm CLI to verify attestation signatures reliably. This may require updating npm beyond the version bundled with Node.js.

For a broader checklist — minimum release age, lockfile hygiene, blocking exotic transitive deps, lifecycle script controls, and what to do if you suspect a compromise — see Securing your npm installs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

  • Documentation: supabase.com/docs
  • Community: GitHub Discussions
  • Issues: GitHub Issues
  • Discord: Supabase Discord

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptclient-librarydatabaseisomorphicjavascript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架