# Nhost vs Firebase: Postgres vs NoSQL, pricing and self-hosting

> Nhost is an open-source backend built on a dedicated Postgres database with an auto-generated GraphQL API, and you can self-host it. Firebase, backed by…

Canonical: https://versuscraft.xyz/p/nhost-vs-firebase
Published: 2026-11-21
Last verified: 2026-11-21

_Last verified: 21 November 2026_

Nhost is an open-source backend built on a dedicated Postgres database with an auto-generated GraphQL API, and you can self-host it. ([Nhost docs](https://nhost.io/product/auth), [Nhost pricing](https://nhost.io/pricing)) Firebase, backed by Google, keeps app data in Firestore, a NoSQL document database. ([Firebase docs](https://firebase.google.com/?hl=en), [Firebase docs](https://firebase.google.com/products/firestore?hl=en)) Pick Nhost if you want relational data, root SQL access and plans with included allowances, starting at $25/mo for Pro. ([Nhost docs](https://nhost.io/product/database), [Nhost pricing](https://nhost.io/pricing)) Pick Firebase if you ship mobile apps that need offline sync and want a free tier with no payment method needed. ([Firebase docs](https://firebase.google.com/products/firestore?hl=en), [Firebase pricing](https://firebase.google.com/pricing?hl=en))

## Key takeaways

- The data model is the real split: Nhost gives you Postgres with psql access as a root user, while Firestore stores documents in collections. ([Nhost docs](https://nhost.io/product/database), [Firebase docs](https://firebase.google.com/docs/firestore?hl=en))
- Nhost Pro starts at $25/mo with 10 GB database and $15 in compute credits; Firebase's Blaze plan bills at the rate of the underlying Google Cloud infrastructure. ([Nhost pricing](https://nhost.io/pricing), [Firebase pricing](https://firebase.google.com/pricing?hl=en))
- On the free tiers, Nhost Starter pauses a project after 1 week of inactivity, while Firebase's Spark plan leaves out Cloud Functions and Cloud Storage. ([Nhost pricing](https://nhost.io/pricing), [Firebase pricing](https://firebase.google.com/pricing?hl=en))
- Self-hosting is free with Nhost's community edition on Docker Compose; Firebase says its emulators are not appropriate for production. ([Nhost docs](https://docs.nhost.io/platform/self-hosting/community), [Firebase docs](https://firebase.google.com/docs/emulator-suite?hl=en))

## At a glance

| | Nhost | Firebase |
| --- | --- | --- |
| Database | Dedicated Postgres instance | NoSQL document database (Firestore) |
| Main API | Auto-generated GraphQL API | Native SDKs plus REST and RPC |
| Free tier | Starter, Free forever | Spark, No payment method needed |
| Entry paid plan | Pro, from $25/mo | Blaze, Pay as you go |
| Free database storage | 1 GB database | 1 GiB total |
| Free egress | 5 GB egress | 10 GiB/month |
| Auth users on free tier | Unlimited total users | 50K MAUs with Identity Platform |
| Functions on free tier | 10 seconds timeout | Not on Spark |
| Self-hosting | Community edition, Docker Compose | Emulators only, not for production |
| Compliance | SOC 2 Type II on Team | ISO 27001 and SOC 1, SOC 2, and SOC 3 |

## Postgres and GraphQL vs Firestore documents

Nhost gives each project its own Postgres instance and generates a GraphQL API from your schema, including realtime subscriptions. ([Nhost pricing](https://nhost.io/pricing), [Nhost docs](https://nhost.io/product/graphql)) You can connect with psql as a root user and install extensions such as PostGIS or pgvector. ([Nhost docs](https://nhost.io/product/database))

Firestore is a NoSQL document database: documents live in collections and can hold nested objects and subcollections. ([Firebase docs](https://firebase.google.com/products/firestore?hl=en), [Firebase docs](https://firebase.google.com/docs/firestore?hl=en)) It offers multi-region replication and ACID transactions, and its Enterprise edition accepts existing MongoDB code and drivers. ([Firebase docs](https://firebase.google.com/docs/firestore?hl=en)) Offline mode works on iOS, Android and the web. ([Firebase docs](https://firebase.google.com/products/firestore?hl=en))

## Nhost vs Firebase pricing: fixed plans or pay as you go

Nhost sells plans with included allowances. Pro starts at $25/mo and Team at $599/mo. ([Nhost pricing](https://nhost.io/pricing)) Pro includes $15 in compute credits, 10 GB database, 50 GB storage and 50 GB egress. ([Nhost pricing](https://nhost.io/pricing)) On the paid plans, usage past the included amounts costs $0.20 per GB for the database, $0.05 per GB for file storage and $0.10 per GB for egress. ([Nhost pricing](https://nhost.io/pricing)) Nhost never stops a project that goes over its limits; it bills the excess. ([Nhost pricing](https://nhost.io/pricing))

Firebase's Blaze plan is Pay as you go and keeps the Spark plan's no-cost usage, with unit costs billed at Google Cloud rates. ([Firebase pricing](https://firebase.google.com/pricing?hl=en)) Eligible accounts get $300 in free credit. ([Firebase pricing](https://firebase.google.com/pricing?hl=en)) Cloud Functions invocations are free up to 2M/month, then $0.40/million. ([Firebase pricing](https://firebase.google.com/pricing?hl=en)) Past the free quota, Firestore's rows on Firebase's pricing page point to Google Cloud pricing instead of listing a rate. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))

## Free tier limits that bite

Nhost Starter (Free forever) comes with 1 GB database, 1 GB storage and 5 GB egress. ([Nhost pricing](https://nhost.io/pricing)) It allows one active project, pauses it after 1 week of inactivity, and times out functions after 10 seconds. ([Nhost pricing](https://nhost.io/pricing), [Nhost limits](https://docs.nhost.io/products/functions/limits)) Nhost doesn't cap total auth users on any plan. ([Nhost pricing](https://nhost.io/pricing))

Firebase's Spark plan gives Firestore 1 GiB total, 50K reads/day, 20K writes/day and 10 GiB/month. ([Firebase pricing](https://firebase.google.com/pricing?hl=en)) Cloud Functions and Cloud Storage are not available on Spark, and Realtime Database allows 100 simultaneous connections there. ([Firebase pricing](https://firebase.google.com/pricing?hl=en)) Auth with Identity Platform on Spark covers 50K MAUs, but SAML or OIDC sign-ins stop at 50 MAUs. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))

## Auth, functions and SDKs

Nhost Auth supports email and password, social logins, passwordless and WebAuthn, and stores users in your own database. ([Nhost docs](https://nhost.io/product/auth)) Firebase Authentication supports email and password, phone auth, Google, Apple, X, Facebook and GitHub, plus the open-source FirebaseUI. ([Firebase docs](https://firebase.google.com/products/auth?hl=en))

Nhost functions are JavaScript or TypeScript, and libraries that rely on native addons will not work; Nhost points to Nhost Run for those. ([Nhost docs](https://nhost.io/product/functions), [Nhost limits](https://docs.nhost.io/products/functions/limits)) Cloud Functions for Firebase run JavaScript and Python and can trigger on database changes or new Auth sign-ups. ([Firebase docs](https://firebase.google.com/products/functions?hl=en))

For local work, the Nhost CLI runs the whole stack, Postgres included, in Docker and tracks migrations. ([Nhost docs](https://docs.nhost.io/getting-started/local-development/cli)) Firebase's Emulator Suite runs Firestore, Realtime Database, Cloud Storage, Authentication, Hosting and Cloud Functions (beta) locally. ([Firebase docs](https://firebase.google.com/docs/emulator-suite?hl=en))

## Can you self-host Nhost or Firebase?

This is where the two differ most. Nhost is 100% open-source, and its community edition self-hosts for free with a Docker Compose reference implementation. ([Nhost docs](https://nhost.io/product/auth), [Nhost docs](https://docs.nhost.io/platform/self-hosting/community)) Nhost describes that implementation as being for demonstration purposes, so plan to run it yourself or pay for a support agreement or a dedicated cluster. ([Nhost docs](https://docs.nhost.io/platform/self-hosting/community), [Nhost docs](https://docs.nhost.io/platform/self-hosting))

Firebase says its emulators should not be used as "self-hosted" versions of its services and are not appropriate for production. ([Firebase docs](https://firebase.google.com/docs/emulator-suite?hl=en)) On export, Nhost gives full access to your database and storage, while Firestore's managed export writes to a Cloud Storage bucket and requires the Blaze plan. ([Nhost pricing](https://nhost.io/pricing), [Firebase docs](https://firebase.google.com/docs/firestore/manage-data/export-import?hl=en))

## Security and compliance

Nhost lists SOC 2 Type II on its Team plan, and HIPAA is still in progress. ([Nhost pricing](https://nhost.io/pricing), [Nhost docs](https://nhost.io/security)) Nhost Cloud runs on AWS and encrypts all data at rest with AES-256 and in transit with TLS. ([Nhost docs](https://nhost.io/security)) Firebase services have completed the ISO 27001 and SOC 1, SOC 2, and SOC 3 evaluations and encrypt data in transit over HTTPS. ([Firebase docs](https://firebase.google.com/support/privacy?hl=en))

## Where Nhost wins

- Postgres with root access and extensions such as PostGIS and pgvector. ([Nhost docs](https://nhost.io/product/database))
- A GraphQL API generated from your schema, with row-level permissions. ([Nhost docs](https://nhost.io/product/graphql))
- Open source, with a free self-hosted community edition. ([Nhost docs](https://nhost.io/product/auth), [Nhost docs](https://docs.nhost.io/platform/self-hosting/community))
- Monthly plans with included allowances, and no project stopped for going over. ([Nhost pricing](https://nhost.io/pricing))

## Where Firebase wins

- Firestore's offline mode for mobile and web apps. ([Firebase docs](https://firebase.google.com/products/firestore?hl=en))
- A free tier with no payment method and 50K MAUs for auth. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))
- Native SDKs for Apple platforms, Android, Flutter, Unity and C++. ([Firebase docs](https://firebase.google.com/?hl=en))
- Analytics and Cloud Messaging at no cost on both plans. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))

## Limitations to plan for

- Nhost functions can't use native addons (Nhost Run is the documented alternative), and Starter caps them at 10 seconds. ([Nhost limits](https://docs.nhost.io/products/functions/limits))
- Nhost's self-hosted setup is a reference implementation for demonstration. ([Nhost docs](https://docs.nhost.io/platform/self-hosting/community))
- Firebase's Spark plan has no Cloud Functions or Cloud Storage. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))
- A Firestore document can be at most 1 MiB, and each project gets exactly one free database. ([Firebase limits](https://firebase.google.com/docs/firestore/quotas?hl=en))

Skip Nhost if your team already models data as documents and wants Firestore's offline mode on mobile.

## Which one fits your use case

- For a SaaS team with relational data, Nhost fits because you get Postgres with root access and GraphQL generated from the schema. ([Nhost docs](https://nhost.io/product/database), [Nhost docs](https://nhost.io/product/graphql))
- A team with data sovereignty rules can self-host Nhost on its own infrastructure. ([Nhost docs](https://docs.nhost.io/platform/self-hosting))
- If your mobile app must keep working offline, Firebase fits because Firestore has an offline mode. ([Firebase docs](https://firebase.google.com/products/firestore?hl=en))
- Solo developers with no budget can start on Spark without a card, then move to Blaze once they need functions or storage. ([Firebase pricing](https://firebase.google.com/pricing?hl=en))

## Verdict

Pick Nhost if you want Postgres, a generated GraphQL API and a monthly plan with included allowances, with the option to self-host later. Pick Firebase if you build mobile-first apps that need offline sync and many native SDKs, and want a free tier that needs no card.

## Frequently asked questions

### Is Nhost an open-source Firebase alternative?

Yes. Nhost is 100% open-source and can be self-hosted, and it uses Postgres with GraphQL where Firebase's Firestore is a NoSQL document database. ([Nhost docs](https://nhost.io/product/auth), [Nhost docs](https://nhost.io/product/graphql))

### Does Firebase support PostgreSQL?

Yes, through SQL Connect, which uses a managed Cloud SQL for PostgreSQL database starting as low as $9.37/month on Blaze, with pricing that varies by region and configuration. ([Firebase docs](https://firebase.google.com/products/sql-connect?hl=en), [Firebase pricing](https://firebase.google.com/pricing?hl=en))

### Does Nhost's free tier pause projects?

Yes. Nhost Starter pauses a project after 1 week of inactivity, and only one project can be active at a time. ([Nhost pricing](https://nhost.io/pricing))

## Try Nhost

Install the Nhost CLI, run the stack locally in Docker, then deploy to the Starter tier (Free forever) at [Nhost](https://nhost.io/). ([Nhost docs](https://docs.nhost.io/getting-started/local-development/cli), [Nhost pricing](https://nhost.io/pricing))


## Sources

- [nhost.io/product/database](https://nhost.io/product/database)
- [firebase.google.com/docs/firestore](https://firebase.google.com/docs/firestore?hl=en)
- [nhost.io/pricing](https://nhost.io/pricing)
- [firebase.google.com/pricing](https://firebase.google.com/pricing?hl=en)
- [docs.nhost.io/platform/self-hosting/community](https://docs.nhost.io/platform/self-hosting/community)
- [firebase.google.com/docs/emulator-suite](https://firebase.google.com/docs/emulator-suite?hl=en)
- [firebase.google.com/products/firestore](https://firebase.google.com/products/firestore?hl=en)
- [nhost.io/product/graphql](https://nhost.io/product/graphql)
- [docs.nhost.io/products/functions/limits](https://docs.nhost.io/products/functions/limits)
- [firebase.google.com/support/privacy](https://firebase.google.com/support/privacy?hl=en)
- [nhost.io/product/auth](https://nhost.io/product/auth)
- [firebase.google.com](https://firebase.google.com/?hl=en)
- [firebase.google.com/docs/firestore/quotas](https://firebase.google.com/docs/firestore/quotas?hl=en)
- [docs.nhost.io/platform/self-hosting](https://docs.nhost.io/platform/self-hosting)
- [firebase.google.com/products/sql-connect](https://firebase.google.com/products/sql-connect?hl=en)
- [docs.nhost.io/getting-started/local-development/cli](https://docs.nhost.io/getting-started/local-development/cli)
