Prompt
Firebase alternatives because I don't want vendor lock-in
Latest observation
If you want Firebase-like capabilities without heavy vendor lock-in, look for a stack where the core pieces are open source, self-hostable, and portable across clouds.
Good Firebase alternatives
1) Supabase
Probably the closest Firebase alternative.
- Database: Postgres
- Auth: built in
- Storage: built in
- Realtime: supported
- Edge functions: supported
Pros
- Open source
- Uses Postgres, which is portable
- Easy migration path if you outgrow it
Cons
- Still a hosted platform if you use their managed service
- Some features are ecosystem-specific
Best for: startups and app builders who want Firebase-like speed but less lock-in.
2) Appwrite
Open-source backend server for mobile/web apps.
- Auth
- Databases
- File storage
- Functions
- Realtime
Pros
- Self-hostable
- Good Firebase-style developer experience
- Strong focus on app backends
Cons
- Smaller ecosystem than Firebase
- You manage infrastructure if self-hosted
Best for: teams that want full control and self-hosting options.
3) PocketBase
Very lightweight backend-in-a-box.
- SQLite-based
- Auth
- File storage
- Realtime subscriptions
- Admin UI
Pros
- Super easy to run
- Great for prototypes, MVPs, small apps
- Very low operational overhead
Cons
- Not ideal for large-scale or complex setups
- Fewer enterprise features
Best for: small apps, prototypes, solo devs.
4) Nhost
Built around Postgres + Hasura + auth + storage.
- Open source
- GraphQL-first
- Postgres backend
Pros
- Less lock-in than Firebase
- Strong if you like GraphQL
- Built on open standards
Cons
- More complex than Supabase for some use cases
- GraphQL may not suit everyone
Best for: GraphQL-heavy apps needing backend services.
5) Parse Platform
One of the original Firebase alternatives.
- Open source
- Auth
- Database
- Push notifications
- File storage
Pros
- Mature
- Self-hostable
- Broad community history
Cons
- Developer experience feels older compared with newer tools
- Less trendy ecosystem
Best for: teams that value maturity and openness over polish.
If you want the least lock-in
A good approach is to assemble your own portable stack:
- Auth: Auth.js, Keycloak, Zitadel, Ory
- Database: PostgreSQL
- Realtime: Postgres logical replication, Socket.IO, Ably/Pusher alternatives, Supabase Realtime-like services
- Storage: S3-compatible storage like MinIO
- Functions: Cloud Run, Fly.io, Kubernetes, serverless on open platforms
This gives you more flexibility and makes migration easier.
Practical recommendation
If you want the closest replacement to Firebase with less lock-in:
- Best overall: Supabase
- Best self-hosted app backend: Appwrite
- Best lightweight option: PocketBase
- Best for full control: Postgres + Auth.js/Keycloak + S3-compatible storage
If you want, I can also give you:
- a Firebase vs Supabase vs Appwrite comparison, or
- a self-hosted stack recommendation based on your app type.