Hasura

Best Self-hosted Alternatives to Hasura

A curated collection of the 7 best self hosted alternatives to Hasura.

Hasura is a managed cloud GraphQL platform that auto-generates real-time GraphQL and REST APIs over databases (notably PostgreSQL). It provides subscriptions, role-based permissions, auth integrations, remote schemas/actions, event triggers/webhooks and schema metadata for backend development.

Alternatives List

#1
Supabase

Supabase

Supabase is an open source Postgres development platform providing authentication, auto-generated REST/GraphQL APIs, realtime subscriptions, edge functions, file storage, and vector embeddings.

Supabase screenshot

Supabase is an open source Postgres development platform for building web, mobile, and AI applications. It combines PostgreSQL with a set of services for authentication, instant APIs, realtime updates, serverless functions, and file storage.

Key Features

  • Dedicated PostgreSQL database with SQL, roles, and Row Level Security
  • Auto-generated REST APIs from your database schema
  • Optional GraphQL API via a PostgreSQL extension
  • Authentication and authorization with JWT-based sessions and OAuth2 support
  • Realtime subscriptions over WebSockets driven by PostgreSQL changes
  • File storage service with access control policies backed by Postgres
  • Edge/serverless functions for custom backend logic
  • Vector/embeddings support using Postgres extensions (for semantic search and RAG patterns)
  • Web-based dashboard for managing projects, data, and configuration

Use Cases

  • Replace or self-host a Firebase-like backend for apps with Postgres
  • Build internal tools and SaaS backends with auth, APIs, and storage
  • Create AI-enabled applications using Postgres vector search and embeddings

Limitations and Considerations

  • Some functionality relies on multiple cooperating components (database, realtime, auth, storage, gateway), which increases operational complexity compared to a single service
  • Feature set and behavior can vary depending on the chosen self-hosting setup and enabled extensions

Supabase provides a cohesive backend stack around PostgreSQL while keeping data ownership and portability. It is well-suited for teams that want a modern developer experience with SQL and strong database-native security controls.

98.2kstars
11.6kforks
#2
Directus

Directus

Directus turns any SQL database into a headless CMS with an admin app, role-based access control, and instant REST and GraphQL APIs for custom applications.

Directus screenshot

Directus is a flexible data platform that sits on top of an existing SQL database to provide an admin studio and real-time APIs. It can be used as a headless CMS, a backend for custom apps, or an internal data management interface without requiring database migrations.

Key Features

  • Instantly generates REST and GraphQL APIs on top of supported SQL databases
  • Admin Studio for managing content, data models, and relationships through a no-code UI
  • Works with new or existing databases, keeping full control of the underlying schema
  • Role-based access control with granular permissions for collections and fields
  • Extensible platform with support for custom modules and interfaces
  • Digital asset management for organizing and delivering uploaded files

Use Cases

  • Headless CMS for websites and apps using an existing PostgreSQL/MySQL/SQLite database
  • Internal admin panels for business data with fine-grained permissions
  • Backend layer for custom products that need both REST and GraphQL APIs

Limitations and Considerations

  • Licensed under Business Source License (BSL) 1.1 with an additional use grant, which may require a commercial license for some larger organizations

Directus is well-suited for teams that want to keep their SQL database as the source of truth while rapidly adding APIs and a modern admin UI. Its database-first approach and extensibility make it a strong fit for custom builds that outgrow traditional CMS patterns.

34.3kstars
4.6kforks
#3
Hasura GraphQL Engine

Hasura GraphQL Engine

Hasura is an open-source GraphQL engine that instantly exposes realtime, secure GraphQL APIs over databases and other data sources with fine-grained access control.

Hasura GraphQL Engine screenshot

Hasura GraphQL Engine provides instant, realtime GraphQL and REST APIs over your data sources by introspecting schemas and exposing a composable, secure API surface. It supports multiple backends and connector SDKs for adding custom business logic, and includes an admin console and migration tooling for managing schema and metadata.

Key Features

  • Instant GraphQL APIs generated from database schemas with support for queries, mutations, subscriptions (realtime).
  • Fine-grained row- and column-level access control and permission rules.
  • Database event triggers and webhooks for serverless workflows and asynchronous processing.
  • Data Connectors architecture (V3) enabling Postgres, MongoDB, ClickHouse, MS SQL Server and other sources.
  • Connector SDKs for writing custom business logic in TypeScript, Python, and Go.
  • Admin console and migration tooling for schema management and metadata versioning.
  • Remote schemas and schema stitching to merge custom GraphQL services into a single endpoint.
  • Container-friendly deployment with Docker and orchestration support for cloud/Kubernetes environments.

Use Cases

  • Rapidly expose an existing database as a secure, realtime GraphQL API for web and mobile apps.
  • Build event-driven pipelines by triggering functions or webhooks on database changes.
  • Compose data from multiple sources into a unified API for microservices and analytics.

Limitations and Considerations

  • Full feature parity depends on the connected data source; some advanced features vary by connector and database capabilities.
  • Operational behavior (performance, caching, realtime scalability) is influenced by the underlying datastore and deployment topology.

Hasura is designed to accelerate API development by automating schema-to-API creation and providing production-oriented features for access control, subscriptions, and eventing. It is commonly used to modernize data access, integrate heterogeneous data sources, and power realtime user experiences.

31.9kstars
2.9kforks
#4
SQLPage

SQLPage

SQLPage is a fast SQL-only web app builder that turns .sql files into interactive web pages and APIs on top of your existing database.

SQLPage screenshot

SQLPage is an SQL-only web application builder that turns SQL files into interactive web pages, forms, charts, and APIs. It runs as a web server and maps query results to prebuilt UI components, letting you build data-centric apps without writing backend code.

Key Features

  • SQL-driven pages: serve routes by executing corresponding .sql files
  • Built-in UI components for lists, tables, cards, charts, forms, and navigation
  • CRUD workflows via SQL statements (SELECT/INSERT/UPDATE/DELETE) with request parameters
  • Database connectivity for SQLite, PostgreSQL, MySQL/MariaDB, and Microsoft SQL Server, plus ODBC-compatible engines
  • Custom components and theming via Handlebars templates and optional HTML/CSS/JS
  • Can expose JSON endpoints to build simple REST-style APIs
  • Single-binary deployment with Docker support

Use Cases

  • Internal admin tools and operational dashboards with drill-down navigation
  • Lightweight CRUD apps for teams that already use a relational database
  • Rapid prototyping of database-backed tools and simple data APIs

SQLPage is a good fit when you want a maintainable, database-first approach to building web interfaces, keeping logic close to SQL while still allowing optional frontend customization as needed.

2.5kstars
166forks
#5
DreamFactory

DreamFactory

DreamFactory generates secure, documented REST APIs for SQL/NoSQL databases and other services, with a web admin UI, authentication, and role-based access control.

DreamFactory screenshot

DreamFactory is an API generation platform that automatically creates REST APIs for databases and other data sources. It provides a web-based administration interface to configure connections, manage users, and secure endpoints without building a custom backend from scratch.

Key Features

  • Automatic REST API generation from database schemas
  • Supports a range of SQL and NoSQL backends (capabilities vary by edition)
  • Web-based admin console for configuration and management
  • Built-in authentication and authorization, including role-based access control
  • API key support and multiple auth methods (capabilities vary by edition)
  • Server-side scripting hooks to add custom business logic to requests and responses
  • Generates API definitions and documentation (OpenAPI support)

Use Cases

  • Create an API layer in front of legacy databases for modern web and mobile apps
  • Standardize access to multiple data sources through consistent REST endpoints
  • Rapidly prototype internal APIs with fine-grained access controls

Limitations and Considerations

  • The open-source edition has reduced functionality compared to commercial offerings (for example, some connectors and advanced security/governance features may be unavailable)

DreamFactory is a strong fit when you need a secure API middle layer quickly, especially for existing databases and legacy systems. It emphasizes rapid API delivery with centralized administration and policy-driven access control.

1.7kstars
346forks
#6
Para

Para

Para is an open-source, Java-based multitenant backend framework providing a RESTful JSON API, full-text search, distributed caching, and flexible authentication for web, mobile, IoT and prototype apps.

Para screenshot

Para is a modular, Java-based backend framework that provides object persistence, search indexing and distributed caching for web, mobile and IoT applications. It exposes a RESTful JSON API and is designed for multitenant deployments and rapid prototyping.

Key Features

  • Multitenancy: each application has its own storage, search index and cache isolation.
  • RESTful JSON API with signed requests and stateless client authentication using JSON Web Tokens (JWT).
  • Database-agnostic persistence layer with adapters for various data stores and lightweight support for embedded databases.
  • Full-text search support via Lucene or Elasticsearch with automatic indexing of objects.
  • Distributed and local caching options (Hazelcast or other cache implementations) for low-latency access.
  • Pluggable security: LDAP/SAML/social login support, CSRF protections and resource-level permissions.
  • Validation and robustness via JSR-303 / Hibernate Validator and optimistic locking support in DAOs.
  • Modular architecture with dependency injection and plugin support, executable JAR with embedded servlet container, and metrics/monitoring integration.

Use Cases

  • Rapidly build backend APIs for mobile and single-page web applications with per-app multitenancy.
  • Add full-text search and indexing to application data using Lucene or Elasticsearch.
  • Provide a unified backend for IoT or game clients that need scalable caching and flexible auth.

Limitations and Considerations

  • JVM-centric: primarily a Java/Maven codebase and requires a Java runtime to run and build.
  • Relies on external components for some functionality: search (Elasticsearch/Lucene) and distributed cache (Hazelcast) need to be provisioned and configured for production scaling.
  • Advanced integrations and hardening (e.g., enterprise SSO, specific DB backends) require additional setup and testing per deployment.

Para is targeted at teams that want a tested, extensible backend framework rather than a managed SaaS API. It is suitable for prototyping and production deployments where a JVM-first, modular backend with search and caching is desirable.

562stars
151forks
#7
Graphweaver

Graphweaver

Graphweaver turns multiple databases and APIs into a single, code-first GraphQL API with an extensible admin UI and fine-grained access control.

Graphweaver is a code-first GraphQL backend that connects multiple data sources behind a single GraphQL API. It focuses on fast bootstrapping with generated CRUD operations while keeping everything fully customizable in TypeScript.

Key Features

  • Connect multiple data sources (SQL databases and external APIs) behind one GraphQL schema
  • Instant CRUD GraphQL API with filtering, sorting, and pagination
  • Cross-source filtering to query and filter across different backends
  • Code generation to introspect supported databases and generate TypeScript resolvers
  • Granular security controls including RBAC plus row-level and column-level permissions
  • Built-in, extensible admin panel for browsing and managing connected data

Use Cases

  • Build a unified GraphQL gateway over multiple databases and SaaS/REST services
  • Rapidly scaffold an internal admin tool for operational data management
  • Add fine-grained authorization to CRUD APIs without losing code-level control

Graphweaver is well-suited for teams that want Hasura-like acceleration while keeping a standard, hackable GraphQL server and UI that can be adapted to production requirements.

547stars
29forks

Why choose an open source alternative?

  • Data ownership: Keep your data on your own servers
  • No vendor lock-in: Freedom to switch or modify at any time
  • Cost savings: Reduce or eliminate subscription fees
  • Transparency: Audit the code and know exactly what's running