If you want a full backend with SQL, Supabase is the usual first stop. If you want the closest feature-for-feature match (auth, databases, storage, functions, messaging), look at Appwrite. If you want something one person can run from a single binary, PocketBase is the lightest. If you are already on Cloudflare, D1 with Workers may be all you need.

Firebase is not going away, and its free Spark plan is generous, so this is not a "leave now" article. People look elsewhere for four common reasons: they want SQL instead of Firestore's document model, they want to self-host, they want to avoid lock-in to one cloud, or they want billing they can predict. Everything below was checked against official pricing pages, docs and repositories on 2026-12-05.

Quick-pick table

NeedPickWhy
Full backend on PostgreSQLSupabasePostgres, auth, storage, realtime; hosted or self-hosted
Closest all-in-one matchAppwriteAuth, databases, storage, functions, messaging, sites
Tiny self-hosted backendPocketBaseSingle Go binary, embedded SQLite, admin UI
Postgres plus GraphQLNhostPostgres with Hasura GraphQL, auth and storage
Reactive TypeScript backendConvexDatabase and server functions in one product
Already on CloudflareD1 plus WorkersSQLite database next to your code
Existing Parse apps, MongoDB or PostgresParse ServerMature open source backend you host yourself

First, what Firebase costs today

Firebase has two plans. On the no-cost Spark plan the Firebase pricing page lists, for Firestore (Standard edition), 1 GiB stored, 50K reads and 20K writes per day, plus 50K monthly active users for Authentication and 10 GB of Hosting storage. Cloud Storage and Cloud Functions are listed as not available on Spark. The pay-as-you-go Blaze plan keeps the same no-cost amounts and charges beyond them; Cloud Functions includes 2 million invocations a month, and Cloud Storage free quotas apply only to buckets in certain US regions (as of 2026-12-05).

So the practical catch is not the price of the free tier. It is that using storage or functions needs a billing account, and that your data model and security rules are shaped around Firestore. That is the real cost of leaving, and it is worth understanding before you pick a replacement.

Supabase

What it is: A hosted backend built on PostgreSQL, with authentication, file storage, realtime and edge functions. Best for: teams that want SQL and a polished hosted option with a self-host escape route.

  • Strengths: you get real Postgres, so joins, constraints and standard tooling work. The repository is Apache-2.0 and the docs describe Docker Compose self-hosting.
  • Limits: self-hosting runs as a single project and the docs list features that are not available when self-hosting, such as branching, managed backups with point-in-time recovery and the Management API. The docs say you handle security hardening, upgrades, backups and monitoring yourself.
  • Pricing (as of 2026-12-05): Free is $0 with 500 MB database per project, 50,000 monthly active users, 1 GB file storage and 5 GB egress; free projects pause after a week of inactivity and you can have two active. Pro is from $25 per month and Team from $599 per month.

Choose it if you want SQL and a mainstream hosted service. There is more detail in Supabase alternatives and when to self-host.

Appwrite

What it is: An open source backend platform with Auth, Databases, Storage, Functions, Sites, Messaging and Realtime, available as a managed cloud or self-hosted. Best for: teams that want one product covering most of what Firebase does.

  • Strengths: BSD-3-Clause licence; installs with a Docker command, with the setup wizard bound to localhost by default, which is a sensible security default.
  • Limits: its self-hosted install runs several containers, so it is heavier than PocketBase. Appwrite's pricing page shows its Free plan freezes the project in read-only mode when a limit is hit, while Pro charges for overage and offers budget caps.
  • Pricing: serverless databases have no fixed monthly fee and dedicated databases start from $10 per month; read the pricing page for the plan limits that matter to you.

Choose it if you want a self-hostable all-in-one backend and are comfortable running Docker.

PocketBase

What it is: An open source backend in one Go executable, with an embedded SQLite database, realtime subscriptions, file and user management, an admin dashboard and a REST-style API. Best for: small internal tools, prototypes and apps one server can handle.

  • Strengths: MIT licence; the simplest deployment of anything here, one file plus a data directory; usable as a standalone app or as a Go framework.
  • Limits: the docs state it is still under active development, that backward compatibility is not guaranteed before v1.0.0, and that it is not recommended for production-critical applications yet (docs show v0.43.0). It runs on SQLite, so scaling means a bigger single machine, not a cluster. Note also that the old GitHub repository page now shows it as moved to ganigeorgiev.com, so follow the link on pocketbase.io for the current source.
  • Pricing: free; you pay only for the server.

Choose it if you want the smallest possible backend and accept the pre-1.0 caveats.

Nhost

What it is: An open source backend that combines PostgreSQL, a Hasura GraphQL API, its own authentication and storage services, and Node.js serverless functions. Best for: GraphQL-first teams.

  • Strengths: MIT licence; Postgres underneath; SDKs for JavaScript/TypeScript and Dart/Flutter.
  • Limits: GraphQL is the centre of the design, so teams who prefer plain REST may find Supabase simpler.
  • Pricing (as of 2026-12-05): Starter $0 with 1 project, 1 GB database, 1 GB storage and 5 GB egress, paused after a week of inactivity; Pro from $25 per month; Team from $599 per month. The site says it does not stop projects that exceed limits and charges for the excess.

Choose it if your front end already speaks GraphQL.

Convex

What it is: A reactive backend where your database and server functions are written in TypeScript. Best for: TypeScript teams building realtime apps.

  • Strengths: the self-hosted backend is available in a public repository with Docker or a prebuilt binary, and it works with databases such as Postgres or SQLite.
  • Limits: the licence is the Functional Source License (FSL-1.1-Apache-2.0), which restricts competing uses and converts to Apache-2.0 two years after each version's release. That is source-available, not OSI open source. Its data model is its own, so migration in or out is real work.
  • Pricing (as of 2026-12-05): a Free and Starter tier, Professional at $25 per developer per month, and Business at a $2,500 monthly minimum.

Choose it if you want a TypeScript-native reactive backend and are comfortable with the licence.

Cloudflare D1 with Workers

What it is: A serverless SQLite-based database you call from Cloudflare Workers, with no separate server to run. Best for: small to mid-sized apps already deployed on Cloudflare.

  • Strengths: no egress or bandwidth charges for D1 data, per its pricing page; cheap at small scale.
  • Limits: it is a database, not a Firebase-style bundle. You supply authentication, file storage (for example R2) and your own API code.
  • Pricing (as of 2026-12-05): the free plan gives 5 million rows read and 100,000 rows written per day and 5 GB storage; queries fail after the daily limit until reset. Paid includes 25 billion rows read and 50 million rows written per month, then usage charges.

Choose it if you already ship on Cloudflare. This site's own blog runs on Cloudflare Pages with D1, and the same stack backs some of the systems I build, but D1 is not a drop-in Firestore replacement.

Parse Server

What it is: An open source backend you can run anywhere Node.js runs, with MongoDB or PostgreSQL as the database, under Apache-2.0. Best for: teams with existing Parse apps or who want a long-established, self-hosted option.

  • Strengths: works with MongoDB 6 to 8 and PostgreSQL 13 to 18 per its repository; you can embed it in an Express app.
  • Limits: you run and secure it yourself; there is no vendor-hosted offering on that repository page.
  • Pricing: free; you pay for hosting.

Choose it if you want a self-hosted, community-run backend with a choice of database.

How to choose

  1. Want SQL and a hosted service: Supabase, then Nhost if you prefer GraphQL.
  2. Want one product for most features, self-hostable: Appwrite.
  3. One developer, small app, minimal ops: PocketBase, remembering its pre-1.0 notice.
  4. Already on Cloudflare: D1 with Workers, adding auth and storage yourself.
  5. Want the least chance of lock-in: pick something on Postgres or SQLite and keep your business logic out of vendor-specific rules.
  6. Do not self-host just to save money. Add the time for backups, patching and monitoring before comparing prices.

Switching notes

The hard part is the data model. Firestore documents and security rules do not map one-to-one onto SQL tables and row-level policies. Plan to remodel, export collections to JSON, write an import script, and run both systems side by side before cutting over. Users' passwords usually cannot be copied as plain text between auth systems, so check each vendor's migration documentation for how it handles Firebase users. If you are weighing document databases generally, see MongoDB Atlas alternatives, and for Rust-built options see Rust databases and search engines.

Common questions

What is the best open source alternative to Firebase? Supabase for a SQL backend, Appwrite for the closest all-in-one match, PocketBase for the lightest option.

Is there a free alternative to Firebase? Several have free tiers or can be self-hosted at no licence cost; check current limits.

Can I self-host a Firebase alternative? Yes, for Supabase, Appwrite, Nhost, PocketBase, Parse Server and Convex, and you take on backups and security.

Which Firebase alternative uses SQL? Supabase, Nhost and Cloudflare D1.

Is leaving Firebase worth the effort? Only with a concrete reason such as SQL, self-hosting or cost predictability.

Also useful if you are choosing a place to run the rest of the app: Heroku alternatives.

No affiliate links; none of these vendors paid for a mention.

If you would rather have it built and kept running

If you are a Malaysian SME or small team and want a system built, hosted and kept running by one accountable person, see custom system development and the monthly maintenance contract, which starts from about RM3,000 per month (an estimate, confirmed after a short scoping call). You can reach me from the hire page.