Data APIs on Postgres #HasuraBaaS

Hasura gives you the power of Postgres, with the ease of JSON

Hasura comes built-in with a data service that allows clients to communicate with a Postgres database, via HTTP APIs in JSON.

Any client with a HTTP library can use the data service, so most apps can be made completely ‘backend-less’. Think of it like a ‘BaaS’ but on Postgres 😍.

An intuitive query language

Eg: suppose you want to fetch each category (its name & description), and the top 5 articles in each category, this is what the query would look like:

JSON syntax for getting top 5 articles from each category

Model relationships as nested JSON

You can also create relationships between data models and do joins with a simple syntax.

Create perfectly crafted RESTful endpoints

You can also create custom endpoints for common queries by using “query-templates”. You can create a complex query and then expose it as a neat RESTful endpoint.

High performance APIs

The Hasura data service is extremely fast.This is due to an efficient query compiler that does JSON aggregations on Postgres itself minimising serialisation/deserialisation overhead.

Hasura’s data APIs purr a smooth 5x faster than what you would typically write by hand. Check out comparisons and benchmarks.

Hasura is an open-source engine that gives you realtime GraphQL APIs on new or existing Postgres databases, with built-in support for stitching custom GraphQL APIs and triggering webhooks on database changes.