Learn Refract in three taps.
Each step is a node. Press one to open it, follow the path, and you have shipped your first transform — a key, an origin, and one URL.
Three nodes to your first render.
Create a key and connect your origin
Create an API key, then point Refract at an image origin you already have — a bucket, a CMS, any public URL. There is no re-upload: originals are fetched on demand and cached at the edge, never stored permanently.
Request your first transform
Append parameters to the source path. This one asks for a 1200px-wide render, the best format the browser accepts, and quality 80.
https://demo.refract.dev/hero.jpg?w=1200&fm=auto&q=80
Automate with the SDK
Build the same URL in code. The SDK returns a plain string you can drop into any src attribute.
import { refract } from "@refract/js";
const url = refract("hero.jpg", { width: 1200, format: "auto", quality: 80 });
// → https://demo.refract.dev/hero.jpg?w=1200&fm=auto&q=80
Ten parameters, chainable in any order.
Set them on the query string or through the SDK. Three are content-negotiated from the request and marked Negotiated.