Overview
To dive right in, refer to our Getting Started Guide.
For full reference documentation, refer to the Snap Cloud documentation site.
Alpha
Snap Cloud powered by Supabase is currently in alpha. Apply for the alpha program to access Snap Cloud for your Spectacles projects.
Snap Cloud is an integrated backend platform powered by Supabase. Snap Cloud adds backend capabilities to your Spectacles Lenses: with minimal setup, you can incorporate databases, storage, edge functions, and realtime connectivity into your projects. These capabilities provide a wealth of backend functionality to Spectacles developers, including seamless data synchronization, content storage, and execution of trusted server-side logic.
Snap Cloud seamlessly connects with Lens Studio, enabling you create backend instances for your Lenses with minimal configuration steps, using the Supabase Plugin.
Databases
Snap Cloud provides a fully-managed, scalable PostgreSQL database for your Lenses. Lenses can query and update the database using simple API calls. Your data stays secure, consistent, and instantly available across devices, letting you build persistent, context-aware AR features. For example, use the database to track progress in an AR scavenger hunt across multiple sessions or to share AR assets between users.
Edge Functions
Edge Functions allow you to run custom, server-side TypeScript/JavaScript logic close to your users, with ultra-low latency. Edge Functions can be used for a variety of tasks: content generation, game logic, interfacing with 3rd party systems, and media processing are just some examples.
Storage
Snap Cloud Storage can be used to securely upload, organize, and retrieve any type of file from within your Lens; e.g. images, videos, 3D models, or user-generated assets. With fine-grained permissions, you control who can access or contribute to your collections. Store assets that power your AR experiences, enable players to upload and share content, or cache images for social challenges.
Realtime
Snap Cloud’s Realtime feature enables instant, bi-directional data sync for collaborative and dynamic AR experiences. Subscribe to live updates from your database tables and broadcast changes to Lens clients in milliseconds. Use Realtime to synchronized state across clients or establish live connections to backend services.