supabase-js-rs

Crates.iosupabase-js-rs
lib.rssupabase-js-rs
version0.1.3
sourcesrc
created_at2022-12-18 16:34:15.179085
updated_at2024-04-25 09:23:23.699689
descriptionRust bindings for Supabase JavaScript library via WebAssembly
homepage
repositoryhttps://github.com/wa1aric/supabase-js-rs/
max_upload_size
id740485
size25,749
Valery Stepanov (wa1aric)

documentation

README

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
  • Database
    • Fetch data
    • Insert data
    • Update data
    • Upsert data
    • Delete data
    • Call a Postgres function
    • Using filters
    • Using Modifiers
  • Functions
  • Realtime
  • Storage
Commit count: 63

cargo fmt