Overview
Snap Cloud, powered by Supabase, is the backend for SPECS Lenses: a database, edge functions, storage, and realtime sync, set up from Lens Studio.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported
- SPECSFully supported
- Camera Kit WebNot supported
- Camera Kit MobileNot supported
Snap Cloud is an integrated backend platform for SPECS Lenses, powered by Supabase. With little setup, a Lens gets a database, file storage, server-side functions, and realtime connections: data that persists and stays in sync across sessions and devices, content storage, and trusted logic that runs on a server instead of in the Lens.
Snap Cloud connects to Lens Studio through the Supabase plugin, which comes with the Supabase Client package. From its Supabase panel you create Snap Cloud projects and bring their credentials into your Lens.
Snap Cloud is in alpha.
What Snap Cloud provides
- Databases: a fully managed, scalable PostgreSQL database for each project. Lenses query and update it with API calls, and the data stays secure, consistent, and available across devices, for persistent, context-aware AR features. For example, track progress in an AR scavenger hunt across sessions, or share AR assets between users.
- Edge Functions: custom server-side TypeScript or JavaScript logic that a Lens calls on demand, run close to your users with low latency, for content generation, game logic, calls to third-party systems, or media processing.
- Storage: upload, organize, and retrieve any type of file from a Lens: images, videos, 3D models, or content your users create. Fine-grained permissions control who can read or add to each bucket. Store the assets that power your experience, let players upload and share content, or cache images for social challenges.
- Realtime: instant, two-way sync for collaborative and dynamic AR experiences. Subscribe to live changes in your database tables, broadcast messages to other Lens clients in milliseconds, sync state across clients, or keep a live connection to a backend service.
Tools and limits
- CLI: manage databases and storage and deploy edge functions from a terminal.
- Limits: the platform limits for projects, databases, functions, storage, and realtime.
Where to start
- Get Started: install the package, create a project, and sign the user in from a script.
- Databases: your first table.
- Examples: the Snap Cloud Examples package, with a working example for every service, a media suite, and a global leaderboard.
For the full Snap Cloud reference, see the Snap Cloud documentation site.