Analysis updated 2026-08-10 · repo last pushed 2023-12-06
Read and write data from a Supabase PostgreSQL database in a browser-based web app.
Interact with a PostgREST endpoint from a server-rendered site using the same chainable commands.
Use the library in restricted hosting environments like Cloudflare Workers by swapping in a custom fetch implementation.
| laurenceisla/postgrest-js | 000madz000/rfid-attendance | 00kaku/gallery-slider-block | |
|---|---|---|---|
| Language | — | TypeScript | JavaScript |
| Last pushed | 2023-12-06 | 2024-07-22 | 2021-05-19 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires a running PostgREST endpoint URL to initialize the client and begin querying data.
postgrest-js is a JavaScript library that lets your web app talk to a database through a REST API in a clean, readable way. Instead of writing raw HTTP requests or complex SQL queries, you get simple, chainable commands like select(), insert(), update(), and delete() that feel like using an ORM (object-relational mapper). It is built by the team at Supabase. At a high level, the library works as a middleman between your JavaScript code and a tool called PostgREST, which automatically turns a PostgreSQL database into a web API. You initialize the library by giving it the URL of your PostgREST endpoint. From there, you use its built-in methods to read or write data. The library handles the work of translating your JavaScript commands into the correct HTTP requests behind the scenes. The library is "isomorphic," meaning it runs both in the browser and on a Node.js server. For developers building apps with Supabase, this client is useful for interacting with a database without needing to write backend code. Because it works across different environments, the same code can be used whether the project is a client-side web app, a server-rendered site, or a static site generator. Notably, the library allows developers to swap out the default HTTP request mechanism for a custom one. This is a practical tradeoff for compatibility. The default setup uses a package that works across most platforms, but in specific edge cases like Cloudflare Workers, that default package may not function. By allowing a custom fetch implementation, developers can keep using this library even in unusual or restricted hosting environments.
A JavaScript library that lets your web app talk to a PostgreSQL database through a REST API using simple, chainable commands instead of raw HTTP requests or SQL queries. Built by the Supabase team.
Dormant — no commits in 2+ years (last push 2023-12-06).
No license information was provided in the explanation.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.