Hasura
By Hasura
Hasura is an open-source engine that instantly generates a GraphQL and REST API over new or existing databases, letting developers query and mutate data without hand-writing backend resolver code.
Definition
Hasura is an open-source engine that instantly generates a GraphQL and REST API over new or existing databases, letting developers query and mutate data without hand-writing backend resolver code.
Overview
Hasura's core idea is to remove the repetitive backend work of writing CRUD endpoints and resolvers by connecting directly to a database, most commonly PostgreSQL, and introspecting its schema to auto-generate a full GraphQL API with filtering, pagination, and real-time subscriptions built in. Developers can still add custom business logic through remote schemas, actions, and event triggers that call out to their own microservices. Because the API is generated directly from the database schema, changes to tables and relationships are reflected in the API automatically, and Hasura layers fine-grained, role-based permissions on top so different users or services see only the rows and columns they're allowed to. This makes it popular for teams that want to move fast on the frontend, using tools like React, without maintaining a large hand-rolled API layer. Hasura is typically used in modern full-stack applications, internal tools, and data platforms where a GraphQL layer over relational data significantly speeds up development. It sits alongside alternatives like Apollo GraphQL server implementations, but differentiates itself by generating the API automatically rather than requiring resolvers to be written by hand.
Key Features
- Instant GraphQL and REST API generation from a database schema
- Real-time GraphQL subscriptions for live-updating data
- Fine-grained, role-based row and column-level permissions
- Support for custom business logic via actions and remote schemas
- Event triggers that call webhooks on database changes
- Works with PostgreSQL and several other relational databases
- Built-in schema explorer and API console for development