product··5 min read·WoWSQL Team

Open-Source Firebase Alternatives You Can Self-Host

Open-source Firebase alternatives to self-host: Supabase, Appwrite, PocketBase, Parse, Nhost and WoWSQL mapped to Firebase features, licences and limits.

The main open-source Firebase alternatives you can self-host are Supabase (Apache-2.0), Appwrite (BSD-3-Clause), PocketBase (MIT), Parse Server (Apache-2.0), Nhost (MIT) and WoWSQL Self-Hosted (Apache-2.0). Appwrite is the closest like-for-like replacement for Firebase's product list, PocketBase is the simplest to run, and Supabase, Nhost and WoWSQL swap Firestore's documents for PostgreSQL. None of them replaces every Firebase service: push messaging, Crashlytics, Analytics and Firestore-style offline sync usually need separate tools.

This guide maps each project to the Firebase products it can replace, with licences, stacks and stated server sizes checked on each project's own site and GitHub on 26 November 2026. If you mainly want the operations view (backups, TLS, upgrades), read our self-hosted BaaS comparison; this page is about replacing Firebase specifically.

Key facts

  • Licences (GitHub, 26 Nov 2026): Supabase Apache-2.0, Appwrite BSD-3-Clause, PocketBase MIT, Parse Server Apache-2.0, Nhost MIT, WoWSQL Apache-2.0.
  • Databases: Supabase, Nhost and WoWSQL use PostgreSQL; Appwrite lets you pick PostgreSQL (default), MariaDB or MongoDB at install; Parse Server runs on MongoDB or PostgreSQL; PocketBase embeds SQLite.
  • Stated minimums: Supabase 4 GB RAM, 2 cores, 40 GB SSD; Appwrite 2 CPU cores, 4 GB RAM, 2 GB swap; WoWSQL Self-Hosted 4 GB RAM; PocketBase is one binary.
  • WoWSQL Self-Hosted (GitHub): Docker Compose, PostgreSQL 18, PostgREST REST API, auth, file storage, realtime and a dashboard; one admin user and one project per install; no backups from WoWSQL, community support only (self-hosted terms).
  • Firebase itself is not open source, and its Local Emulator Suite is for testing, not production hosting.

Which Firebase product does each one replace?

Firebase product Supabase Appwrite PocketBase Parse Server Nhost WoWSQL Self-Hosted
Firestore / Realtime Database Postgres tables + REST API Databases (Postgres, MariaDB or MongoDB) SQLite collections MongoDB or Postgres classes Postgres + Hasura GraphQL Postgres tables + PostgREST REST API
Realtime listeners Yes Yes Yes (subscriptions) Live Query GraphQL subscriptions Yes (WebSocket)
Authentication Yes Yes Yes, 15+ OAuth2 providers Yes Yes Yes (user management, optional RLS)
Cloud Storage Yes Yes Yes Files Yes Yes (buckets)
Cloud Functions Edge Functions Functions No; extend it as a Go or JS framework Cloud Code (Node.js) Functions Not in the self-hosted README
Push, crash reporting, analytics (FCM, Crashlytics, Analytics) No Messaging; no crash reporting No Push via APNs and FCM config No No

Sources, all read on 26 November 2026: Supabase self-hosting and Docker guide, Appwrite self-hosting and installation, PocketBase and FAQ, Parse Server, Nhost, WoWSQL Self-Hosted. Rows marked "No" mean the feature is not part of the project's core; you can usually add a separate service. Check each project's docs for the exact feature set of your version.

The six options

Supabase: the most popular Postgres choice

Apache-2.0, about 115,500 GitHub stars. Self-hosting runs on Docker Compose, with community-maintained Kubernetes options. The docs are candid about the gaps: self-hosted Supabase "runs as a single project", and branching, advanced metrics, managed backups and PITR, analytics and vector buckets, ETL and the Management API are not available. Self-hosted Supabase is community-supported and, per its docs, does not phone home.

Pick it if you want Postgres with the largest ecosystem and the option to move to Supabase's cloud later.

Appwrite: the closest Firebase-style product list

BSD-3-Clause, about 58,600 stars, version 2.7.4 released 19 November 2026. Appwrite says self-hosted instances get "access to the same features found on Appwrite Cloud", installs with a web wizard or a Helm chart, and lets you choose PostgreSQL, MariaDB or MongoDB. Appwrite is also honest about cost: self-hosting "often costs more when factoring in time and expertise".

Pick it if you want databases, auth, storage, functions and messaging in one install, with multiple projects.

PocketBase: one file, small apps

MIT, about 61,600 stars, latest release v0.40.6 (23 October 2026), still pre-1.0. It embeds SQLite, scales only vertically on one server, and has no cloud functions; you extend it as a Go or JavaScript framework instead. Its FAQ says it is "a personal open source project" developed on a volunteer basis with "no promises for maintenance and support".

Pick it if you want the least infrastructure possible for a small or mid-sized app and are comfortable with SQLite.

Parse Server: the original "Firebase-style" backend

Apache-2.0, about 21,400 stars, version 8.6.123 (9 November 2026). Runs on Node.js 20 to 26 with MongoDB 7 or 8, or PostgreSQL 16 to 18 (with PostGIS). Mature, with Cloud Code for server logic, but you assemble more of the stack yourself, including the dashboard.

Pick it if you already know Express and want a long-lived, plugin-friendly Node backend.

Nhost: Postgres with GraphQL

MIT, about 9,400 stars. Postgres with a Hasura GraphQL API, auth, storage and functions. You self-host from the example Docker Compose file; Nhost also sells support agreements and dedicated clusters for self-hosted installs.

Pick it if your frontend is built around GraphQL. Our WoWSQL vs Nhost comparison covers the REST vs GraphQL trade-off.

WoWSQL Self-Hosted: Postgres with a REST API, in one Compose file

Apache-2.0, 42 stars, last pushed 31 October 2026. The self-hosted edition gives you PostgreSQL 18, a PostgREST REST API, auth, file storage (kept in Postgres), realtime over WebSockets and a dashboard behind a Kong gateway, and needs about 4 GB of RAM. Limits to know before you choose it:

  • One admin user and one project per install.
  • No backups from WoWSQL and no SLA: it is provided "AS IS" with community support only.
  • Small community compared with the others on this page.

Pick it if you want a small Postgres + REST stack that matches the hosted WoWSQL API, so you can develop locally or keep data on your own server and still move to hosted WoWSQL later.

Quick start: WoWSQL Self-Hosted

From the project README:

git clone https://github.com/WoWSQL/WoWSQL.git
cd WoWSQL/docker
cp .env.example .env   # set POSTGRES_PASSWORD and a JWT_SECRET of 32+ characters
docker compose pull
docker compose up -d

Open http://localhost:3000, create the admin account, copy the anon key, then call the REST API through the gateway on port 8080:

curl http://localhost:8080/rest/v1/todos \
  -H "apikey: YOUR_ANON_KEY"

Before putting it on the internet, keep Postgres (5432) and Redis (6379) off public interfaces, put TLS in front of the gateway and dashboard, pin image versions, and schedule pg_dump backups. Our self-hosted BaaS comparison walks through those steps.

Moving off Firebase: what is hard

Self-hosting the backend is the easy part. The work is in the migration:

  1. Documents to tables. Firestore collections with nested data need a relational schema if you move to Postgres. Appwrite with MongoDB, or Parse with MongoDB, keep you closer to documents.
  2. Security Rules to RLS or permissions. Rules have to be rewritten as Postgres Row Level Security policies (Supabase, WoWSQL), Hasura permissions (Nhost) or each project's permission model.
  3. Auth users. Export users and plan how passwords and social logins carry over; some users may need to reset passwords.
  4. Offline sync and push. Firestore's offline persistence and FCM are the hardest features to replace. Many teams keep FCM for push notifications even after moving the database.
  5. Run both for a while. Write to the new backend and compare reads before switching off Firebase.

For a step-by-step Postgres move, see How to migrate Firebase to Postgres.

Self-host, or use the open-source project's cloud?

Self-hosting saves the subscription but adds work you will do every month: security patches, backups, monitoring, TLS and upgrades. Supabase, Appwrite, Nhost and WoWSQL all offer a hosted version of the same open-source stack, so a common path is to start hosted and self-host later if data control or cost demands it.

Self-host Hosted WoWSQL
Cost Your server, plus your time Free $0; Pro $25/month; Scale $99/month
Backups You run them Free none; Pro and Scale daily, kept 7 days
Projects One per install Free 1; Pro and Scale include the first dedicated project
Regions Wherever your server is Mumbai (ap-south-1), US East (us-east-1), Frankfurt (eu-central-1)
Support Community Community on Free, email on Pro, priority and SLA on Scale

Sources: WoWSQL pricing, WoWSQL backups, regions from the WoWSQL regions API on 26 November 2026. If Firebase's bill is the reason you are leaving, compare against our Firebase pricing explainer first; at small scale Firebase can be cheaper than any server.

Related guides

FAQ

What is the best open-source alternative to Firebase?

For most teams, Supabase or Appwrite. Supabase gives you Postgres with the largest ecosystem; Appwrite has the closest match to Firebase's product list, including functions and messaging. PocketBase is best for small apps on one server, and WoWSQL Self-Hosted for a compact Postgres + REST stack.

Can I self-host Firebase?

No. Firebase is a Google service and is not open source. The Firebase Local Emulator Suite runs Firestore, Functions and other products locally for testing, but it is not meant for production. To self-host, use an open-source alternative such as Supabase, Appwrite, PocketBase, Parse Server, Nhost or WoWSQL.

Which Firebase alternative runs with Docker?

Supabase, Appwrite, Nhost and WoWSQL Self-Hosted all use Docker Compose; Appwrite also has a Helm chart for Kubernetes. Parse Server can run with Docker or npm, and PocketBase is a single binary that doesn't need Docker.

Which Firebase alternatives have an Apache or MIT licence?

Apache-2.0: Supabase, Parse Server and WoWSQL Self-Hosted. MIT: PocketBase and Nhost. Appwrite uses BSD-3-Clause, which is also permissive. Always read the licence file in the repository for the version you deploy.

How much RAM do I need to self-host a Firebase alternative?

Supabase states a 4 GB RAM, 2-core minimum (8 GB recommended), Appwrite 4 GB RAM plus 2 GB swap and 2 cores, and WoWSQL Self-Hosted 4 GB. PocketBase can run on far less, as a single process with SQLite.

Is there a self-hosted Firebase alternative with Postgres and a REST API?

Yes. Supabase and WoWSQL Self-Hosted both put a PostgREST REST API on PostgreSQL, with auth, storage and realtime. Nhost also uses Postgres but exposes a GraphQL API through Hasura. Parse Server can use PostgreSQL too.

Create a free WoWSQL project · Self-Hosted on GitHub · Docs