Logo
Deploy Now

Stars

32097

Forks

2906

Watchers

349

Developer links

Hasura

A PostgreSQL database becomes a production-grade GraphQL API the moment Hasura GraphQL Engine points at it: track tables and relationships - existing schemas included - and full query, mutation, and subscription types appear with where, order_by, limit, offset, and on_conflict arguments, no resolvers or boilerplate written. Its Haskell core compiles GraphQL to efficient SQL, and any query becomes a real-time live query with a single keyword, powering dashboards and collaborative UIs over standard GraphQL subscriptions. Authorization is where Hasura earns its enterprise reputation: role-based access control with row- and column-level permission policies driven by session variables from JWTs, auth webhooks, or headers - each role effectively sees its own GraphQL schema containing only what it may touch, integrating cleanly with Auth0, Firebase, or homegrown auth. Event triggers fire webhooks on inserts, updates, and deletes for asynchronous business logic; Actions extend the schema with custom REST handlers; remote schema stitching merges external GraphQL services into one endpoint; and auto-generated REST endpoints serve clients that skip GraphQL. A browser console handles data modeling and API exploration, the CLI manages migrations and metadata as code, and deployment is a single stateless Docker container beside Postgres.

Hasura

Benefits

  • Weeks of Backend Work, Skipped
  • Complete CRUD APIs with filtering, pagination, and relationships generate automatically from the schema - existing databases included.
  • Real-Time Without the Plumbing
  • One keyword converts any query into a live subscription, replacing hand-rolled WebSocket layers for dashboards and collaborative apps.
  • Authorization at the Data Layer
  • Row- and column-level policies enforced per role in the engine itself - each role sees only the schema it's permitted to use.
  • Escape Hatches for Real Apps
  • Event triggers, custom Actions, and remote schema stitching handle the business logic auto-generation can't.

Features

  • Instant GraphQL and REST
  • Auto-generated queries, mutations, and subscriptions with where, order_by, limit, and upsert support.
  • Live Queries
  • Any query becomes a real-time subscription streaming changes over GraphQL.
  • Fine-Grained RBAC
  • Row and column permissions from JWT, webhook, or header session variables; per-role schemas.
  • Event Triggers
  • Webhooks fired on insert, update, and delete for async workflows and integrations.
  • Actions and Remote Schemas
  • Custom REST business logic in the graph, plus stitching of external GraphQL APIs into one endpoint.
  • Console and CLI
  • Browser-based data modeling and GraphiQL exploration, with migrations and metadata managed as code.