What you build with
Everything the admin can do, you can do from code. The API comes with an OpenAPI spec, scoped API keys, a typed TypeScript SDK and a CLI.
Upload from the terminal
Point it at a Lightroom or Capture One export. Run it again later and only new or edited files are sent, from any computer.
$ npx fotoree push ./export -g smith-wedding \
--create --client jane@example.com \
--visibility password --password confetti
Script it in TypeScript
Typed from the OpenAPI spec, with no dependencies. Runs on Node, Bun, Deno and edge runtimes.
import { Fotoree } from "@fotoree/sdk";
const fotoree = new Fotoree({ baseUrl, apiKey });
const photo = await fotoree.photos.upload(galleryId, { file });
await fotoree.photos.waitUntilReady(photo.id);
React when photos are ready
Signed webhooks for photos, galleries, clients and downloads, retried for a day if your endpoint is down.
const event = await verifyWebhook(body, headers, secret);
if (event.type === "photo.ready") {
await emailClient(event.data.id);
}
Change how photos are processed
Set the sizes and quality, add a watermark, or edit each photo with sharp before it's resized.
export default defineConfig({
images: {
widths: [320, 800, 1600, 2400],
watermark: { image: "public/mark.png", position: "bottom-right" },
},
});