Back to directory

Developer Tools · Frameworks & Platforms

NHost

Postgres, GraphQL, authentication, storage, and functions in one backend

Nhost is an open source backend platform for developers who want PostgreSQL, GraphQL, authentication, file storage, and JavaScript or TypeScript functions together. Its repositories use the MIT license, and Nhost Cloud offers a free tier plus paid plans starting at $25 monthly. Teams can also run the stack locally or self-host it with Docker Compose.

Key facts

License
MIT
Main language
TypeScript, JavaScript, Go, SQL
Maintainer
Nhost
Latest release
cli@1.52.0, October 14, 2026
GitHub stars
approximately 9.4k, observation date not published (approximate)
Hosted option
Nhost Cloud, free tier; Pro from $25/month

What NHost is

Nhost is an open source backend platform built around PostgreSQL and Hasura GraphQL. Nhost maintains the monorepo and related services, and the repository shows approximately 9.4k stars and 635 forks. The project targets application developers who want SQL, authentication, file handling, and backend functions without assembling each service independently. Its public code uses the MIT license. Nhost Cloud is the managed option, while the same broad service set can be run locally through the CLI and Docker Compose. That combination gives teams a choice between operational control and a hosted workflow.

How it works

A typical workflow begins with the Nhost CLI, which creates or connects a project and runs the local backend stack. Developers define relational data in PostgreSQL, then use Hasura to expose tables and relationships through GraphQL. Permissions are configured across the database and GraphQL layers, making role design part of the application workflow rather than a later add-on. Authentication supports passwords, magic links, OAuth, WebAuthn, and related session flows. Files use the storage service, which includes image handling and CDN delivery. Custom backend logic runs in JavaScript or TypeScript functions. The dashboard supplies controls for database, GraphQL, authentication, storage, deployment, and observability, while Git-managed configuration can move from local development into Nhost Cloud.

Architecture and recent releases

The stack combines PostgreSQL, Hasura GraphQL Engine, Nhost Auth, Nhost Storage, Node.js functions, a dashboard, and a CLI. Local development uses Docker Compose. Cloud projects are managed services with regions, TLS, scaling, logs, and metrics. JavaScript, TypeScript, Go, and SQL appear across the repository, with JavaScript and TypeScript central to application-facing packages. The release page lists cli@1.52.0 and dashboard 3.7.1 on October 14, 2026, plus functions 2.3.2 and postgres 20260930-1 on September 30. The October CLI release added PostgreSQL WAL and extension configuration and support for ca-central-1. The release page also lists MCP resource annotation fixes, dependency maintenance, and certificate updates.

License and pricing

Nhost and its open source projects use the MIT license, which permits commercial use, modification, redistribution, and hosted deployment when license conditions are preserved. Nhost Cloud is priced separately from the code. Starter costs $0 and includes one project, 1 GB of database, 1 GB of storage, and 5 GB of egress, with inactivity pausing. Pro costs $25 monthly and includes 10 GB of database, 50 GB of storage, 50 GB of egress, automated backups, and point-in-time recovery. Team costs $599 monthly, while Enterprise pricing is custom. Compute, storage, functions, domains, and usage can add charges. Self-hosting avoids Cloud subscription fees but transfers service operation, upgrades, security, backups, and support responsibilities to the operator.

Limitations and how it compares

Nhost's main limitation is operational breadth: a self-hosted installation includes several services, and the published Compose example is mainly a demonstration. Hasura and PostgreSQL also require comfort with schemas, permissions, and relational modeling. Supabase is a close open source alternative with PostgreSQL, authentication, storage, and developer APIs. Appwrite offers a broader service platform with a different database model, while Firebase remains a polished proprietary benchmark. Nhost suits teams that want generated GraphQL from relational data, direct PostgreSQL access, and MIT-licensed components. It is less suitable for teams seeking a small single-process deployment or a backend whose permissions avoid database concepts.

Main features

  • PostgreSQL database. A managed SQL database provides relational data, extensions, direct access, backups, and the foundation for generated application APIs.
  • Instant GraphQL. Hasura exposes PostgreSQL tables, relationships, subscriptions, permissions, event triggers, and actions through a GraphQL endpoint.
  • Authentication. Built-in authentication supports email, passwords, magic links, OAuth providers, WebAuthn, two-factor authentication, and role-aware sessions.
  • Object storage. Storage handles uploads, downloads, permissions, image transformation, and CDN delivery for application files.
  • Serverless functions. Developers deploy JavaScript or TypeScript functions for custom backend logic without managing individual application servers.
  • Local CLI. The CLI runs the connected backend stack locally and manages configuration, deployments, generated types, and development workflows.

Self-hosting NHost

Nhost documents local and self-hosted operation through Docker Compose and CLI-oriented configuration. The example starts PostgreSQL, Hasura GraphQL, Auth, Storage, Functions, Dashboard, MinIO, Traefik, and supporting services. A production installation therefore needs persistent PostgreSQL storage, object storage, secrets, TLS termination, resource limits, and backups. The project does not publish one universal minimum CPU or RAM requirement. The Compose example is development-friendly and says official self-hosting support requires a support agreement. Operators should pin versions, protect administrative endpoints, remove MailHog and development consoles, test database and object-storage restores, and coordinate upgrades across the stack.

Strengths

  • PostgreSQL remains directly accessible instead of being hidden behind a proprietary data model.
  • Hasura provides generated GraphQL queries, mutations, relationships, subscriptions, and authorization.
  • The MIT license permits commercial use and hosted deployment.
  • The Cloud service connects local CLI work with managed production infrastructure.

Drawbacks

  • The self-hosted stack contains many services to secure, monitor, and upgrade.
  • The published Compose example is not presented as a production deployment.
  • Advanced Cloud capabilities and usage can increase the headline subscription price.

What teams replace with it

Teams usually evaluate NHost when they want to move off Firebase, Backendless, Parse Server hosting.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to NHost

Frequently asked questions

Is Nhost free?

Nhost software is MIT licensed and can be run from its source, while Nhost Cloud has a free Starter tier. Starter includes one project, 1 GB of database, 1 GB of storage, and 5 GB of egress. The project can pause after a week of inactivity. Paid Cloud usage begins with Pro at $25 per month, before additional resources or usage charges.

Can Nhost be used commercially?

Yes. The main Nhost repository uses the MIT license, which permits commercial use, modification, redistribution, and use in a hosted service when the license notice is retained. Individual dependencies can have their own terms. Nhost Cloud is commercially operated, and its paid plans add backups, support, compute, domains, and other production features rather than changing the open source license.

How do I self-host Nhost?

The documented route is Docker Compose, using the repository example and environment configuration. It starts PostgreSQL, Hasura, Auth, Storage, Functions, Dashboard, MinIO, Traefik, and development helpers. Operators need persistent volumes, secure credentials, TLS, backups, monitoring, and production hardening. The example warns that it is mainly for demonstration and that official self-hosting support requires a support agreement.

How does Nhost compare with Supabase?

Both package PostgreSQL, authentication, storage, and developer APIs. Nhost centers its data API on Hasura GraphQL and exposes a GraphQL-oriented workflow. Supabase emphasizes PostgREST, Realtime, and a broader integrated platform around PostgreSQL. Choose Nhost when generated GraphQL, Hasura permissions, and MIT-licensed components fit the application. Choose Supabase when REST-first tooling or its service breadth is the closer match.

Where does Nhost store application data?

Nhost uses PostgreSQL for relational data and a separate storage service for files. On Nhost Cloud, the service provisions and operates those components in a selected region, with TLS, monitoring, and plan-dependent backups. A self-hosted operator controls database and object-storage locations. The deployment must therefore define access controls, encryption, retention, and tested restoration procedures.

Similar projects to compare

Sources

Last updated 2026-10-22.