Supabase (supabase_potion v0.5.1)

The main entrypoint for the Supabase SDK library.

Starting a Client

You then can start a Client calling Supabase.init_client/3:

iex> Supabase.init_client("base_url", "api_key", %{db: %{schema: "public"}})
{:ok, %Supabase.Client{}}

Acknowledgements

This package represents the base SDK for Supabase. That means that it not includes all of the functionality of the Supabase client integrations, so you need to install each feature separetely, as:

Supabase Storage

Supabase Storage is a service for developers to store large objects like images, videos, and other files. It is a hosted object storage service, like AWS S3, but with a simple API and strong consistency.

Supabase PostgREST

PostgREST is a web server that turns your PostgreSQL database directly into a RESTful API. The structural constraints and permissions in the database determine the API endpoints and operations.

Supabase Realtime

Supabase Realtime provides a realtime websocket API powered by PostgreSQL notifications. It allows you to listen to changes in your database, and instantly receive updates as soon as they happen.

Supabase Auth/GoTrue

Supabase Auth is a feature-complete user authentication system. It provides email & password sign in, email verification, password recovery, session management, and more, out of the box.

Supabase UI

Supabase UI is a set of UI components that help you quickly build Supabase-powered applications. It is built on top of Tailwind CSS and Headless UI, and is fully customizable. The package provides Phoenix.LiveView components!

Summary

Functions

Link to this function

init_client(url, api_key, opts \\ %{})

@spec init_client(String.t(), String.t(), Supabase.Client.params() | %{}) ::
  {:ok, Supabase.Client.t()} | {:error, changeset()}
Link to this function

init_client!(url, api_key, opts \\ %{})

@spec init_client!(String.t(), String.t(), Supabase.Client.params() | %{}) ::
  Supabase.Client.t() | no_return()