
RxDB
Local-first reactive NoSQL database for JavaScript
Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.
Firebase Realtime Database by Google is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Firebase Realtime Database is Supabase, with 115.6k GitHub stars. Other open-source alternatives to Firebase Realtime Database are RxDB. Most Firebase Realtime Database alternatives here are Frameworks & Platforms tools, some are Databases. The first 1 say in their own README or website that they can replace Firebase Realtime Database (the quote is shown under each one); the other 1 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Local-first reactive NoSQL database for JavaScript
Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.
“exedDB, React IndexedDB, Optimistic UI, local database, React Native Encryption, Vue Database, jQuery Database, Vue IndexedDB, Firestore Alternative, Firebase Realtime Database Alternative, Ionic Storage, Electron SQLite, SQLite Sync, TanStack DB Offline, DDIL Database”
These projects don't call themselves a Firebase Realtime Database alternative, but two independent checks of their own description found they do the same main job.

Open-source Postgres platform with auth, APIs, and storage
Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.
“Build production-grade applications with a Postgres database, Authentication, instant APIs, Realtime, Functions, Storage and Vector embeddings. Start for free.”
Yes. 2 open-source projects can replace Firebase Realtime Database, for example Supabase and RxDB. 1 of them says so in its own documentation; the other 1 do the same job.
Supabase (115.6k GitHub stars) is the most popular open-source alternative to Firebase Realtime Database on GitHub. To run it on your own server, look at Supabase (self-hostable). The best choice depends on your needs: compare them side by side, for example Supabase vs RxDB.
All of the 2 projects listed here are free to use under an open-source license, with no license fee: all permissive (such as Apache-2.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.