At a Glance:
Nhost is an open-source Firebase alternative that combines PostgreSQL, a Hasura-generated GraphQL API, built-in authentication and storage, and serverless functions into a single stack usable via a hosted platform or self-hosting.
Overview:
Nhost provides an open-source backend stack designed as an alternative to Firebase, centered on a GraphQL API over PostgreSQL. The platform integrates a Postgres database, Hasura for an instant GraphQL API, built-in authentication, file storage, and serverless Node.js functions. Developers can interact with the stack using JavaScript/TypeScript or Dart/Flutter SDKs, and the system is described as frontend agnostic, making it compatible with any frontend framework. Deployment options include a managed hosted service and fully self-hosting the entire stack using Docker Compose, with a dedicated CLI available for local development.
Key Decision Points:
Deployment model: Nhost can be used through a managed hosted platform or can be self-hosted using a provided docker-compose file.
Data interaction: The primary interface for accessing backend data is a GraphQL API generated by Hasura over an underlying PostgreSQL database.
Supported languages: The project provides official client SDKs for JavaScript/TypeScript and Dart/Flutter.
Frontend compatibility: The stack is frontend agnostic and not tied to any specific frontend framework.
Core Features:
PostgreSQL database: Provides a relational Postgres database for data storage.
Instant GraphQL API: Uses Hasura to automatically generate a GraphQL API on top of the database.
Built-in authentication: Includes an Auth component for managing users and authentication.
File storage: Offers a Storage component for managing user-uploaded files.
Serverless functions: Supports running custom logic written in Node.js (JavaScript/TypeScript) as serverless functions.
Local development CLI: Provides a command-line interface for developing applications locally.
Use Cases:
Developers looking to migrate from Firebase to a backend stack built on SQL and GraphQL.
Software teams that need an integrated backend with authentication, storage, and serverless functions that they can self-host.
Frontend developers who require an instant, queryable API over a relational database without manually building backend endpoints.
Open-Source Alternative Value:
Nhost’s value as an open-source tool lies in two main areas: the option to self-host the entire stack via Docker Compose and a clearly defined architecture composed of individual open-source components (PostgreSQL, Hasura). This gives developers the ability to know the foundational technologies of their backend and allows them to run the entire platform in their own infrastructure without using the hosted service.




