News for hackers. Stuff that matters.
Re:PostgREST – Serve a RESTful API from Any Postgres Database by valstu on Thursday December 29, 2022 @10:01AM (#34173248)
Are there any ”api from postgres db” projects that are written in Node.js?
Re:PostgREST – Serve a RESTful API from Any Postgres Database by redmacaron on Thursday December 29, 2022 @10:38AM (#34173685)
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/

Re:PostgREST – Serve a RESTful API from Any Postgres Database by aobdev on Thursday December 29, 2022 @10:15AM (#34173433)
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

It’s interesting to me that PostgREST and Hasura are written in Haskell, but PostGraphile is not. Given the complexity in parsing arbitrary GQL queries I think I assumed that Haskell was a better fit for the job, hence the mixup!

Re:PostgREST – Serve a RESTful API from Any Postgres Database by AprilArcus on Thursday December 29, 2022 @10:15AM (#34173427)
Re:PostgREST – Serve a RESTful API from Any Postgres Database by Sujan on Thursday December 29, 2022 @10:22AM (#34173508)
Prisma has pivoted to be “just” a Node.JS ORM a few years ago (I work there). You can still use it to build an API of course, but you will need some additional tool or libraries.
Re:PostgREST – Serve a RESTful API from Any Postgres Database by RedShift1 on Friday December 30, 2022 @05:45AM (#34183819)
Why did Prisma pivot to this? It sounded to me that offering a ready-to-go GraphQL API ala Firebase was a great idea and could certainly turn good profits.
Re:PostgREST – Serve a RESTful API from Any Postgres Database by Sujan on Thursday January 12, 2023 @03:10AM (#34350581)
Maybe.

We observed that people migrated off as soon as the applications went into production or were serious, as the database<->api approach did not actually give them all the flexibility they wanted.

(This was 3 years ago, the players that stayed in that market or entered later, of course learned from that and adapted. So I hear they are making their users happy. As are we as an ORM.)

Re:PostgREST – Serve a RESTful API from Any Postgres Database by smt88 on Thursday December 29, 2022 @10:12AM (#34173387)
Yes, but like kostlarge FOSS Node projects, they're dead or under-maintained (huge number of GitHub issues). There are none I'd use today.
Re:PostgREST – Serve a RESTful API from Any Postgres Database by adamnemecek on Thursday December 29, 2022 @01:01PM (#34175654)
Are you aware of supabase? It's rather nice.
Re:PostgREST – Serve a RESTful API from Any Postgres Database by fulafel on Thursday December 29, 2022 @03:55PM (#34177799)
Out of curiosity why would you prefer a DB foundation implemented in Node over a mature project in Haskell?