Supabase is an open source Firebase alternative. We're building the features of Firebase using enterprise-grade open source tools.

Watch "releases" of this repo to get notified of major updates.

For full documentation, visit supabase.com/docs
To see how to Contribute, visit Getting Started
Supabase is a combination of open source tools. We're building the features of Firebase using enterprise-grade, open source products. If the tools and communities exist, with an MIT, Apache 2, or equivalent open license, we will use and support that tool. If the tool doesn't exist, we build and open source it ourselves. Supabase is not a 1-to-1 mapping of Firebase. Our aim is to give developers a Firebase-like developer experience using open source tools.
Architecture
Supabase is a hosted platform. You can sign up and start using Supabase without installing anything. You can also self-host and develop locally.
Our approach for client libraries is modular. Each sub-library is a standalone implementation for a single external system. This is one of the ways we support existing tools.
| Language | Client | Feature-Clients (bundled in Supabase client) | ||||
|---|---|---|---|---|---|---|
| Supabase | PostgREST | GoTrue | Realtime | Storage | Functions | |
| ⚡️ Official ⚡️ | ||||||
| JavaScript (TypeScript) | supabase-js | postgrest-js | gotrue-js | realtime-js | storage-js | functions-js |
| Flutter | supabase-flutter | postgrest-dart | gotrue-dart | realtime-dart | storage-dart | functions-dart |
| Swift | supabase-swift | postgrest-swift | auth-swift | realtime-swift | storage-swift | functions-swift |
| Python | supabase-py | postgrest-py | gotrue-py | realtime-py | storage-py | functions-py |
| 💚 Community 💚 | ||||||
| C# | supabase-csharp | postgrest-csharp | gotrue-csharp | realtime-csharp | storage-csharp | functions-csharp |
| Go | - | postgrest-go | gotrue-go | - | storage-go | functions-go |
| Java | - | - | gotrue-java | - | storage-java | - |
| Kotlin | supabase-kt | postgrest-kt | auth-kt | realtime-kt | storage-kt | functions-kt |
| Ruby | supabase-rb | postgrest-rb | - | - | - | - |
| Rust | - | postgrest-rs | - | - | - | - |
| Godot Engine (GDScript) | supabase-gdscript | postgrest-gdscript | gotrue-gdscript | realtime-gdscript | storage-gdscript | functions-gdscript |
[](https://supabase.com)
<a href="https://supabase.com">
<img
width="168"
height="30"
src="https://supabase.com/badge-made-with-supabase.svg"
alt="Made with Supabase"
/>
</a>
[](https://supabase.com)
<a href="https://supabase.com">
<img
width="168"
height="30"
src="https://supabase.com/badge-made-with-supabase-dark.svg"
alt="Made with Supabase"
/>
</a>
cd docker
cp .env.example .env
# 编辑 .env 文件设置你的密钥
docker compose up -d
cd supabase-project
# .env 文件已配置好安全密钥
docker compose up -d
两个配置的主要差异:
docker/ - 开发环境配置,健康检查较宽松supabase-project/ - 生产环境配置,健康检查更严格,包含启动缓冲时间如果遇到 Docker 守护进程连接问题:
systemctl status dockersudo systemctl restart docker如果 Studio 界面无法访问:
docker compose down && docker compose up -d服务按以下顺序启动,请耐心等待:
关键环境变量已配置:
POSTGRES_PASSWORD: 数据库密码JWT_SECRET: JWT 签名密钥ANON_KEY: 匿名访问密钥SERVICE_ROLE_KEY: 服务角色密钥