StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. Languages
  4. Query Languages
  5. Hasura vs PostGraphile

Hasura vs PostGraphile

OverviewComparisonAlternatives

Overview

PostGraphile
PostGraphile
Stacks85
Followers214
Votes47
Hasura
Hasura
Stacks343
Followers634
Votes144
GitHub Stars31.8K
Forks2.8K

Hasura vs PostGraphile: What are the differences?

Introduction

In this article, we will compare the key differences between Hasura and PostGraphile.

  1. Architecture: Hasura is based on a microservices architecture, where GraphQL requests are sent to a separate server. On the other hand, PostGraphile is a library that runs directly on top of a PostgreSQL database and exposes the GraphQL API through PostgreSQL itself. This difference in architecture affects how the two solutions are deployed and managed.

  2. Ease of Setup: Hasura provides a web-based console that makes it easy to set up a GraphQL API on top of existing databases. It auto-generates the GraphQL schema and allows real-time data updates out of the box. PostGraphile requires manual configuration and customization, as it directly uses the PostgreSQL schema and requires writing SQL queries for more advanced features.

  3. Real-time capabilities: Hasura has built-in support for real-time subscriptions, allowing clients to receive instant updates whenever the data changes. PostGraphile does not have native support for real-time subscriptions, but it can be augmented with external tools like Postgres Pub-Sub or GraphQL subscriptions using Apollo.

  4. Extensibility: Hasura provides a plugin system that allows extending its functionality by adding custom GraphQL resolvers and event triggers. This allows developers to add custom business logic or integrate with external services. PostGraphile, being a library, requires more manual work to extend its functionality, like writing custom code in the form of smart tags or using PostgreSQL triggers.

  5. Permissions and Access Control: Hasura has a built-in role-based access control system that allows granular control over who can access which parts of the API. It also provides fine-grained query-level authorization using GraphQL queries or webhooks. PostGraphile relies on PostgreSQL's user roles and permissions for access control, which may require manually managing database roles and permissions.

  6. Developer Experience: Hasura's web-based console provides a user-friendly interface for exploring and interacting with the GraphQL API, making it easier for developers to get started. PostGraphile, being a library, may require more configuration and set up upfront, making it better suited for developers with a deeper understanding of GraphQL and PostgreSQL.

In summary, Hasura and PostGraphile differ in their architecture, ease of setup, real-time capabilities, extensibility, permissions and access control, and developer experience.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

PostGraphile
PostGraphile
Hasura
Hasura

Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database

An open source GraphQL engine that deploys instant, realtime GraphQL APIs on any Postgres database.

instant GraphQL schema via reflection over PostgreSQL database API; compiles complex GraphQL queries into very few SQL statements resulting in high performance; built entirely from plugins - heavily customisable; support for PostgreSQL RBAC and RLS; watch mode (monitors for database schema changes) for great DX; standalone server, express middleware, or GraphQL schema; integration with Express auth via pgSettings (e.g. Passport.js, optional); JWT auth (optional); very strong support for PostgreSQL functions; simple to set up and scale
Stack-agnostic; Cloud-agnostic; Git push to deploy; Pre-configured API Gateway; Instant GraphQL or JSON APIs; Out-of-the-box Auth APIs with UI Kits; Filestore APIs with access control; Deploy custom code
Statistics
GitHub Stars
-
GitHub Stars
31.8K
GitHub Forks
-
GitHub Forks
2.8K
Stacks
85
Stacks
343
Followers
214
Followers
634
Votes
47
Votes
144
Pros & Cons
Pros
  • 10
    Postgres based authentication
  • 6
    Great developer support
  • 5
    Lightning fast
  • 5
    Database first with no braking changes
  • 4
    Simple to set up and scale
Pros
  • 23
    Fast
  • 18
    Easy GraphQL subscriptions
  • 16
    Easy setup of relationships and permissions
  • 15
    Minimal learning curve
  • 15
    Automatically generates your GraphQL schema
Cons
  • 3
    Cumbersome validations
Integrations
Apollo
Apollo
ExpressJS
ExpressJS
Node.js
Node.js
PostgreSQL
PostgreSQL
Koa
Koa
GraphQL
GraphQL
Fastify
Fastify
Relay Framework
Relay Framework
graphql.js
graphql.js
Kubernetes
Kubernetes
PostgreSQL
PostgreSQL
Docker
Docker
GraphQL
GraphQL

What are some alternatives to PostGraphile, Hasura?

Heroku

Heroku

Heroku is a cloud application platform – a new way of building and deploying web apps. Heroku lets app developers spend 100% of their time on their application code, not managing servers, deployment, ongoing operations, or scaling.

Clever Cloud

Clever Cloud

Clever Cloud is a polyglot cloud application platform. The service helps developers to build applications with many languages and services, with auto-scaling features and a true pay-as-you-go pricing model.

Google App Engine

Google App Engine

Google has a reputation for highly reliable, high performance infrastructure. With App Engine you can take advantage of the 10 years of knowledge Google has in running massively scalable, performance driven systems. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow.

Red Hat OpenShift

Red Hat OpenShift

OpenShift is Red Hat's Cloud Computing Platform as a Service (PaaS) offering. OpenShift is an application platform in the cloud where application developers and teams can build, test, deploy, and run their applications.

GraphQL

GraphQL

GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012.

AWS Elastic Beanstalk

AWS Elastic Beanstalk

Once you upload your application, Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.

Render

Render

Render is a unified platform to build and run all your apps and websites with free SSL, a global CDN, private networks and auto deploys from Git.

Cloud 66

Cloud 66

Cloud 66 gives you everything you need to build, deploy and maintain your applications on any cloud, without the headache of dealing with "server stuff". Frameworks: Ruby on Rails, Node.js, Jamstack, Laravel, GoLang, and more.

Jelastic

Jelastic

Jelastic is a Multi-Cloud DevOps PaaS for ISVs, telcos, service providers and enterprises needing to speed up development, reduce cost of IT infrastructure, improve uptime and security.

Dokku

Dokku

It is an extensible, open source Platform as a Service that runs on a single server of your choice. It helps you build and manage the lifecycle of applications from building to scaling.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase