specs-snap-cloud

Connect Specs Lenses to Snap Cloud backends for databases, realtime sync, storage, and edge functions.

16|2|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/lens-studio-devs/ls-extensions --skill specs-snap-cloud-lens-studio-devs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: specs-snap-cloud
Source: https://github.com/lens-studio-devs/ls-extensions/tree/main/plugins/ls-clad/skills/specs-snap-cloud
Command: npx skills add https://github.com/lens-studio-devs/ls-extensions --skill specs-snap-cloud-lens-studio-devs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building connected Specs Lenses requires a cloud backend for persistent data, multiplayer sync, and media storage, but wiring Supabase into Lens Studio involves editor friction, auth quirks, and platform-specific limits. This Skill provides the complete workflow for connecting Lenses to Snap Cloud (powered by Supabase) with minimal manual steps. ## Core Features & Use Cases - Agent-Driven Setup: Generate .supabaseProject assets, run CLI migrations, deploy edge functions, and manage secrets entirely from the terminal with only a one-time browser login. - Full Backend Coverage: Database CRUD with RLS, Realtime broadcast and Postgres changes, Storage upload/download for images, GLTF models, and audio, plus Deno-based edge functions. - Media Capture & Streaming: Capture camera images, video frames, and microphone audio on Specs, upload to Storage, or stream live over Realtime channels. - Use Case: Build a global leaderboard Lens where scores persist per user, sync in realtime across players, and captured photos upload to a shared cloud bucket. ## Quick Start Use the specs-snap-cloud skill to set up a Snap Cloud backend for my Lens with a leaderboard table and realtime sync.

Frequently Asked Questions about specs-snap-cloud

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Lens Studio Lens to Supabase?▼

Install the SnapCloud/SupabaseClient package from the Asset Library, create a Supabase project, and generate a .supabaseProject asset containing the project URL and anon key. Then call createClient with those credentials and sign in using signInWithIdToken with the snapchat provider.

How do I set up Snap Cloud without using the Lens Studio editor?▼

Use the Supabase CLI with the snap profile: run supabase login once in a browser, then create projects, extract API keys, and generate the .supabaseProject YAML asset directly into Assets/. Migrations, edge functions, and storage buckets all deploy via CLI commands.

Why does signInWithIdToken fail in Lens Studio preview?▼

signInWithIdToken always fails in Lens Studio preview because the Snapchat OIDC token is unavailable outside the device. Use signInAnonymously as a fallback, enabled via the Supabase Dashboard under Authentication Providers, since config push is blocked on Snap Cloud.

What are the Snap Cloud realtime and storage limits?▼

Realtime supports 200 peak concurrent connections, 250 KB max message size, and 2 million messages per month. Storage allows 1 GB total with a 50 MB maximum file size. Keep streamed video frames at low quality and reduced resolution to stay under the message limit.

Can I use the Supabase MCP server to modify my Snap Cloud project?▼

MCP tools should be used for read-only operations only. Writes such as migrations, deployments, and SQL mutations require explicit user confirmation first, and the execute_sql tool must be restricted to SELECT queries since it can execute any SQL.

How do I upload camera captures from Specs to cloud storage?▼

Request an image via CameraModule, encode it with Base64.encodeJpeg, convert to a Uint8Array, and upload with client.storage.from(bucket).upload using a user-scoped path like captures/<uid>_<timestamp>.jpg. Sign in first so RLS policies permit the write.