wa1aric / supabase-js-rs

Rust bindings for Supabase JavaScript library via WebAssembly

Home Page:https://sycamore-supabase-js-rs-auth-demo.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

supabase-js-rs

Rust bindings for Supabase JavaScript library via WebAssembly.

Supabase Wasm

Usage

Add supabase-js-rs to Cargo.toml

supabase-js-rs = { version = "0.1.2" }
wasm-bindgen = "0.2.83"

or using a git dependency

supabase-js-rs = { git = "https://github.com/wa1aric/supabase-js-rs", rev = "ada414750f6e5baa2f4729304c53aed3b2d9515e" }
wasm-bindgen = "0.2.83"

Install @supabase/supabase-js as package by adding CDN link to index.html in the root of your crate

<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>

Build and run

trunk serve

Examples

What I've done so far

  • Auth
    • Create a new user
    • Sign in a user
    • Sign in a user through OTP
    • Sign in a user through OAuth
    • Sign out a user
    • Verify and log in through OTP
    • Retrieve a session
    • Retrieve a new session
    • Retrieve a user
    • Update a user
    • Set the session data
    • Listen to auth events
    • Send a password reset request
    • Enroll a factor
    • Create a challenge
    • Verify a challenge
    • Create and verify a challenge
    • Unenroll a factor
    • Get Authenticator Assurance Level
    • Anonymous sign in
  • Database
    • Fetch data
    • Insert data
    • Update data
    • Upsert data
    • Delete data
    • Call a Postgres function
    • Using filters
    • Using Modifiers
  • Functions
  • Realtime
  • Storage

About

Rust bindings for Supabase JavaScript library via WebAssembly

https://sycamore-supabase-js-rs-auth-demo.netlify.app

License:MIT License


Languages

Language:Rust 100.0%