Alternatives / Firebase

14 Best Open Source Firebase Alternatives in 2026

Looking for an open source Firebase alternative? We compared 14 open source backends, databases, authentication systems, and realtime tools by license, self-hosting, features, and pricing. Only a few are full backend-as-a-service platforms like Firebase, and the rest cover one part of it, such as the database, authentication, or realtime messaging.

Maxime DERAME's profile

Written by Maxime DERAME

Last updated:

Best Firebase alternatives at a glance

AlternativeBest forLicense
SupabaseClosest full backend, built on PostgresApache-2.0
PocketBaseSingle-binary backend with SQLiteMIT
AppwriteFull backend with hosting and functionsBSD-3-Clause
TursoEmbedded and per-tenant SQLite databasesMIT
ZITADELIdentity and multi-tenant loginAGPL-3.0 with limited directory exceptions
ConvexReactive TypeScript backend (source available)FSL-1.1-Apache-2.0 (source available)
OryModular identity and accessApache-2.0 core
EncoreBackends with infrastructure from codeMPL-2.0
InstantRealtime and offline-first appsApache-2.0
NhostPostgres and GraphQL backendMIT
BkndLightweight embedded backendApache-2.0
SoketiPusher-compatible WebSocketsAGPL-3.0
undbNo-code database with APIsAGPL-3.0
NitricMulti-cloud infrastructure from codeApache-2.0

How we chose these Firebase alternatives

We looked for open-source projects that replace part or all of what Firebase offers: a database, authentication, file storage, serverless functions, and realtime sync. We verified each project's license, recent activity, stars, and self-hosting in its repository. Firebase is one bundled product, so we separate full backend platforms from tools that cover a single piece, and we flag source-available licenses and projects with slow maintenance. See our methodology for the full criteria.

Important: only a few are full Firebase replacements

Supabase, Appwrite, PocketBase, Nhost, and Convex are full backend platforms with a database and authentication, and most add storage and functions. Turso and undb are databases, Zitadel and Ory handle identity, Soketi handles realtime messaging, and Encore and Nitric are frameworks that provision cloud infrastructure from code. Instant and Bknd are lighter backends aimed at JavaScript applications.

Closest to Firebase

Supabase is the closest: a Postgres database with authentication, auto-generated APIs, realtime subscriptions, storage, edge functions, and vector search. Appwrite is the nearest to Firebase's all-in-one console, adding hosting and messaging, and PocketBase is the simplest option, shipping as one executable with embedded SQLite.

Important: Convex is source available

Convex is licensed under the Functional Source License (FSL-1.1-Apache-2.0), which restricts competing commercial use and converts to Apache-2.0 after two years. It can be self-hosted, but it is not an OSI open-source license, so check the terms before building a product on it.

License details

Supabase, Instant, Bknd, Ory (core), and Nitric are Apache-2.0. PocketBase, Nhost, and Turso are MIT, and Appwrite is BSD-3-Clause. Encore is MPL-2.0, and Zitadel, Soketi, and undb are AGPL-3.0, so modified network deployments must share their source. Ory has some enterprise features under commercial terms.

Migrating from Firestore

Firebase uses a document database, while Supabase, Nhost, and Turso use SQL, so moving data means redesigning your schema and queries. PocketBase and Appwrite offer document-style collections that map more easily, and Convex and Instant keep a reactive, client-synced model similar to Firestore listeners.

Maintenance status

Most projects were updated within weeks of this update. Ory and Nitric are slower, with last commits in July 2026 and February 2026, and Soketi has had no release since March 2024 and no commit since March 2025, so check it before relying on it in production.

Why look for a Firebase alternative?

Firebase is a proprietary Google service with usage-based pricing that can grow quickly, a NoSQL data model that is hard to move away from, and no way to self-host it. Open-source alternatives let you run the backend on your own servers or any cloud, use SQL databases, avoid lock-in, and control costs, at the cost of operating the stack yourself or paying for a managed version.

#1

Supabase

Open-source Postgres development platform.

Supabase is an open-source backend platform built on Postgres, with authentication, auto-generated REST and GraphQL APIs, realtime subscriptions, file storage, edge functions, and vector search, and a dashboard for managing it all. It is Apache-2.0 and can be self-hosted with Docker, with the hosted Supabase platform offered as a paid service.

111K15.6KApache-2.0Self-hosted

Pricing: Free self-hosted; hosted plans have a free tier and paid plans.

  • Postgres with auth, storage, realtime, and edge functions
  • Very large community and ecosystem
  • Self-hosting with Docker
  • Requires SQL and Postgres knowledge
  • Self-hosting the full stack takes infrastructure work
#2

PocketBase

Lightweight single-binary backend with SQLite, auth, storage, and realtime.

PocketBase is an MIT backend packaged as a single executable with embedded SQLite, authentication, file storage, realtime subscriptions, an admin dashboard, REST APIs, hooks, and custom routes.

61.3K3.7KMITSelf-hosted

Pricing: Free and self-hostable under MIT.

  • Single executable
  • Extremely simple deployment
  • Auth, storage, realtime, REST, and admin UI
  • SQLite rather than PostgreSQL
  • Less suited to distributed workloads
  • Pre-1.0 compatibility can change
#3

Appwrite

Open-source backend platform with hosting and serverless functions

BSD-3-Clause application platform combining web hosting and serverless functions with databases, authentication, object storage, realtime APIs, messaging, and SDKs. It can be self-hosted with Docker or used as a managed cloud service; its role is broader and more backend-oriented than Vercel's frontend deployment focus.

57.6K5.8KBSD-3-ClauseSelf-hosted

Pricing: Open-source self-hosted platform and managed cloud service.

  • Web hosting and serverless functions
  • Databases, authentication, storage, messaging, and realtime APIs
  • SDKs, Docker-based self-hosting, and managed cloud
  • Broader and more backend-oriented than a deployment platform
  • Heavier infrastructure than a frontend-only workflow
  • Does not replace Vercel's global edge network
#4

Turso

SQLite-compatible database written in Rust.

Turso is an in-process SQL database written in Rust and compatible with SQLite, with a Postgres frontend now available as an experimental feature. It targets embedded, on-device, and multi-tenant use, with bindings for Rust, JavaScript, Python, Java, and .NET, and a managed Turso Cloud. It is a database only: it does not include authentication, storage, or functions.

24.5K1.4KMITSelf-hosted

Pricing: Free and open source; Turso Cloud plans are paid.

  • SQLite-compatible with modern language bindings
  • Good fit for on-device and per-tenant databases
  • MIT license
  • A database only, with no auth, storage, or functions
  • Postgres support is experimental
#5

ZITADEL

Identity infrastructure for SaaS and B2B applications

AGPL-3.0 identity platform with limited directory exceptions, providing OIDC, OAuth2, SAML, SCIM, MFA, passkeys, organizations, multi-tenancy, audit logs, roles, APIs, managed cloud, and self-hosting.

15.2K1.3KAGPL-3.0 with limited directory exceptionsSelf-hosted

Pricing: Managed cloud and self-hosted deployment options.

  • OIDC, OAuth2, SAML, and SCIM
  • Passkeys, MFA, organizations, multi-tenancy, and audit logs
  • API-first B2B SaaS fit with hosted cloud and self-hosting
  • More complex than lightweight authentication libraries
  • AGPL terms require consideration for modified network deployments
  • Smaller integration ecosystem than Auth0
#6

Ory

Modular open-source identity and access infrastructure

Apache-2.0 core identity stack including Kratos for identity and authentication, Hydra for OAuth2/OIDC, and Keto for authorization. Provides headless APIs, passkeys, social login, MFA, cloud-native deployment, Kubernetes support, and self-hosting; some enterprise features use commercial agreements.

13.9K1.2KApache-2.0 coreSelf-hosted

Pricing: Self-hosted open-source components and managed services; enterprise features are commercial.

  • Modular components for authentication, OAuth/OIDC, and authorization
  • Apache-2.0 core with passkeys, social login, MFA, and headless APIs
  • Cloud-native and Kubernetes-friendly with self-hosting
  • Requires more architecture decisions
  • Multiple components may be needed
  • Enterprise functionality is separately licensed and less turnkey than Auth0
#7

Convex

Reactive database and backend for app developers.

Convex is a reactive database and backend where queries and server functions are written in TypeScript and clients stay in sync automatically, with built-in authentication integrations, scheduled functions, file storage, and vector search. The backend is source available under the Functional Source License (FSL-1.1-Apache-2.0), which converts to Apache-2.0 after two years, and it can be self-hosted with a dashboard and CLI.

12.6K824FSL-1.1-Apache-2.0 (source available)Self-hosted

Pricing: Free self-hosted; Convex Cloud has a free tier and paid plans.

  • TypeScript-first reactive queries that sync in real time
  • Self-hosting with the dashboard and CLI
  • Functions, cron jobs, storage, and vector search
  • Source available (FSL), not standard open source
  • Proprietary data model that is harder to migrate away from than SQL
#8

Encore

Backend framework with infrastructure provisioned from code.

Encore is an open-source backend framework for Go and TypeScript that provisions infrastructure from your code: you declare APIs, databases, queues, cron jobs, and secrets, and Encore runs them locally and deploys them to AWS, GCP, or Azure, with distributed tracing and a local dashboard. The framework is MPL-2.0, and Encore Cloud is a paid managed option.

12.4K627MPL-2.0Self-hosted

Pricing: Free and open source; Encore Cloud plans are paid, plus your cloud costs.

  • Infrastructure from code for AWS, GCP, and Azure
  • Built-in tracing, a local dashboard, and API docs
  • Go and TypeScript support
  • Code-first framework rather than a ready-made BaaS
  • No built-in hosted auth or database admin like Firebase
#9

Instant

Realtime backend for multiplayer and collaborative applications.

Instant is an Apache-2.0 realtime backend with a reactive database, authentication, permissions, file storage, presence, streams, offline caching, optimistic updates, and relational queries.

10.5K415Apache-2.0Self-hosted

Pricing: Free and self-hostable under Apache-2.0; hosted services may be paid.

  • Realtime by default
  • Auth, permissions, storage, presence, and offline caching
  • Strong multiplayer model
  • Different data model from PostgreSQL
  • Younger ecosystem
  • Less suitable for traditional SQL-heavy apps
#10

Nhost

PostgreSQL and GraphQL backend-as-a-service.

Nhost is an MIT backend platform combining PostgreSQL, Hasura GraphQL, authentication, file storage, serverless functions, and realtime subscriptions.

9.3K630MITSelf-hosted

Pricing: Open source and self-hostable under MIT; hosted plans may be paid.

  • PostgreSQL
  • GraphQL, auth, storage, functions, and realtime
  • Local development and frontend integrations
  • GraphQL-first rather than PostgREST
  • Smaller community than Supabase
  • Different migration workflow
#11

Soketi

Pusher-compatible WebSockets server.

Soketi is an open-source WebSockets server compatible with the Pusher protocol, with public, private, presence, and encrypted channels, webhooks, and horizontal scaling through Redis or NATS. It only covers the realtime messaging part of Firebase. Its last release was 1.6.1 in March 2024 and its last commit in March 2025, and the maintainer notes that maintenance time is limited.

5.6K365AGPL-3.0Self-hosted

Pricing: Free and open source; sponsorship supports development.

  • Drop-in Pusher-compatible API
  • Presence and private channels with webhooks
  • Self-hosted and scalable with Redis
  • Realtime messaging only, with no database or auth
  • Development has slowed, with the last commit in March 2025
  • AGPL-3.0 license
#12

Bknd

Embedded lightweight backend for modern JavaScript applications.

Bknd is an Apache-2.0 embedded backend providing database, authentication, storage, media handling, APIs, workflows, Postgres/SQLite support, and S3-compatible storage inside JavaScript frameworks.

3.8K144Apache-2.0Self-hosted

Pricing: Free and open source under Apache-2.0; hosted services may be offered separately.

  • Lightweight and framework-agnostic
  • Auth, database, storage, and workflows
  • Edge-compatible and embeddable
  • Younger project
  • Smaller ecosystem
  • Pre-1.0 API changes are possible
#13

undb

Privacy-focused self-hosted no-code database and backend

AGPL-3.0 database and backend platform with grid, Kanban, gallery, and form views, type-safe APIs, and Docker deployment.

3K156AGPL-3.0Self-hosted

Pricing: Open-source and self-hosted; Docker deployment is available.

  • Privacy-first self-hosting
  • Multiple views and automatic type-safe APIs
  • Can act as a backend-as-a-service
  • Smaller community and integration ecosystem
  • Younger and less mature than Baserow or NocoDB
#14

Nitric

Open-source multi-cloud infrastructure-from-code framework.

Nitric is an Apache-2.0 cloud application framework where developers declare APIs, databases, queues, topics, secrets, and storage in code while provider plugins handle provisioning.

2K122Apache-2.0Self-hosted

Pricing: Free and open source under Apache-2.0; cloud-provider costs apply.

  • Multi-cloud
  • Infrastructure from code
  • APIs, databases, storage, queues, and local development
  • Not a hosted BaaS
  • Requires backend development
  • No Supabase-style admin database

Compare Firebase alternatives

AlternativeTypeLicenseSelf-hostedBest for
SupabaseFull BaaS (Postgres)Apache-2.0YesFull-stack apps
PocketBaseSingle-binary BaaSMITYesSmall projects
AppwriteFull BaaSBSD-3-ClauseYesWeb and mobile apps
TursoDatabaseMITYesEmbedded databases
ZITADELIdentityAGPL-3.0YesB2B login and SSO
ConvexReactive BaaSFSL-1.1-Apache-2.0YesTypeScript apps
OryIdentityApache-2.0 coreYesModular auth
EncoreBackend frameworkMPL-2.0YesGo and TypeScript backends
InstantRealtime BaaSApache-2.0YesOffline-first apps
NhostBaaS (Postgres, GraphQL)MITYesGraphQL apps
BkndEmbedded BaaSApache-2.0YesJavaScript frameworks
SoketiWebSockets serverAGPL-3.0YesRealtime messaging
undbNo-code databaseAGPL-3.0YesAirtable-style backends
NitricInfrastructure frameworkApache-2.0YesMulti-cloud apps

Which one should you choose?

Want the closest open-source Firebase replacement

Supabase offers Postgres, authentication, auto-generated APIs, realtime, storage, edge functions, and vector search, self-hosted or in its cloud.

Supabase

Want the simplest self-hosted backend

PocketBase is one MIT-licensed executable with embedded SQLite, authentication, file storage, and realtime subscriptions.

PocketBase

Want an all-in-one console with hosting

Appwrite covers databases, authentication, storage, functions, messaging, and hosting under BSD-3-Clause.

Appwrite

Want real-time sync with TypeScript

Convex keeps clients in sync with reactive queries, but it is source available under the FSL rather than standard open source.

Convex

Want realtime and offline-first apps

Instant is an Apache-2.0 realtime backend with a reactive database, permissions, presence, and offline support.

Instant

Want a Postgres and GraphQL backend

Nhost combines PostgreSQL, Hasura GraphQL, authentication, storage, and serverless functions under MIT.

Nhost

Need identity only, with enterprise features

Zitadel offers OIDC, SAML, SCIM, MFA, passkeys, and multi-tenancy, but it is AGPL-3.0.

ZITADEL

Want modular authentication components

Ory provides Kratos for identity, Hydra for OAuth2, and Keto for permissions, with an Apache-2.0 core.

Ory

Want per-tenant or on-device databases

Turso is a SQLite-compatible database in Rust, but it does not include authentication or storage.

Turso

Want infrastructure provisioned from code

Encore provisions databases, queues, and cron jobs on AWS, GCP, or Azure from Go or TypeScript code.

Encore