Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wa1aric/supabase-js-rs
Rust bindings for Supabase JavaScript library via WebAssembly
https://github.com/wa1aric/supabase-js-rs
hackathon supabase-js wasm-bindgen
Last synced: 3 months ago
JSON representation
Rust bindings for Supabase JavaScript library via WebAssembly
- Host: GitHub
- URL: https://github.com/wa1aric/supabase-js-rs
- Owner: wa1aric
- License: mit
- Created: 2022-12-18T16:30:45.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T09:15:44.000Z (9 months ago)
- Last Synced: 2024-04-26T09:32:57.445Z (9 months ago)
- Topics: hackathon, supabase-js, wasm-bindgen
- Language: Rust
- Homepage: https://sycamore-supabase-js-rs-auth-demo.netlify.app
- Size: 50.8 KB
- Stars: 21
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
- [x] Anonymous sign in
- [ ] Database
- [x] Fetch data
- [x] Insert data
- [x] Update data
- [x] Upsert data
- [x] Delete data
- [ ] Call a Postgres function
- [x] Using filters
- [x] Using Modifiers
- [ ] Functions
- [x] Realtime
- [ ] Storage