Snap Cloud
Snap Cloud authentication and databases through SupabaseModule and SupabaseProject.
Commonly used
SupabaseModuleProvides access to Supabase authentication and database capabilities.SupabaseProjectRepresents a Supabase project with configuration details.
Guides
Global Leaderboard (Snap Cloud)Build a global leaderboard for a SPECS Lens on Snap Cloud with the Global Leaderboard example: one best score per user, stored and ranked by RPC functions.Get StartedSet up Snap Cloud for a SPECS Lens: install the Supabase Client package, log in, create a project, import its credentials, and sign the user in from a script.DatabasesCreate a Snap Cloud database table with row level security and insert, select, update, and delete its rows from a SPECS Lens.Edge FunctionsDeploy a Snap Cloud edge function from the dashboard and call it from a SPECS Lens, with a sum example and an image round trip through Storage.ExamplesThe Snap Cloud Examples package for SPECS Lenses: working examples of authentication, databases, storage, realtime, edge functions, media capture, and a global leaderboard.RealtimeSubscribe a SPECS Lens to Snap Cloud Realtime channels: receive broadcasts, listen for database changes, and stream a cursor position to a web page.
All APIs in this topic
Reference assets and other modules with a script input and require modules with require('LensStudio:<name>').
Components, assets, and modules
| API | Description |
|---|---|
| SupabaseModule SPECS | Provides access to Supabase authentication and database capabilities. |
| SupabaseProject SPECS | Represents a Supabase project with configuration details. |