# supabase-js-rs Rust bindings for [Supabase](https://supabase.com/) JavaScript library via WebAssembly. ![Supabase Wasm](https://repository-images.githubusercontent.com/579711492/4e814ba5-3ea3-4678-906b-6595f7972928) ## 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 ``` ``` Build and run ``` trunk serve ``` ## Examples - [x] [Sycamore Auth](https://github.com/wa1aric/supabase-js-rs/tree/master/examples/sycamore-auth) - [x] [Sycamore Guestbook](https://github.com/wa1aric/supabase-js-rs/tree/master/examples/sycamore-guestbook) - [x] [Sycamore Realtime](https://github.com/wa1aric/supabase-js-rs/tree/master/examples/sycamore-realtime-chat) - [ ] Perseus - [x] [Yew Auth](https://github.com/wa1aric/supabase-js-rs/tree/master/examples/yew-supabase-auth) - [ ] Seed - [x] [Leptos OAuth](https://github.com/wa1aric/supabase-js-rs/tree/master/examples/leptos-oauth) - [ ] MoonZoon ## What I've done so far - [ ] Auth - [x] Create a new user - [x] Sign in a user - [x] Sign in a user through OTP - [x] Sign in a user through OAuth - [x] Sign out a user - [ ] Verify and log in through OTP - [x] Retrieve a session - [x] Retrieve a new session - [x] Retrieve a user - [x] Update a user - [X] Set the session data - [x] Listen to auth events - [x] 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 - [x] Fetch data - [x] Insert data - [ ] Update data - [ ] Upsert data - [x] Delete data - [ ] Call a Postgres function - [x] Using filters - [x] Using Modifiers - [ ] Functions - [x] Realtime - [ ] Storage