postgrest/postgrest

REST API for any Postgres database

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Added to GitGenius on September 2nd, 2026
Created on June 13th, 2014
Open Issues & Pull Requests: 403 (+0)
GitHub issues: Enabled
Number of forks: 1,226
Total Stargazers: 27,643 (+0)
Total Subscribers: 328 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

PostgREST is a REST API server that automatically exposes any PostgreSQL database as a fully RESTful API.

The tool solves the problem of building custom API layers on top of existing databases by eliminating the need to write one. Instead of hand-coding endpoints, routes, and business logic, PostgREST introspects the database schema and generates a standards-compliant REST interface automatically. It delegates heavy lifting to the database itself, including JSON serialization, data validation, authorization checks, and row counting, rather than implementing these in application code.

PostgREST suits teams with existing PostgreSQL databases who want to expose them via HTTP without building a custom backend. It works well for projects where the database schema is the source of truth and where you want security and authorization rules defined declaratively at the database level using roles. The tool is particularly valuable when performance matters, as it achieves subsecond response times and handles thousands of requests per second by running on compiled Haskell with the Warp HTTP server, maintaining a connection pool, and using PostgreSQL's binary protocol. It handles authentication via JSON Web Tokens and delegates all authorization to database roles, ensuring a single source of truth for access control.

The project maintains active development with regular updates and improvements. The codebase shows consistent attention to performance optimization and security hardening. Documentation is comprehensive and actively maintained alongside the core tool. The project has established backing from multiple organizations in the PostgreSQL ecosystem, indicating sustained confidence in its direction and viability.