Hacker News new | ask | show | jobs
by LAC-Tech 1403 days 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?

2 comments

The 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
yes you're right. The JS library is a thin wrapper around PostgREST's API (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

Ok that puts in perspective. It's a convenience package not a must have.