qmetrics.net

PostgREST

RESTful HTTP API server from existing PostgreSQL databases

PostgREST screenshot

PostgREST is a standalone web server that exposes tables and views in PostgreSQL as a REST API. Database schemas, constraints, and role permissions define available endpoints and access rules.

Overview

PostgREST turns an existing PostgreSQL database into a RESTful HTTP API without hand-written CRUD application code. Endpoints and allowed operations come from the database structure—schemas, views, constraints, and PostgreSQL roles—so authorization and validation can stay declared in the database rather than duplicated in application layers.

The server is written in Haskell and uses a connection pool with PostgreSQL’s binary protocol. Much work is pushed into the database, including JSON serialization in SQL, combined row counting and retrieval, and JWT-based authentication with authorization enforced through database roles.

API versioning is handled through database schemas, allowing public views to hide evolving underlying tables. OpenAPI documentation can be generated from the live API, and HTTP range headers report and limit row counts. PUT requests are constrained to be idempotent.

You install PostgREST on your platform or run it via Docker and point it at PostgreSQL. It is designed to sit behind tools such as Nginx and to scale horizontally as a stateless service. Integrations mentioned in the ecosystem include PostGIS, pg-safeupdate, systemd, and NixOS deployments.

Key features

  • Auto-generated REST endpoints from PostgreSQL
  • JWT authentication with database role delegation
  • OpenAPI self-documentation
  • Schema-based API versioning
  • Connection pooling via Hasql
  • Row count and limit via HTTP ranges
  • Idempotent PUT safeguards
  • Docker and platform install options

Use cases

  • Rapid APIs over existing Postgres schemas
  • Microservices with SQL-centric business logic
  • Replacing custom CRUD API servers
  • Exposing read/write data behind Nginx
  • Horizontally scaled stateless data APIs

Tags

Similar software

Parse Server

Node.js backend for mobile and web applications

Parse Server is a backend you deploy on Node.js infrastructure. It integrates with Express and can run alone or inside existing web apps.

★ 21.4k⟳ yesterdayApache-2.0
Open Source Alternative to:Firebase

Data API Builder

No-code REST, GraphQL, and MCP over databases

Data API Builder exposes secure CRUD REST and GraphQL endpoints, plus MCP tools, from configured database tables without hand-written API code.

★ 1.6k⟳ 2 days agoMIT

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT