# PostgREST

> A RESTful API served straight from your PostgreSQL database

Source: https://talira.ai/catalog/postgrest-wecp53ve
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Command-line tool
- Categories: [developer tools / api / instant apis](https://talira.ai/categories/developer-tools/api/instant-apis)
- Platforms: linux, macos, windows, docker[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source; funded by sponsors on Patreon.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^3]
- Backed by: [PostgREST](https://talira.ai/orgs/postgrest.md)
- Sponsors: Cybertec, Supabase, Euronodes, Neon, Bytebase

PostgREST is a standalone web server that turns an existing [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) database into a RESTful API, with no API code to write. Tables, views and functions become endpoints, with filtering, ordering, pagination and embedded relations, and it delegates as much as it can to the database: JSON is serialised in SQL, and validation and authorization stay there. Requests are authenticated with JSON Web Tokens and run as the matching database role, so row-level security and grants are the single source of truth for access. APIs are versioned through database schemas. It's written in Haskell, keeps a connection pool, is stateless so it scales horizontally, and ships as a binary and a Docker image. [Supabase](https://talira.ai/catalog/supabase-524j51hm.md) uses it for its REST API.

## Links

- Website: https://postgrest.org/
- GitHub: https://github.com/PostgREST/postgrest
- Docs: https://docs.postgrest.org/

## Problems it solves

- a REST API for my Postgres database without writing a backend
- expose tables and views over HTTP with Postgres row-level security as the permissions
- an instant CRUD API in front of an existing database for a frontend app
- authenticate API requests with JWTs mapped to database roles

## Features

- REST endpoints for tables, views and functions
- filtering, ordering, pagination and embedded relations
- JWT authentication mapped to database roles
- authorization through Postgres grants and row-level security
- API versioning through schemas
- stateless, with a connection pool, for horizontal scaling
- binary and Docker image

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.44 out of 1.
Signals: backing 0.45, extensibility 0.40.

- has a company behind it
- sponsored by Cybertec, Supabase, Euronodes, Neon

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)

## Alternatives

- [Hasura](https://talira.ai/catalog/hasura-ja22dswe.md): Instant realtime GraphQL APIs on all your data, with fine-grained access control

## Sources

[^1]: https://github.com/PostgREST/postgrest/blob/main/LICENSE (checked 23 Nov 2026)
[^2]: https://docs.postgrest.org/en/stable/explanations/install.html (checked 23 Nov 2026)
[^3]: https://github.com/PostgREST/postgrest (checked 23 Nov 2026)
