Firebase alternatives in 2026: open source, Postgres and self-hosting
By Swapfire · Updated
Firebase's free Spark plan includes Firestore with 50,000 reads and 20,000 writes a day, and 50,000 monthly active users; Cloud Functions need the pay-as-you-go Blaze plan. Past a product's quota in a month, Spark shuts it off until the next. On Blaze, budget alerts don't cap charges. Supabase, Nhost and Neon run Postgres, and Supabase, Appwrite, Nhost and PocketBase are open source and can be self-hosted. Convex is free for up to 6 developers.
What do Firebase's plans cost?
- Spark: free, with no payment details. Firestore includes 1 GiB stored, 50,000 reads and 20,000 writes a day, and 10 GiB of egress a month; Authentication 50,000 monthly active users; Hosting 10 GB stored and 360 MB of transfer a day. Cloud Functions and Cloud Storage are not on Spark.
- Blaze: pay as you go, with a Cloud Billing account linked. It keeps the no-cost quotas and bills the usage past them; Cloud Functions can bill even within them. Eligible accounts can get $300 of Google Cloud credit.
On Spark, if a product goes past its no-cost quota in a calendar month, Firebase shuts that product off for the rest of the month, for every app in the project, unless you move to Blaze. On Blaze, Firebase's docs say budget alerts do not cap your usage or charges. For AI Logic, App Hosting, Cloud Functions and Extensions, they recommend spend caps, which pause new usage of a service once it reaches its budget.
What does Swapfire run on?
Swapfire's data lives in Supabase: Postgres, in Ireland, with Row Level Security on every table. Sign-in runs on Supabase Auth, with GitHub, Google and magic links, and Supabase Storage holds product logos and images. Every change to the schema is a SQL migration in our repository, applied with the Supabase CLI.
Because it is Postgres, our tests run those same migrations on an embedded Postgres 17, with no Supabase project or Docker. That is what we use, not a test of the others: we haven't run Swapfire on the backends below, so for them this page says only what their own pages say.
Which Firebase alternatives use SQL?
Firestore is a NoSQL document database. Supabase, Nhost and Neon run Postgres, and PocketBase embeds SQLite. Where each alternative keeps your data:
- Supabase: Postgres.
- Appwrite: Its own database APIs: TablesDB for relational rows, DocumentsDB for documents.
- PocketBase: Embedded SQLite.
- Convex: Its own reactive database.
- Nhost: Postgres, with a GraphQL API from Hasura.
- Neon: Postgres that scales to zero when idle.
- Clerk: None: Clerk handles sign-in only.
Which Firebase alternatives are open source?
- Firebase: No.
- Supabase: Yes, Apache-2.0; self-host free with Docker or the CLI.
- Appwrite: Yes, BSD-3-Clause; self-host with Docker.
- PocketBase: Yes, MIT; self-hosted only.
- Convex: Source-available under FSL-1.1-Apache-2.0, and self-hostable.
- Nhost: Yes, MIT; self-hostable.
- Neon: Yes, Apache-2.0.
- Clerk: No.
What does leaving the free plan cost?
The lowest monthly fee to go past each free plan, with Firebase first:
| Backend | Lowest paid fee, a month | What it buys |
|---|---|---|
| Firebase | $0 | Blaze: no plan fee; you pay for usage past the no-cost quotas, and Cloud Functions can bill within them |
| PocketBase | $0 | No paid plan: you pay for the server it runs on |
| Convex | $0 | Starter: no plan fee, pay as you go past the free amounts; Professional is $25 a developer |
| Neon | $0 | Launch: no monthly minimum; $0.106 a CU-hour and $0.35 a GB-month, about $15 in a typical month, by Neon's count |
| Appwrite | $10 | Start, from $10 with 3 members, 80 GB of bandwidth and 40 GB of storage; Pro from $25 with unlimited members |
| Clerk | $20 | Pro: $20 a month billed annually, $25 billed monthly; 50,000 retained users per app, then $0.02 each |
| Supabase | $25 | Pro, from $25 with $10 of compute credits and the first project; each project more from $10 |
| Nhost | $25 | Pro, from $25 with $15 of compute credits |
This is the fee before anything runs. Every backend here bills usage beyond what its plan includes, and PocketBase needs a server you pay for, so the lowest fee is not always the cheapest month.
What stops each free plan?
- Firebase: Past a product's no-cost quota in a month, that product shuts off for the rest of the month, unless you move to Blaze.
- Supabase: A project pauses after a week without activity; past the quota, Supabase notifies you, and service restrictions apply if usage stays over.
- Appwrite: A project pauses after a week without activity; at a limit, it freezes and the console turns read-only until the next billing cycle.
- PocketBase: No plan to run out; it scales only on a single server.
- Convex: Hard caps on Free; Starter, still $0 a month, bills the usage past them.
- Nhost: The project pauses after a week without activity.
- Neon: A project's compute is suspended until next month once it uses its 100 CU-hours or 5 GB of egress; the data stays.
- Clerk: Not stated on its pricing page, which lists 50,000 retained users per app as Hobby's limit.
How many users can sign in for free?
- Firebase: 50,000 monthly active users free.
- Supabase: 50,000 monthly active users free; Pro includes 100,000, then $0.00325 each.
- Appwrite: 75,000 monthly active users free; Start includes 100,000.
- PocketBase: Built in, with no user limit but your server.
- Convex: Auth on every plan; its pricing page lists no user limit.
- Nhost: Unlimited users on the free plan.
- Neon: Managed Better Auth: 60,000 monthly active users per project free.
- Clerk: 50,000 retained users per app free: users who come back at least 24 hours after signing up.
How do the backends compare?
| Backend | Database | Free plan | When the free plan stops | Open source |
|---|---|---|---|---|
| Firebase | Cloud Firestore, a NoSQL document database | Spark: Firestore with 1 GiB stored, 50,000 reads and 20,000 writes a day, and 50,000 monthly active users; no payment details. Cloud Functions and Cloud Storage need Blaze | Past a product's no-cost quota in a month, that product shuts off for the rest of the month, unless you move to Blaze | No |
| Supabase | Postgres | 2 active projects, each with a 500 MB database, 1 GB of file storage, 5 GB of egress and 50,000 monthly active users; unlimited team members | A project pauses after a week without activity; past the quota, Supabase notifies you, and service restrictions apply if usage stays over | Yes, Apache-2.0; self-host free with Docker or the CLI |
| Appwrite | Its own database APIs: TablesDB for relational rows, DocumentsDB for documents | 2 projects, each with 1 database, 1 storage bucket and 2 functions; 5 GB of bandwidth, 2 GB of storage and 75,000 monthly active users; 1 member | A project pauses after a week without activity; at a limit, it freezes and the console turns read-only until the next billing cycle | Yes, BSD-3-Clause; self-host with Docker |
| PocketBase | Embedded SQLite | Free software in one file, with a database, auth, file storage and an admin dashboard, on a server you run | No plan to run out; it scales only on a single server | Yes, MIT; self-hosted only |
| Convex | Its own reactive database | 1 million function calls, 0.5 GB of database, 1 GB of file storage and 1 GB of egress a month, for 1 to 6 developers | Hard caps on Free; Starter, still $0 a month, bills the usage past them | Source-available under FSL-1.1-Apache-2.0, and self-hostable |
| Nhost | Postgres, with a GraphQL API from Hasura | 1 project with a 1 GB database, 1 GB of file storage and 5 GB of egress | The project pauses after a week without activity | Yes, MIT; self-hostable |
| Neon | Postgres that scales to zero when idle | 100 projects, each with 100 CU-hours a month, 1 GB of storage (20 GB in all) and 5 GB of egress; no card needed | A project's compute is suspended until next month once it uses its 100 CU-hours or 5 GB of egress; the data stays | Yes, Apache-2.0 |
| Clerk | None: Clerk handles sign-in only | Hobby: 50,000 retained users per app, unlimited apps and up to 3 dashboard seats; no card needed | Not stated on its pricing page, which lists 50,000 retained users per app as Hobby's limit | No |
Which alternative should you pick?
- Supabase, for Postgres with auth, file storage and functions in one project, under an open-source license you can self-host. The catch: a free project pauses after a week without activity, and Pro is from $25 a month.
- Appwrite, for an open-source backend with a $10 plan for three members. The catch: the free plan has one member, and a project freezes when it reaches a limit.
- PocketBase, for a whole backend in one file on a server you already have. The catch: it scales only on a single server, and until version 1.0 its docs don't recommend it for production-critical apps.
- Convex, for a reactive backend free for up to 6 developers. The catch: its database is its own, not SQL, and its license is source-available rather than open source.
- Nhost, for Postgres with a GraphQL API and unlimited users on the free plan. The catch: one free project, which pauses after a week without activity.
- Neon, for Postgres with auth, object storage and functions, 100 free projects and no monthly minimum once you pay. The catch: a free project's compute stops until next month once it uses its 100 CU-hours.
- Clerk, to replace only sign-in, with prebuilt sign-up and sign-in screens and 50,000 retained users per app free. The catch: it stores none of your app's data, so you still need a database.
How did we choose these backends?
We set Supabase and Firebase, each with a page of its own here, against six others: Appwrite, Nhost and PocketBase, which you can host yourself; Convex, with its own reactive database; Neon, for Postgres; and Clerk, for sign-in alone. Every price is read on the backend's own pricing page or docs on 5 December 2026, in US dollars, and every license in its repository. Swapfire runs on Supabase; we haven't run it on the others, so for them this page says only what their own pages say.
Questions
Is Firebase free?
The Spark plan is free and needs no payment details. It includes Firestore with 1 GiB stored, 50,000 reads and 20,000 writes a day, and 50,000 monthly active users for Authentication. Cloud Functions and Cloud Storage need the Blaze plan.
Can I cap my bill on Firebase's Blaze plan?
Not with budget alerts: Firebase's docs say they alert you about costs but do not cap usage or charges. For AI Logic, App Hosting, Cloud Functions and Extensions, the docs recommend spend caps, which pause new usage of a service once it reaches its budget.
What is an open-source alternative to Firebase?
Supabase (Apache-2.0) and Appwrite (BSD-3-Clause) are the closest: auth, a database, file storage and functions, open source and self-hostable. Nhost (MIT) runs Postgres with a GraphQL API, and PocketBase (MIT) is a whole backend in one file.
Which Firebase alternative uses SQL?
Supabase, Nhost and Neon run Postgres, Appwrite's TablesDB stores relational rows, and PocketBase embeds SQLite. Firestore, by contrast, is a NoSQL document database, and Convex has a reactive database of its own.
Sources
- Firebase: Pricing ()
- Firebase Docs: Firebase pricing plans ()
- Firebase Docs: Cloud Firestore ()
- Supabase: Pricing ()
- Supabase Docs: Billing FAQ ()
- Supabase on GitHub ()
- Appwrite: Pricing ()
- Appwrite Docs: Databases ()
- Appwrite Docs: Self-hosting ()
- Appwrite on GitHub ()
- PocketBase ()
- PocketBase: FAQ ()
- PocketBase Docs: Introduction ()
- PocketBase: License ()
- Convex: Pricing ()
- Convex Docs: Limits ()
- Convex backend: License ()
- Nhost: Pricing ()
- Nhost on GitHub ()
- Neon: Pricing ()
- Neon Docs: Plans ()
- Neon on GitHub ()
- Clerk: Pricing ()
Every source read on . Prices change, so every pricing page is read again each quarter.
Your backend keeps your users; a torch brings you more of them. Light one for free, and member sites show your product while yours shows theirs.
Light your torch, free