How to connect to Supabase's JS Client Library?

Hello! I am new to Retool, I'm trying to access files in my Supabase storage to display in my app and allow users to access them. I want to use Supabase's Javascript client library to do so.

I've looked through similar posts and have attempted to add the library to the libraries tab within my project. Supabase provides two CDN links, which I have tried both :
"https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"
"https://unpkg.com/@supabase/supabase-js@2"

However, it doesn't seem to work. I tried checking by running

return Object.keys(window)

and supabase does not show up. I tried using a REST query as well, but I had trouble finding the endpoints specifically for Supabase's storage.

Is there a way to import the library into Retool?

Any help will be much appreciated :slight_smile:

Hi @m_tea,

Thanks for reaching out :slightly_smiling_face:

Hmm I haven't found a compatible library link yet, but I see this older post where someone is using the API. If possible, I recommend trying to use the API so that you can set up authentication on the resource configuration.

I haven't used their API myself, but maybe this doc will help track down the endpoints you need