Supabase bucket storage extension in Raycast

Uploading and view media to and from my blog supabase bucket

Aight, so now that I have my Upload Media Raycast script and my Raycast Extension build post, it's time to write myself an Extension version of the script!

fuuuuuuuusioooooooooon HAAAAAAAAAA

The main thing I need to determine is how to best handle secrets. Per a conversation with Perplexity.ai, it appears that I should be using the preferences api, and can store my secrets in my Apple Keychain.

First step so to copy me existing extension into my new extension dir to get something going.

I'll also need to determine which APIs I want to hit. Here is the API spec for Supabase buckets - for safe keeping.

Fast Forward & it's done!

Here it is!

and here is the uploaded image in bucket storage - I digitally altered image of what appears to be a window to a colorful city through a window in the ceiling. Made in Luminframe.com

Permissions -

Managing secrets is straight forward.

  1. Define your secrets as 'preferences' - here
  2. configure the extension with your secrets values

 configuring secrets for my Raycast extension

Multiple commands in the same extension

My extension can read and write, via two separate commands. There commands are established in the package json , and require top-level files with the same name to serve as entry point. for example

The developer experience

As a React developer, this is heaven. The API is limited, but I haven't wanted for anything unavailable. It is simple and it works. npm run dev runs the extension in developer mode, and then control + c publishes the extension to your Raycast instance.