Quickstart & reference
Three steps to your first transform.
Point Refract at an existing image origin and drive every transform from the URL. Originals are fetched on demand and edge-cached — never stored permanently.
Quickstart
Run log.
Create a key, connect your origin.
Create an API key and point Refract at your existing image origin. No re-upload — originals are fetched on demand.
Request your first transform.
Append parameters to any image path and request it straight from the edge.
Automate with the SDK.
Build request URLs in code with the JavaScript client.
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
Parameter reference
Ten chainable parameters.
A dash marks an unset channel. fm, q, and dpr are negotiated from the request's Accept and client headers.
Caching & limits
What the edge holds.
Point Refract at your origin; originals are fetched on demand and edge-cached up to 30 days, never stored permanently.