selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Self-hosted alternatives to Firebase

Teams moving off Firebase usually want the same core pieces: a database, user auth, file storage, and realtime updates, without handing their data to a hosted vendor. More about Firebase

--sort
13 projects· by score

Projects

About these Firebase alternatives

The projects on this page are open-source backends you can run yourself, mostly on Docker or on your own servers. Supabase is a self-hosted Postgres platform that covers database, auth, realtime, storage, edge functions and vector embeddings. TrailBase takes a different route, shipping as one Rust executable with SQLite, type-safe REST and realtime APIs, and an admin UI. nhost offers Postgres, Hasura GraphQL APIs, auth, file storage and serverless functions, self-hosted with Docker Compose. Apache CouchDB is a multi-primary syncing database with an HTTP/JSON API, built for reliability.

13 open-source, self-hosted alternatives to Firebase are listed here, ranked by popularity, maintenance and documentation.

Highest rated
supabase (114 991 GitHub stars, Apache-2.0 license, written in Typescript), followed by Appwrite and SpacetimeDB
Docker
8 of the top 12 ship an official Docker image
Easiest to set up
gun
Recently updated
nhost constellation@0.8.0 on 2026-11-13

Firebase alternatives compared

ProjectLicenseLanguageStarsDockerSetupLatest releaseScore
supabaseApache-2.0Typescript114 991YesAdvancedv1.26.0890
AppwriteBSD-3-ClauseTypescript58 078YesModerate2.7.286
SpacetimeDBOtherRust25 546YesModeratev2.15.075
EncoreMPL-2.0Go12 712—Moderatev1.58.969
nhostMITGo9 383YesAdvancedconstellation@0.8.067
gunOtherJavaScript19 159YesEasy0.2019.41367
instantApache-2.0Typescript10 567—Advanced65
TrailBaseOSL-3.0Rust5 758YesModeratev0.35.1263
bkndApache-2.0Typescript3 797—Moderatev0.21.060
FusioApache-2.0PHP2 131YesModeratev7.2.159
AptabaseAGPL-3.0C#1 871YesModerate56
FrostbaseApache-2.0Typescript244—Moderate48