Open Source Alternatives to Firebase

Updated 5 December 2026 · 3 alternatives · Backend, Hosting & Auth

Firebase is Google's backend-as-a-service: database, authentication, storage and functions. Here are 3 open source alternatives, all of them self-hostable.
Top pickSupabaseApache-2.0 · ★ 116k
Best self-hostedSupabaseApache-2.0 · ★ 116k
Hosted optionSupabaseApache-2.0 · ★ 116k
Firebase is made byGoogle (Alphabet)Proprietary

Firebase alternatives compared

Project Licence Type Self-host Cloud option GitHub stars
Supabase Apache-2.0 Self-hosted ✓ Yes ✓ Yes ★ 116k
Appwrite BSD-3-Clause Self-hosted ✓ Yes ✓ Yes ★ 58.9k
PocketBase MIT Self-hosted ✓ Yes — —

The 3 open source alternatives to Firebase

1

Supabase

Apache-2.0 · Self-hosted · ★ 116k on GitHub · since 2020

Visit site ↗

Supabase is an open source Firebase alternative built on PostgreSQL: database, authentication, instant APIs, realtime subscriptions, storage, edge functions and vector embeddings. Use the hosted platform or self-host it.

  • Full PostgreSQL database
  • Auth, storage and edge functions
  • Realtime subscriptions
  • Self-host with Docker
Self-hosted Cloud option Source code ↗
2

Appwrite

BSD-3-Clause · Self-hosted · ★ 58.9k on GitHub · since 2019

Visit site ↗

Appwrite is an all-in-one backend with authentication, databases, storage, functions, messaging and static site hosting. SDKs are available for web, Flutter, iOS, Android and server languages.

  • Auth, databases, storage and functions
  • SDKs for web, mobile and server
  • Messaging (email, SMS, push)
  • Self-host with Docker
Self-hosted Cloud option Source code ↗
3

PocketBase

MIT · Self-hosted · since 2022

Visit site ↗

PocketBase is an open source backend in a single executable, with an embedded SQLite database, realtime subscriptions, authentication, file storage and an admin dashboard.

  • Single executable
  • Embedded SQLite with realtime
  • Auth and file storage
  • Extend with Go or JavaScript
Self-hosted Source code ↗

How to choose an open source alternative to Firebase

Check the database model (SQL or document), authentication providers, realtime features, file storage and self-hosting.

If you want your data on your own server, look at Supabase, Appwrite and PocketBase. Don't want to run a server? Supabase and Appwriteoffer an official hosted version.

Not sure where to start? Browse all backend, hosting & auth projects, or see our google alternatives list.

Firebase alternatives: FAQ

What is the best open source alternative to Firebase?

Supabase is the most complete open source alternative to Firebase on our list, followed by Appwrite and PocketBase. The best choice depends on what you need: Check the database model (SQL or document), authentication providers, realtime features, file storage and self-hosting.

Is there a free alternative to Firebase?

Yes. Every alternative listed here is open source, so the software itself is free to use. Some, such as Supabase and Appwrite, also sell an optional hosted version if you don't want to run it yourself.

Can I self-host an alternative to Firebase?

Yes: Supabase, Appwrite and PocketBase can all be installed on your own server, so your data stays on infrastructure you control.

Why switch from Firebase to open source software?

Firebase is proprietary software owned by Google (Alphabet): you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as Apache-2.0, BSD-3-Clause and MIT, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.

Other popular alternatives

Browse 350+ open source alternativesSearch by product, category or licence