Tools/PostgREST/postgrest

PostgREST

REST API for any Postgres database

27.7k ★+6/wkgrowthHaskellMIT License →trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Sep 2026

PostgREST turns a Postgres database into a REST API without you writing one. Point it at your schema and every table, view, and function becomes an endpoint, with permissions decided by the roles and row-level security already defined in the database. MIT licensed, free, and a single small binary. It is also the API layer inside Supabase, which is about the best production reference you could ask for.

Running it is light. One stateless binary or the official Docker image next to Postgres 14 or later, scaled horizontally when you need more. It does not do HTTPS, so it sits behind Nginx or another reverse proxy. Auth is JSON Web Tokens mapped to database roles, minted inside the database or by an outside service.

Free at every size, with no paid edition. The real decision is where your logic lives. With PostgREST, validation and permissions are SQL: grants, policies, views, functions. Teams fluent in Postgres move fast. Teams that are not should look at supabase/supabase, which wraps PostgREST with auth, storage, and a dashboard, or directus/directus for an API plus an admin UI.

The catch: the schema cache goes stale when you change the database, so you reload it with a NOTIFY or a signal. And one sloppy grant on the anonymous role exposes data to the internet. Your DBA is now your API security team.

Free vs Self-Hosted vs Paid

fully free

Free: Everything. MIT licensed server with pre-built binaries for Linux, macOS, Windows, and FreeBSD, an official Docker image, and packages in Homebrew, pacman, Nix, Chocolatey, and Scoop.

Self-hosted: The only way it runs. One stateless binary beside Postgres 14 or later, behind a reverse proxy for TLS. All business logic lives in SQL roles, grants, row-level security, views, and functions.

Paid: None from the project, which is funded by sponsors and Patreon. The managed route is Supabase, which bundles PostgREST as its REST API: Free $0/mo, Pro from $25/mo, Team from $599/mo.

Completely free and open source. The managed version of this idea is Supabase, from $25/mo.

What to do by team size

Solo
free
Small team
free
Medium team
free; you need someone fluent in Postgres roles and row-level security
Large team
free; treat database grants as API security and review them that way
Self-hosting ops:moderate

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
90/100 · A+
Adoption27/30
Maintenance25/25
Community13/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 27,671 starsActive community: 1,228 forksCommunity discussions enabledOrganization account (12 public repos)

License: MIT License

Use freely, including commercial. Just keep the license.

Commercial use: ✓ Yes

About

Owner
PostgREST (Organization)
Stars
27,740
Forks
1,236

Explore Further

More tools in the directory