The video uses a specific AI coding tool to demonstrate the setup, but the configuration works 1:1 with Cursor, Claude Code, or any other tool. Despia is web framework and tooling agnostic, so the only thing that matters is passing a publicly accessible image URL into the SDK call.
savethisimage:// is fire-and-forget. The native runtime fetches the image at the URL you pass, writes it to the device’s photo gallery, and returns immediately. The user sees the standard system save confirmation. Your JavaScript keeps running in parallel.
Installation
- Bundle
- CDN
How it works
Pass a publicly accessible HTTPS URL into theurl parameter. Encode the URL with encodeURIComponent so query strings and special characters survive the trip through the scheme handler.
Save a remote image directly
The simplest case is saving an image you already have a CDN URL for, such as a generated image returned by your backend or a piece of content the user is viewing.Save a canvas or generated image
Canvas exports and dynamically generated images come back as data URLs or blobs by default, neither of whichsavethisimage:// accepts. Upload the bytes to your storage layer first, then pass the resulting public URL into the SDK call.
Save an image already shown on the page
If the image is already rendered with a CDN-hostedsrc, you can read the URL straight off the DOM. Do not pass the rendered element, the runtime needs the original network URL.
URL.createObjectURL(blob) for display purposes and then tries to save the resulting blob: URL, which silently fails on the native side.
Resources
NPM Package
despia-native