Generate screenshots from Supabase Edge Functions using Deno. Send a URL and dimensions, get back a PNG -- perfect for thumbnails, previews, and social images in your Supabase-powered app.
Scaffold a new Supabase Edge Function using the CLI:
Replace the default function code with a screenshot handler that accepts a JSON body with url, width, and height parameters:
Add your ShotLayer API key as a secret and deploy the function in a single command:
Get a free API key at shotlayer.dev -- no credit card required.
Invoke the edge function from your frontend or backend using the Supabase client:
your-app.tsThis is perfect for generating link previews, PDF thumbnails, or social images and storing them in Supabase Storage alongside your other assets.
Get a free API key and deploy your edge function in minutes.
Get API Key Free →