0.0
The project is in a healthy, maintained state
Ruby client for Supabase: Auth, PostgREST, Storage, Edge Functions, and Realtime exposed through a single Supabase.create_client(supabase_url:, supabase_key:) factory, mirroring supabase-py's create_client().
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

~> 2.0
~> 2.8
 Project Readme

supabase-rb

Ruby License

Ruby client for Supabase. Single gem packaging Auth, PostgREST, Storage, Edge Functions, and Realtime behind one Supabase.create_client factory — mirroring supabase-py's create_client().

gem "supabase-rb"
require "supabase"
client = Supabase.create_client(supabase_url: ENV["SUPABASE_URL"],
                                supabase_key: ENV["SUPABASE_ANON_KEY"])

Module references (the Ruby port mirrors supabase-py's module layout):

Relevant links:

Local Development

Clone the Repository

git clone https://github.com/supabase-ruby/supabase-rb.git
cd supabase-rb

Dependencies

  • Ruby >= 3.0
  • Docker & Docker Compose (for Auth integration tests against live GoTrue)

Setup

bundle install

The repo's Gemfile loads the single supabase-rb gemspec, which packages every module under lib/supabase/.

Running tests

Auth integration specs need the GoTrue infrastructure on ports 9996–9999:

docker compose -f infra/docker-compose.yml up -d

Run the full suite:

bundle exec rspec

Run a single sub-library's specs:

bundle exec rspec spec/supabase/postgrest/
bundle exec rspec spec/supabase/storage/
bundle exec rspec spec/supabase/functions/
bundle exec rspec spec/supabase/realtime/
bundle exec rspec spec/supabase/client_spec.rb     # umbrella

Coverage is generated by SimpleCov to coverage/index.html.

License

MIT