PostgREST โ€“ Serve a RESTful API from Any Postgres Database

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB โ€“ Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. django-rest-framework

    Web APIs for Django. ๐ŸŽธ

  2. InfluxDB

    InfluxDB โ€“ Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. postgrest

    REST API for any Postgres database

    For how often Nix is mentioned here on HackerNews, has anybody looked at the Nix config files for this repo to build it locally?

    https://github.com/PostgREST/postgrest/blob/main/cabal.proje...

  4. pocketbase

    Open Source realtime backend in 1 file

    Absolutely love pocketbase.

    And, interesting to note that using stored procedures within pocketbase isn't well supported because they do a dry run insert to check against constraints and then delete it if the constant fails.

    https://github.com/pocketbase/pocketbase/discussions/650#dis...

    I mention this because the OP inquired about stored procedures.

    Still, pocketbase is so amazing.

  5. react-admin

    A frontend Framework for single-page applications on top of REST/GraphQL APIs, using TypeScript, React and Material Design

    1 year ago: https://news.ycombinator.com/item?id=29389576

    It's an insanely cool project, but I've yet to find a truly fitting use case for it. In theory, PostgREST combined with something like https://marmelab.com/react-admin/ should give you a free back-end and admin panel for most projects, but in practice, I've always found that all kinds of 'small details' won't be quite right out of the box, and that customization is really hard...

  6. graphile-engine

    Monorepo home of graphile-build, graphile-build-pg, graphile-utils, postgraphile-core and graphql-parse-resolve-info. Build a high-performance easily-extensible GraphQL schema by combining plugins!

  7. crystal

    ๐Ÿ”ฎ Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more! (by graphile)

    I was about to say โ€œbut this one is!โ€ and realized I had confused PostgREST with PostGraphile. If youโ€™re interested in GraphQL, you can check out PostGraphile here: https://github.com/graphile/postgraphile

  8. Directus

    The flexible backend for all your projects ๐Ÿฐ Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

    Directus is actually one. You get the front end which is basically an admin UI, but you also get a full blown fully featured REST API

    https://directus.io/

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. auth

    A JWT based API for managing users and issuing JWT tokens (by supabase)

    we integrated Gotrue with PostgREST at Supabase and it works beautifully together https://github.com/supabase/gotrue (forked from Netlify)

  11. postgresql-replicant

    A streaming PostgreSQL logical replication client library for Haskell

    You can use a library like https://github.com/agentultra/postgresql-replicant or similar to hook in a data plane and use PostgREST as a data plane.

    Your business logic works on the event stream that comes from the WAL.

  12. postgrest-starter-kit

    Discontinued Starter Kit and tooling for authoring REST API backends with PostgREST

    I think the recommended way to use Postgrest is to put a layer of views and optionally stored functions on top of your schema to decouple it from your API. Take a look at this Postgrest starter kit[1] which uses a separate API schema for this purpose.

    [1] https://github.com/subzerocloud/postgrest-starter-kit

  13. postgres-websockets

    PostgreSQL + Websockets

  14. roapi

    Create full-fledged APIs for slowly moving datasets without writing a single line of code.

    > why not just accept SQL and cut out all the unnecessary mapping?

    You might be interested in what we're building: Seafowl, a database designed for running analytical SQL queries straight from the user's browser, with HTTP CDN-friendly caching [0]. It's a second iteration of the Splitgraph DDN [1] which we built on top of PostgreSQL (Seafowl is much faster for this use case, since it's based on Apache DataFusion + Parquet).

    The tradeoff for allowing the client to run any SQL vs a limited API is that PostgREST-style queries have a fairly predictable and low overhead, but aren't as powerful as fully-fledged SQL with aggregations, joins, window functions and CTEs, which have their uses in interactive dashboards to reduce the amount of data that has to be processed on the client.

    There's also ROAPI [2] which is a read-only SQL API that you can deploy in front of a database / other data source (though in case of using databases as a data source, it's only for tables that fit in memory).

    [0] https://seafowl.io/

    [1] https://www.splitgraph.com/connect

    [2] https://github.com/roapi/roapi

  15. seafowl

    Analytical database for data-driven Web applications ๐Ÿชถ

    > why not just accept SQL and cut out all the unnecessary mapping?

    You might be interested in what we're building: Seafowl, a database designed for running analytical SQL queries straight from the user's browser, with HTTP CDN-friendly caching [0]. It's a second iteration of the Splitgraph DDN [1] which we built on top of PostgreSQL (Seafowl is much faster for this use case, since it's based on Apache DataFusion + Parquet).

    The tradeoff for allowing the client to run any SQL vs a limited API is that PostgREST-style queries have a fairly predictable and low overhead, but aren't as powerful as fully-fledged SQL with aggregations, joins, window functions and CTEs, which have their uses in interactive dashboards to reduce the amount of data that has to be processed on the client.

    There's also ROAPI [2] which is a read-only SQL API that you can deploy in front of a database / other data source (though in case of using databases as a data source, it's only for tables that fit in memory).

    [0] https://seafowl.io/

    [1] https://www.splitgraph.com/connect

    [2] https://github.com/roapi/roapi

  16. nix

    Nix, the purely functional package manager

    https://github.com/PostgREST/postgrest/tree/main/nix

    I couldn't for the life of me figure out how to play with this. I kind of don't believe "docker build ." is worse but I might be missing something.

    After I ejected out of playing with it on Mac OS, I found: https://github.com/NixOS/nix/issues/458#issuecomment-1019743...

    Over 13 parts to remove NixOS from Mac OS, involving reboots, /etc/fstab, OS level users, daemons, etc.

  17. annuaire-entreprises-sirene-api

    One of the project which list all the data for entreprise addresses uses Postgrest (open data SIRENE de l'INSEE).

    Full fledge project implemented, interesting use of PostgREST

    https://github.com/etalab/annuaire-entreprises-sirene-api

  18. datasette

    An open source multi-tool for exploring and publishing data

  19. pREST

    PostgreSQL โž• REST, low-code, simplify and accelerate development, โšก instant, realtime, high-performance on any Postgres application, existing or new

    Pretty sure I started with this: https://github.com/prest/prest/blob/main/cmd/root.go

    And from there you can execute your own command and add handlers or other things as you wish.

  20. SQLAlchemy

    The Database Toolkit for Python

  21. showcase

    Discontinued REST api for your database (PostgreSQL/Sqlite/ClickHouse/MySQL). [GET https://api.github.com/repos/subzerocloud/showcase: 404 - Not Found // See: https://docs.github.com/rest]

    Soon (in the works now, it will be particularly interesting in the context of cloudflare workers talking to planetscale)

    https://github.com/subzerocloud/showcase

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Automatically Generate REST and GraphQL APIs From Your Database

    14 projects | dev.to | 19 Dec 2024
  • The API database architecture โ€“ Stop writing HTTP-GET endpoints

    11 projects | news.ycombinator.com | 10 May 2024
  • PostgREST: Providing HTML Content Using Htmx

    12 projects | news.ycombinator.com | 18 Dec 2023
  • Auto generating API schema code?

    5 projects | /r/PostgreSQL | 29 Aug 2021
  • DB2Rest VS postgrest - a user suggested alternative

    2 projects | 8 Jan 2024

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?