The Open Source Firebase Alternative with GraphQL.

Nhost is an open source Firebase alternative with GraphQL, built with the following things in mind:
Nhost consists of open source software:
Visit https://docs.nhost.io for the complete documentation.
The Nhost CLI is the easiest way to start developing locally. It sets up a local environment that tracks database migrations and Hasura metadata.
Install the CLI:
brew install nhost/tap/nhost or curl -sSL https://raw.githubusercontent.com/nhost/nhost/main/cli/get.sh | bashnix profile install github:nhost/nhost#clinpm install -D @nhost/cli,
pnpm add -D @nhost/cli, yarn add -D @nhost/cli, or
bun add -d @nhost/cliStart building:
nhost login
nhost init
nhost up
Read the full CLI Quickstart guide.
Connect your AI assistant (MCP):
The CLI ships with a Model Context Protocol (MCP) server. Your assistant can read the GraphQL schema, run the queries and mutations you allow, update Nhost Cloud project configuration, search the Nhost docs, and in local development manage metadata, permissions, and migrations. Works with Claude Code, Codex, Gemini CLI, Cursor, and other MCP clients.
claude mcp add nhost nhost mcp start
See the MCP Server docs for other clients and access settings.
Since Nhost is 100% open source, you can self-host the whole Nhost stack. Check out the example docker-compose file to self-host Nhost.
Install the @nhost/nhost-js package and start building your app:
import { createClient } from '@nhost/nhost-js'
const nhost = createClient({
subdomain: 'your-project',
region: 'eu-central-1'
})
await nhost.auth.signInEmailPassword({
email: 'user@example.com',
password: '<password>'
})
await nhost.graphql.request({
query: `
query GetUsers {
users {
id
displayName
email
}
}
`
})
Nhost is frontend agnostic, which means Nhost works with all frontend frameworks.
Star and watch this repository to stay up-to-date.
Also, follow Nhost on GitHub Discussions, our Blog, and on X. You can chat with the team and other members on Discord and follow our tutorials and other video material at YouTube.
This repository, and most of our other open source projects, are licensed under the MIT license.
Here are some ways of contributing to making Nhost better:
default brute-force rate limit (10 / 5m) is too strict
https://github.com/nhost/nhost/issues/5513
Labels: None
Welcome and thank you for considering contributing to Nhost!
This document outlines the rules to follow to make the contribution process easy and effective for everyone involved. If you are ever in doubt about anything, we encourage you to reach out via Discord.
We take our open source community seriously and hold ourselves and other contributors to high standards of communication. By participating and contributing to this project, you agree to uphold our Code of Conduct.
Contributions are made to Nhost repos via Issues and Pull Requests (PRs). A few general guidelines that cover both:
We have specific policies regarding AI-assisted contributions:
In all cases, contributors must ensure their submissions are thoughtful, well-tested, and meet the project's quality standards.
Issues should be used to report problems with Nhost, request a new feature, or discuss potential changes before a PR is created.
If you find an Issue that addresses the problem you're having, please add your reproduction information to the existing issue rather than creating a new one. Adding a reaction can also help indicate to our maintainers that a particular problem affects more than just the reporter.
PRs to our libraries are always welcome and can be a quick way to get your fix or improvement slated for the next release. In general, PRs should:
README.md, CLAUDE.md, or other documentation if your change affects project structure, standards, or public APIs.This repository is a monorepo that contains multiple packages and applications. The structure is as follows:
cli - The Nhost CLIdashboard - The Nhost Dashboarddocs - Documentation site (docs.nhost.io)examples - Various example projectsinternal/lib - Shared Go libraries used across servicespackages/nhost-js - The Nhost JavaScript/TypeScript SDKservices/auth - Nhost Authentication serviceservices/constellation - Nhost's GraphQL engineservices/postgres - Nhost's Postgres database serviceservices/functions - Local dev runtime for serverless functionsservices/storage - Nhost Storage servicetools/codegen - Internal code generation tool to build the SDKtools/govulncheck-wrapper - Wrapper around govulncheck used in CIFor details about those projects and how to contribute, please refer to their respective README.md and CONTRIBUTING.md files.