9 Best Open Source Alternatives to Firebase

Updated July 2026

Firebase is not a single product but a bundle of services - authentication, a realtime database, storage, functions, hosting, and push messaging - wired together behind Google's SDKs. That convenience is also the lock-in: your data model, security rules, and client code are all written against proprietary APIs, so outgrowing any one piece can mean a rewrite rather than a config change. Open source alternatives tend to replace Firebase one service at a time rather than as a single suite, which is really a kind of freedom: you assemble the pieces you need on infrastructure you control, keep your data in standard databases and portable formats, and swap any single component later without the whole stack holding it hostage.

Strapi logo

1.Strapi

72.4kOtherTypeScript Self-host
Strapi screenshot

Strapi is a self-hosted headless CMS where you design content structures visually in the Content-Type Builder and it generates REST and GraphQL APIs for each type automatically. The same content can be delivered to any frontend, mobile app, or IoT device, and editors work in a friendly admin interface rather than in code.

  • Visual Content-Type Builder, no code required
  • Auto-generated REST and GraphQL APIs per content type
  • Granular roles and permissions
  • Media library, internationalization, and draft and publish
Coolify logo

2.Coolify

57kApache-2.0PHP Self-host
Coolify screenshot

Coolify is a self-hostable PaaS for deploying static sites, full-stack applications, databases, and services to servers you own. It brings the convenience of a hosted deployment platform to your own VPS, bare metal, or Raspberry Pi hardware.

  • Manage servers, applications, and databases over SSH
  • Deploy static sites, databases, and full-stack applications
  • Manage VPS, bare metal, Raspberry Pi, and other servers
  • 280+ one-click services
Directus logo

3.Directus

36kOtherTypeScript Self-host
Directus screenshot

Directus points at a new or existing SQL database and layers instant REST and GraphQL APIs, authentication, and a content app on top, with no schema migration required. The same data can be edited in the admin app, queried from a frontend, or driven by automation, so one database backs websites, apps, and internal tools at once.

  • Instant REST and GraphQL APIs over SQL databases
  • Connects to new or existing databases without migration
  • No-code Vue.js admin app for content editing
  • Authentication, roles, and permissions
SuperTokens logo

4.SuperTokens

15.1kOtherJava Self-host
SuperTokens screenshot

SuperTokens is an open-core authentication provider for adding login and session management to applications. It is positioned as an alternative to proprietary login providers like Auth0 and AWS Cognito, with on-premises deployment so user data stays in your own database.

  • Passwordless, social, email password, and phone password login
  • Session management with signout and session refresh APIs
  • Multi-factor authentication, user roles, and microservice auth
  • Multi-tenancy and organization support for Enterprise SSO
Kubero logo

5.Kubero

4.3kGPL-3.0TypeScript Self-host
Kubero screenshot

Kubero is a free, open-source, self-hosted PaaS for deploying applications on Kubernetes without specialized Kubernetes knowledge. It follows 12-factor app principles and runs apps from existing containers or source code, giving developers a Heroku-style workflow on a cluster they operate.

  • Deploy containers or source code apps to Kubernetes
  • Docker deployments without Helm charts
  • CI/CD pipelines with up to 4 staging environments
  • GitOps review apps for pull requests
Laudspeaker logo

6.Laudspeaker

2.6kOtherTypeScript Self-host
Laudspeaker screenshot

Laudspeaker is an open source customer engagement, product onboarding, and adoption platform. It helps teams design event-triggered messaging flows for onboarding and re-engagement across push, email, SMS, webhooks, and more. It is an alternative to Braze, OneSignal, Customer.io, Firebase Cloud Messaging, Appcues, and Pendo.

  • Visual journey builder for event-triggered workflows
  • Segments by user attributes, actions, and campaign interactions
  • Push, email, SMS, webhook, and more messaging channels
  • A/B tests and Liquid templating in user journeys
Magistrala logo

7.Magistrala

2.6kApache-2.0Go Self-host
Magistrala screenshot

Magistrala is an IoT platform framework that gives engineers a single control plane for devices, users, and data. Rather than stitching together a broker, an auth layer, and a rule engine, you get a coherent system with one consistent model for identity, messaging, and observability.

  • Native MQTT, HTTP, WebSocket, and CoAP connectivity
  • Device provisioning and channel-based message control
  • ABAC and RBAC with multi-tenant domains and access tokens
  • Rules engine with alarms, triggers, and scheduled actions
Medplum logo

8.Medplum

2.4kApache-2.0TypeScript Self-host
Medplum screenshot

Medplum is a developer platform for building healthcare apps. It bundles identity, clinical data storage, a FHIR API, a web app, server-side logic, SDKs, and React components for teams shipping clinical software.

  • FHIR-based API for clinical data
  • Auth with OAuth, OpenID, and SMART-on-FHIR
  • Clinical Data Repository backend
  • Web app for viewing and editing records
Kuzzle logo

9.Kuzzle

1.6kApache-2.0JavaScript Self-host
Kuzzle screenshot

Kuzzle is a ready-to-run backend for IoT networks, web, and mobile apps. Instead of rebuilding the same plumbing for every project, you get authentication, data storage, search, and real-time messaging out of the box and extend them with your own business logic.

  • Multi-protocol API over MQTT, WebSocket, and HTTP
  • Persisted data in Elasticsearch with advanced search
  • Real-time engine with pub/sub and database subscriptions
  • Built-in authentication, roles, and security rules

Our picks

No single tool is a Firebase drop-in, so these picks split by the piece you need to replace first: authentication, messaging, and the data layer.

Best for replacing Firebase Authentication: SuperTokens SuperTokens moves login, sessions, and multi-factor authentication onto your own database, so user data never sits inside a managed identity service the way it does with Firebase Authentication. It ships frontend and backend SDKs for common stacks like Node, Go, Python, and React, with passwordless, social, and email or phone login. For a team whose main Firebase dependency is auth, it is the most self-contained piece to lift out first.

Best for Firebase Cloud Messaging and engagement: Laudspeaker Laudspeaker rebuilds the messaging and engagement side of Firebase as a visual journey builder, targeting users by attributes and past actions across push, email, SMS, and webhooks. Liquid templating and external API calls handle personalization, and it runs self-hosted or on its own cloud. It fits when your Firebase use is really onboarding and re-engagement flows rather than raw data storage.

Best for replacing the database layer: Directus Directus points at a new or existing SQL database and wraps it in instant REST and GraphQL APIs, an authentication layer, and a no-code admin app, without forcing a schema migration. It is the closest thing here to a general Firebase-style backend for the data layer, keeping your tables in a standard database like PostgreSQL or MySQL that you can query and move freely.

Replacing Firebase service by service

Firebase's real hold on a project is that clients talk to it directly: screens subscribe to database paths, read auth claims, call functions, and load files straight from Google's SDKs. A few tools here bundle several of those jobs at once - Kuzzle pairs authentication, data storage, search, and realtime messaging, and Directus wraps a SQL database in instant REST and GraphQL APIs with auth and an admin app - but none matches Firebase's full spread behind a single SDK, so the honest plan is still to map which services you actually depend on and replace them piece by piece. Authentication is usually the first and most self-contained piece to move, and SuperTokens targets exactly that - login, sessions, and multi-factor handling that run against your own database instead of a managed identity service.

The messaging and engagement side is a separate project. If your Firebase use leans on Cloud Messaging for onboarding, push, or re-engagement flows, Laudspeaker rebuilds that as a visual journey builder with segmentation across push, email, SMS, and webhooks. Auth and messaging still leave Firebase's database and hosting uncovered, but other tools here fill those in: Directus and Kuzzle stand in for the data layer, with Kuzzle adding realtime pub/sub, while Coolify and Kubero handle self-hosted deployment. Be realistic that a full exit usually means combining several of these rather than finding a single drop-in.

Plan the cutover around behavior, not exports. Auth records can often keep their user IDs, which matters when clients or URLs reference them, but password hashes may not be portable, so budget for a staged reset or a reauthentication flow that does not lock people out. Rewrite security rules as server-side authorization, run the old and new services side by side, and check read parity from your real mobile and web clients before you redirect any traffic.

Related alternatives

Frequently asked questions

Can open source tools replace all of Firebase, or just parts?+

Usually parts, though some come closer than others. Firebase bundles authentication, database, storage, functions, hosting, and messaging. SuperTokens covers login and sessions, Laudspeaker covers messaging, while Directus and Kuzzle act as broader backends - Directus wraps a SQL database in instant APIs, and Kuzzle adds auth, storage, search, and realtime pub/sub together. A full exit still usually means combining a few of these rather than one identical drop-in.

How do I move users off Firebase Authentication?+

Export your user records first - emails, phone numbers, provider links, metadata, disabled status, and custom claims. Most user IDs can be preserved if the new system accepts imported identifiers, which matters when clients or URLs reference them. Passwords are the sticking point: if the new auth cannot verify Firebase-compatible hashes, plan a staged reset or magic-link flow so no one is locked out. SuperTokens runs auth against your own database, so records stay yours afterward.

What happens to Firebase security rules when I switch?+

They do not port directly. Firebase security rules are a policy language tied to its data access model, so in a migration they become server-side authorization checks or database row policies. Do not translate them line by line. Use the move to write tests for each role, resource type, and ownership rule, then compare the new behavior against what your live Firebase app actually allows and denies.

Which Firebase features are hardest to replace with open source?+

The ones where Firebase blends backend logic into the client: realtime listeners, offline writes, security rules, auth claims, and function triggers. A plain database swap does not recreate those behaviors. You have to reimplement permission checks, event handling, and conflict resolution, then test them from the actual apps, because these edge cases affect user trust more than which database you land on.

Does moving off Firebase mean giving up push notifications?+

No, but only part of it moves. Delivery to phones still runs through the platform push networks whether or not your server is open source. What you replace is the orchestration Firebase Cloud Messaging did: device token storage, topic logic, templates, and scheduling. Laudspeaker handles that side with push, email, SMS, and webhook journeys. Refresh device tokens during the move, since stale tokens make delivery metrics misleading afterward.

Do I have to self-host these Firebase alternatives?+

SuperTokens is built to run on-premises with your own database, which is the main reason teams pick it over a managed identity provider - user data never leaves your infrastructure. Laudspeaker can be self-hosted or used as a hosted cloud service. Self-hosting gives you full control over data residency and backups, but it also makes updates, uptime, and monitoring your responsibility, so assign an owner before you commit.