
Supabase
Open source Firebase: Postgres database, auth, and file storage
Replaces Firebase, Aws Amplify, Backendless

Who it's for
Use Supabase when your application requires transactional data models, relational reporting, and flexible auth policies while still needing a Firebase-like developer speed.
Skip if your team is committed to a fully managed backend and cannot support custom infrastructure operations.
Use Supabase for projects that require tighter control over data location, access policy reviews, and audit-friendly operations on your own infra.
Skip if you need zero infrastructure ownership and cannot sustain security hardening cycles.
Use Supabase for dashboards with live updates, notification streams, and collaborative features that need DB change event propagation.
Skip if your product has low write/read concurrency and no realtime requirements.
Use Supabase when RLS-driven API access and server-side edge logic help reduce custom middleware layers while keeping one backend surface for app APIs.
Skip if your architecture depends on managed ecosystem-only integrations with minimal backend customization.
The problem
Teams moving from managed backend platforms often lose control of data modeling, pricing, and access rules as apps grow. A NoSQL-first service model can make relational data and complex joins harder to express, while long-running operational costs rise with usage. Teams also run into migration friction when they later need regional control, custom extensions, or on-premise deployment for compliance. Supabase targets this gap by providing a Postgres-first backend stack with built-in auth, APIs, Realtime, storage, and function runtime you can run under your own operational model. This makes it useful for teams that need both fast product iteration and a path away from opaque managed constraints.
How it works
Supabase uses PostgreSQL as its core database layer, including SQL joins, transactions, and mature indexing behavior, so teams can model relational data without adding a separate persistence layer.
Auth, user sessions, and role-based checks can be wired with Row Level Security on Postgres, letting teams express data access rules centrally.
REST and related access patterns are generated from database structures, and Realtime subscriptions stream change events without building a separate websockets stack.
The backend includes an Edge Runtime for custom logic, integrations, and API-side tasks within the same deployment surface.
The official stack uses Docker Compose with documented setup steps, making local and private-cloud deployments the default path instead of a fixed managed-only model.
Features
- PostgreSQL-first data layer
- Auth and policy control in SQL
- Integrated API surface
- Edge Functions and serverless-style handlers
- Self-hosted Docker deployment
How to install
git clone --depth 1 https://github.com/supabase/supabase
mkdir supabase-project
cp -rf supabase/docker/* supabase-project
cp supabase/docker/.env.example supabase-project/.env
cd supabase-project
docker compose pull
sh utils/generate-keys.sh
sh utils/add-new-auth-keys.sh
docker compose up -dRecommended for this setup
Strengths
- Relational backend from day one: Teams that need transactional consistency and SQL joins get a backend that aligns with mature relational patterns, which is stronger for complex business data than document-only defaults.
- Infrastructure portability: Teams can run it on their own servers or private cloud and reduce platform dependency while keeping a modern backend developer workflow in place.
- No forced lock-in to one dashboard service: Open source repos and deployable stack components give teams the ability to adapt stack choices over time and avoid being forced into a single closed vendor ecosystem.
Trade-offs
- Self-hosting requires operations discipline: You are responsible for secrets, updates, backups, monitoring, and incident response. That gives flexibility but adds runbook burden compared with managed services.
- Higher complexity than single-service setups: More components mean broader failure modes, especially during upgrades, network misconfiguration, or storage/auth variable tuning.
- Production hardening is required: Default docs note the baseline setup is not production-secure out of the box, so teams need secure proxies, secret rotation, and TLS planning before launch.
- Some migration assumptions differ across managed and self-hosted: Moving projects between hosted and self-hosted flows can require manual reconfiguration for OAuth and related environment-level settings.
Tech stack
FAQ
Yes. The official self-hosting path is Docker-based and documented. You can run the full stack through an official `docker-compose` setup with environment configuration under your control.
You still define your schema and security model, but Supabase provides generated API access built over PostgreSQL plus auth and storage services, so you can avoid building everything from scratch.
In many app-builder workflows, Supabase covers similar backend responsibilities while shifting you toward relational database control and self-hosting. The architecture and operational model are different, so teams should compare migration effort up front.
The docs canonical flow is clone, copy compose and environment files, generate keys, then run `docker compose up -d` in the compose directory.
It can be made production-ready, but you must complete hardening tasks such as secure secrets, network controls, HTTPS, and monitoring before public exposure.