Supabase
Open-source Firebase alternative providing Postgres-based backend services including database, authentication, storage, and real-time subscriptions.
At a Glance & Reviews
Community Discussions (8)
- AI时代,为什么我放弃Vue全家桶,选择了Next.js + Supabase 2025-08-14 · 81 pts
- Supabase MCP can leak your entire SQL database 2025-07-08 · 848 pts
- Supabase raises $200M Series D at $2B valuation 2025-04-22 · 342 pts
- 手把手教你Supabase,让前端轻松搞定后端 😉(上) 2024-07-21 · 47 pts
About Supabase
Supabase is a backend development platform built on Postgres. It solves the repetitive work of setting up a database, a login system, file storage, and real-time push separately, and then building an API layer to connect them when creating an application. Its approach is to provide a complete, ready-to-use backend when a project is created, with the relational database itself always at the center: the official documentation repeatedly emphasizes that each project is a standalone, complete Postgres database instance, not a simplified wrapper around Postgres, and that SQL, extensions, and common database tools can all be used in the Postgres way. The platform is assembled from multiple open-source components and is open source under the Apache 2.0 license. In addition to using its cloud service, it can also be self-hosted with Docker following the official documentation, running the same set of components on your own server.
The database is the foundation for all other modules. After a project is created, you can use the table editor in the console to create tables and edit data directly, or use SQL to write schemas and queries. When needed, you can enable row-level security policies to write database-level rules about who can read or modify which rows, rather than hand-writing those checks scattered across individual APIs. Data APIs are automatically generated on top of the database: once a table is created, a callable REST API is available, and clients can query and write data directly by conditions. Combined with row-level security policies, many applications can read and write data directly from a browser or app without writing a separate backend service. Compute specifications are selected separately for each project, starting from the shared-compute Micro instance and going up through multiple tiers. Paid plans include a $10 monthly compute credit, which exactly covers the cost of one Micro instance. Instances are billed by the hour and can be scaled up or down at any time. The official pricing page lists specifications up to 64 virtual CPUs and 256 GB of memory, while disks can be expanded to tens of TB and high-performance disks can be selected separately.
The Auth module handles the user system. It supports email and password login, passwordless login links, one-time verification codes, phone login, and social logins from Google, GitHub, Apple, and other providers. Enterprise scenarios also include SAML single sign-on and other capabilities, with the exact available scope varying by plan. After a successful login, the user identity is integrated with the database's row-level security policies, and API requests are automatically executed with the current user's identity, so policies can directly check whether a row belongs to the currently logged-in user. Common tasks in application development—registration, login, password recovery, and session persistence—do not need to be implemented from scratch. User data is also stored in the project's own Postgres database, rather than being locked in an external user system that is difficult to export from.
The Storage module handles large files such as images, videos, and documents. It organizes files in buckets, and its S3-compatible interface means that many existing S3 toolchains can be reused. File access permissions also follow the Postgres permission system, and private files can be accessed through time-limited signed links. The free plan's per-file upload limit is listed on the pricing page as 50 MB, and it provides basic content delivery; paid plans relax the limits on capacity and delivery. Avatars, product images, user-uploaded attachments, and original documents to be fed into vector retrieval are all suitable to be stored here first, with the correspondence between files and business data recorded in database tables.
The Realtime module provides three capabilities: listening for inserts, updates, and deletes in database tables and pushing the changes to online clients, broadcasting messages between clients, and synchronizing presence information about who is online. Features such as chat rooms, multi-user collaborative editing, real-time dashboards, and order status refresh can be built without maintaining a WebSocket service yourself. The free plan is stated on the pricing page as including 200 concurrent connections and 2 million messages per month, with a single-message limit of 256 KB; paid plans relax these limits based on usage. Vector capabilities come from the pgvector extension for Postgres: add a vector column to a table to store embeddings and build indexes for similarity search. The official documentation provides retrieval-augmented question-answering examples using different embedding models, making it suitable to build semantic search and question answering directly in the same database where business data lives, without maintaining a separate vector database.
Edge Functions are for custom logic that must run on the server. They are written in TypeScript or JavaScript on the Deno runtime, without deploying a server yourself. Common uses include payment callbacks, hiding keys when calling third-party model APIs, sending transactional emails, and splitting and generating embeddings after file uploads. The free plan's pricing page states that it includes 500,000 function calls per month, with higher included quotas on paid plans and per-call billing after the quota is exceeded. Because they are in the same project as the database and storage, functions can call your own data and files without going through the public internet, which also makes debugging more convenient on an all-in-one platform.
The getting-started path on the cloud service is short. After registering on the official website, create a new project and select a region. First, use the table editor or SQL to create the core tables and enable row-level security policies, then get the API URL and keys from the project settings. Install the official client library for your frontend framework in your frontend project, initialize the client, and first get registration, login, and CRUD operations on a record working. Then, enable storage buckets, real-time subscriptions, and edge functions one by one as needed, verifying each module separately after enabling it, which makes it much clearer where problems are located. For self-hosting, follow the official Docker self-hosting documentation: one Compose file starts the database, login, storage, API gateway, real-time service, and console. Components can be removed as needed to reduce resource usage, but server maintenance, security updates, and backups then become your own responsibility.
There are four typical scenarios. First, independent developers or small teams building products with a user system: users, orders, and content all go into Postgres, with login and APIs ready to use, so time can be spent on the product itself. Second, multi-user collaboration or real-time update applications, using real-time subscriptions for dashboards, notifications, and presence. Third, admin panels and internal tools, where row-level security policies distinguish visible data by role, and the tabular management interface is quick to learn. Fourth, AI applications with semantic retrieval: documents are stored in Storage, chunks and vectors are stored in the database, and model calls are placed in edge functions, so a question-answering prototype can be completed within one project, with the decision on whether to split it made later based on usage.
Pricing is based on organization subscriptions plus usage, and the current structure on the official pricing page is as follows. The free plan costs $0 per month and includes unlimited API requests, 50,000 monthly active users per month, a 500 MB database, 5 GB of egress and 5 GB of cached egress, 1 GB of file storage, and community support. Its limits are a maximum of 2 active projects and projects being paused after one week of inactivity. The Pro plan starts at $25 per month and includes 100,000 monthly active users per month, with additional monthly active users at $0.00325 each; 8 GB of disk per project, with additional disk at $0.125 per GB; 250 GB of egress and 250 GB of cached egress, with overages at $0.09 per GB and $0.03 per GB respectively; 100 GB of file storage, with overages at $0.0213 per GB; and daily backups retained for 7 days, logs retained for 7 days, and email support. Log export is an add-on at $60 per project per month. Pro enables a spending cap by default to prevent overspending, and overage billing only continues after it is turned off. Additional projects start at $10 per month. The Team plan starts at $599 per month, with usage quotas basically the same as Pro. The additional value is mainly governance and compliance: on top of Pro, it adds SOC 2 and ISO 27001, console single sign-on, project-level and read-only permissions, priority email support and service levels, backup retention extended to 14 days, and log retention of 28 days, with HIPAA as a paid add-on. Enterprise is custom-priced and provides a technical account manager, availability service levels, dedicated network connections, and dedicated support channels, among others. Two easily overlooked separate charges are also worth noting: a custom domain costs a flat $10 per month, and point-in-time recovery starts at $100 per month.
The explicitly stated limitations are concentrated in the free plan: the project count limit, pausing after one week of inactivity, and the lack of automatic backups. Before building a production product, you usually need to upgrade to Pro to remove the pausing and get daily backups. On the pricing structure, it is also worth noting that Team and Pro have the same usage quotas, so the price difference mainly buys compliance and permission governance rather than capacity, and upgrading to Team just for more capacity is not cost-effective. In addition, there are many billing dimensions, and monthly active users, traffic, storage, and function calls can all generate overage charges, which is why the official documentation enables the spending cap by default on Pro.
Compared with services that only provide database hosting, Supabase's difference is that it places Postgres, login, storage, real-time, and edge functions in the same project and under the same permission model, saving the cost of integrating accounts and permissions across multiple services. Compared with similar backend platforms centered on a document database, its trade-off is to stick with relational databases and SQL, writing complex queries, joins, and transactions in the database's native way, at the cost of needing to think through the table structure clearly when modeling. For teams that have already decided to use Postgres, it is more like having all the supporting services around the database configured at once; for scenarios that only need a database, most of its value is not used.
Frequently Asked Questions
Is Supabase free?
Partly. Supabase has a free tier; higher limits or advanced features are paid. Check the official site for current plans and limits.