#6161st of 173 in Backends, databases and hosting

postgrest

REST API server generated directly from an existing PostgreSQL schema

Stars
27.8k
License
MIT
Last commit
Nov 2026
Last release
Oct 2026
Language
Haskell

Missed the latest GitHub check; these facts may be older.

Overview

PostgREST is a Haskell server, built on Warp and Hasql, that exposes tables and views of an existing PostgreSQL database as a RESTful API. Authentication uses JSON Web Tokens, and authorization is delegated to PostgreSQL roles, with JSON serialization and validation done in SQL. It is stateless and can be scaled horizontally.

Who it is for: Developers who want a REST API over an existing PostgreSQL database

Strengths

  • Authorization lives in database roles, giving one source of truth for security
  • Stateless server with a connection pool, so it scales horizontally
  • Generates OpenAPI documentation that Swagger-UI can render
  • API versioning through database schemas and views over underlying tables

Weaknesses

  • Works only with PostgreSQL, no other databases
  • Business logic must be written as SQL constraints, views and functions
  • Verifies JWTs but has no built-in user management or login
  • No built-in file storage, realtime or admin UI, unlike full backend platforms

What it needs

  • no GPU
  • Needs PostgreSQL

Also in Backends, databases and hosting

See all 173
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k stars+697 (+0.7%) in 30 dayscustom license93 out of 100
2traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.5k starsMIT93 out of 100
3appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58.1k stars+546 (+0.9%) in 30 daysBSD-3-Clause93 out of 100
#4ormTypeScript ORM for PostgreSQL and MongoDB with a plugin SPI and agent skills47.7k starsApache-2.093 out of 100
#5strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k starscustom license92 out of 100