supabase/supabase

GitHub Trending (daily) 产品

摘要

Supabase 是一个基于 PostgreSQL 的开源 Firebase 替代方案,提供托管数据库、认证、自动生成的API、实时订阅、函数、文件存储以及AI/向量工具。

Postgres 开发平台。Supabase 为您提供专用的 Postgres 数据库,用于构建 Web、移动和 AI 应用程序。
查看原文
查看缓存全文

缓存时间: 2026/07/03 11:37

supabase/supabase 源码:https://github.com/supabase/supabase

Supabase

Supabase (https://supabase.com) 是一个 Postgres 开发平台。我们利用企业级开源工具构建 Firebase 的各种功能。

  • 托管的 Postgres 数据库。文档 (https://supabase.com/docs/guides/database)
  • 身份验证与授权。文档 (https://supabase.com/docs/guides/auth)
  • 自动生成的 API。
    • REST。文档 (https://supabase.com/docs/guides/api)
    • GraphQL。文档 (https://supabase.com/docs/guides/graphql)
  • 实时订阅。文档 (https://supabase.com/docs/guides/realtime)
  • 函数。
    • 数据库函数。文档 (https://supabase.com/docs/guides/database/functions)
    • 边缘函数。文档 (https://supabase.com/docs/guides/functions)
  • 文件存储。文档 (https://supabase.com/docs/guides/storage)
  • AI + 向量/嵌入工具包。文档 (https://supabase.com/docs/guides/ai)
  • 仪表盘。

Supabase 仪表盘。关注此仓库的“发布”通知以获取主要更新。

文档

完整文档请访问 supabase.com/docs (https://supabase.com/docs)

要了解如何贡献,请访问 入门指南

社区与支持

  • 社区论坛 (https://github.com/supabase/supabase/discussions)。适用于:构建方面的帮助、数据库最佳实践讨论。
  • GitHub Issues (https://github.com/supabase/supabase/issues)。适用于:使用 Supabase 时遇到的 bug 和错误。
  • 邮件支持 (https://supabase.com/docs/support#business-support)。适用于:数据库或基础设施方面的问题。
  • Discord (https://discord.supabase.com)。适用于:分享你的应用并与社区交流。

工作原理

Supabase 是多个开源工具的组合。我们使用企业级开源产品构建 Firebase 的功能。如果某个工具及社区存在,并且使用 MIT、Apache 2 或同等开放许可证,我们将使用并支持该工具。如果工具不存在,我们将自行构建并开源。

Supabase 并非 Firebase 的一对一映射。我们的目标是利用开源工具为开发者提供类似 Firebase 的开发体验。

架构

Supabase 是一个托管平台 (https://supabase.com/dashboard)。你可以注册后立即使用 Supabase,无需安装任何东西。你也可以自托管 (https://supabase.com/docs/guides/hosting/overview) 并在本地开发 (https://supabase.com/docs/guides/local-development)。

架构

  • Postgres (https://www.postgresql.org/) 是一个对象关系数据库系统,经过 30 多年的积极开发,在可靠性、功能健壮性和性能方面享有盛誉。
  • Realtime (https://github.com/supabase/realtime) 是一个 Elixir 服务器,允许你通过 WebSocket 监听 PostgreSQL 的插入、更新和删除操作。它轮询 Postgres 内置的复制功能以获取数据库变更,将变更转换为 JSON,然后通过 WebSocket 将 JSON 广播给授权客户端。
  • PostgREST (http://postgrest.org/) 是一个 Web 服务器,可将你的 PostgreSQL 数据库直接转换为 RESTful API。
  • GoTrue (https://github.com/supabase/gotrue) 是一个基于 JWT 的身份验证 API,可简化应用中的用户注册、登录和会话管理。
  • Storage (https://github.com/supabase/storage-api) 是一个用于管理 S3 中文件的 RESTful API,权限由 Postgres 处理。
  • pg_graphql (http://github.com/supabase/pg_graphql/) 是一个 PostgreSQL 扩展,可提供 GraphQL API。
  • postgres-meta (https://github.com/supabase/postgres-meta) 是一个用于管理 Postgres 的 RESTful API,可让你获取表、添加角色、运行查询等。
  • Kong (https://github.com/Kong/kong) 是一个云原生 API 网关。

客户端库

我们采用模块化的客户端库方法。每个子库都是单个外部系统的独立实现。这是我们支持现有工具的方式之一。

语言客户端功能客户端(集成在 Supabase 客户端中)
SupabasePostgREST
⚡️ 官方 ⚡️
JavaScript (TypeScript)supabase-jspostgrest-js
Fluttersupabase-flutterpostgrest-dart
Swiftsupabase-swiftpostgrest-swift
Pythonsupabase-pypostgrest-py
💚 社区 💚
C#supabase-csharppostgrest-csharp
Go-postgrest-go
Java--
Kotlinsupabase-ktpostgrest-kt
Rubysupabase-rbpostgrest-rb
Rust-postgrest-rs
Godot Engine (GDScript)supabase-gdscript-

徽章

Made with Supabase

Made with Supabase (https://supabase.com)
<a href="https://supabase.com">
  <img
    width="144"
    height="20"
    src="https://supabase.com/badge-made-with-supabase.svg"
    alt="Made with Supabase"
  />
</a>

Made with Supabase (dark)

Made with Supabase (https://supabase.com)
<a href="https://supabase.com">
  <img
    width="144"
    height="20"
    src="https://supabase.com/badge-made-with-supabase-dark.svg"
    alt="Made with Supabase"
  />
</a>

翻译

相似文章

Powabase

Product Hunt

Powabase 是一款使用 Postgres、RAG(检索增强生成)和智能体来构建 AI 应用的产品。