qmetrics.net

PostgREST

RESTful HTTP API server from existing PostgreSQL databases

DatabasesSelf-hostable
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

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.

  • Dedicated Postgres per project
  • Built-in authentication and RLS
  • Auto-generated REST and GraphQL APIs
TypeScriptDetails →
★ 115.9k⟳ todayApache-2.0
Open Source Alternative to:Amazon AuroraFirebase+1

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

  • Spreadsheet-style grid and alternate views
  • Connect Postgres, MySQL, or SQLite
  • Role-based access and locked views
TypeScriptDockerDetails →
★ 65.7k⟳ todaySource-available
DatabasesSelf-hostable
Alternative to:AirtableGoogle Sheets+1

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

  • Strongly consistent Raft replication
  • gRPC and HTTP key-value API
  • Watch keys and directories for changes
GoLinux, macOS, Windows, DockerDetails →
★ 52.7k⟳ yesterdayApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

  • SQL and schema editors
  • Data grid editing
  • ER diagram modeling
JavaLinux, macOS, WindowsDetails →
★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+4

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

  • Column-oriented OLAP storage
  • Real-time analytical SQL queries
  • High compression for large datasets
C++Linux, macOSDetails →
★ 51.4k⟳ todayApache-2.0
Open Source Alternative to:Amazon RedshiftBigQuery+1

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT