2 ms·
I'm having a bit of difficulty understanding what supabase is. I thought it was a Postgres database that gave you a PostgREST HTTP API interface. If that's th
by LAC-Tech 4y ago
I'm having a bit of difficulty understanding what supabase is.
I thought it was a Postgres database that gave you a PostgREST HTTP API interface.
If that's the case... what does the javascript library do?
- tfsh 4y agoThe JS library is an interface to the HTTP API which handles functionality such as authentication, querying (and the likes) and more complex functionality such as real-time updates. I notice V2 also included auto-generated type defs for various table columns
- kiwicopple 4y agoyes you're right. The JS library is a thin wrapper around PostgREST's API (https://github.com/supabase/postgrest-js https://github.com/supabase/postgrest-js) Supabase now offers a few more features which integrate with the Postgres database - File Storage (s3), Authentication, Deno Functions, and Realtime (database change listeners). Each of these services is a standalone server and each has a corresponding JS library. "supabase-js" wraps up the modular JS libraries into a single library for convenience
- LAC-Tech 4y agoOk that puts in perspective. It's a convenience package not a must have.