opensourcestartups

> /v1/alternatives/firebase

Open source alternatives to Firebase[012]

Firebase provides a hosted app backend with realtime and document databases, authentication, file storage, push and serverless functions. Below are 12 self-hostable open source alternatives, ranked by GitHub popularity.

// DEVELOPER TOOLS№ 001
PocketBase

PocketBase

GO

Open Source backend in 1 file

★ STARS

58.2k

⑂ FORKS

3.4k

OPEN PROJECT→
// DEVELOPER TOOLS№ 002
Appwrite

Appwrite

TYPESCRIPT

Your backend, minus the hassle

★ STARS

56.0k

⑂ FORKS

5.3k

OPEN PROJECT→
// AUTH & SECURITY№ 003
Ory Hydra

Ory Hydra

GO

OpenID Certified™ OpenID Connect and OAuth Provider written in Go

★ STARS

17.1k

⑂ FORKS

1.5k

OPEN PROJECT→
// DATABASE№ 004
Turso

Turso

C

The Open Contribution Fork of SQLite

★ STARS

16.7k

⑂ FORKS

486

OPEN PROJECT→
// AUTH & SECURITY№ 005
Zitadel

Zitadel

GO

Identity infrastructure, simplified for you.

★ STARS

13.7k

⑂ FORKS

1.1k

OPEN PROJECT→
// DATABASE№ 006
Encore

Encore

GO

Open source framework for building robust type-safe distributed systems with declarative infrastructure

★ STARS

11.9k

⑂ FORKS

573

OPEN PROJECT→
// AI & ML№ 007
Convex

Convex

TYPESCRIPT

The open-source reactive database for app developers

★ STARS

11.5k

⑂ FORKS

706

OPEN PROJECT→
// DATABASE№ 008
Instant

Instant

TYPESCRIPT

Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.

★ STARS

10.2k

⑂ FORKS

351

OPEN PROJECT→
// DATABASE№ 009
NHost

NHost

TYPESCRIPT

The Open Source Firebase Alternative with GraphQL.

★ STARS

9.2k

⑂ FORKS

571

OPEN PROJECT→
// DEVOPS№ 010
Soketi

Soketi

TYPESCRIPT

Next-gen, Pusher-compatible, open-source WebSockets server. Simple, fast, and resilient.

★ STARS

5.6k

⑂ FORKS

356

OPEN PROJECT→
// DATABASE№ 011
Bknd

Bknd

TYPESCRIPT

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

★ STARS

3.7k

⑂ FORKS

146

OPEN PROJECT→
// DATABASE№ 012
undb

undb

TYPESCRIPT

Private first self-hosted no code database & BaaS.

★ STARS

2.9k

⑂ FORKS

148

OPEN PROJECT→

// EDITOR'S TAKE

Appwrite is the closest like-for-like, matching Firebase's auth, storage, functions and realtime APIs with client SDKs for most platforms. PocketBase does the same job in a single Go binary when your scale fits on one machine, and Convex or Instant are the better picks when live-syncing state to clients is the whole point of the app.

// FREQUENTLY ASKED

What is the best open source Firebase alternative?

PocketBase is the most popular open source Firebase alternative by GitHub stars (58,190 stars). The other 11 options are ranked above.

Are these Firebase alternatives self-hostable?

Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.

Are they free?

All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.

// PART OF THESE COLLECTIONS

Best Open Source Firebase Alternatives (12+ projects) | Open Source Startups