Integrations
Spronta is framework-agnostic. The API is REST, the CDN is a URL. There's no SDK to install — it works with everything.
// next.config.ts
const nextConfig = {
images: {
remotePatterns: [{ hostname: "cdn.spronta.com" }],
},
};
// In your component — Next.js Image + Spronta transforms
import Image from "next/image";
<Image
src={`https://cdn.spronta.com/${projectId}/${imageId}`}
width={800}
height={600}
alt="Product photo"
/>
// Or use Spronta's URL params directly for full control
const src = `https://cdn.spronta.com/${projectId}/${imageId}?w=800&fit=cover`;// Upload an image from Node.js
const { uploadUrl, imageId } = await fetch(
`https://app.spronta.com/api/images/projects/${PROJECT_ID}/upload`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
filename: "photo.jpg",
contentType: "image/jpeg",
fileSize: buffer.byteLength,
}),
}
).then((r) => r.json());
// Upload directly to R2
await fetch(uploadUrl, { method: "PUT", body: buffer });
// Confirm and get CDN URL
const { url } = await fetch(
`https://app.spronta.com/api/images/projects/${PROJECT_ID}/upload/confirm`,
{
method: "POST",
headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ imageId }),
}
).then((r) => r.json());
// url = "https://cdn.spronta.com/{projectId}/{imageId}"
console.log(`${url}?w=400&fit=cover`);Next.js
App Router & Pages Router
React
Hooks, components, SSR
Vue
Vue 3 & Nuxt
Svelte
SvelteKit support
Remix
Loader-based patterns
Astro
Static & hybrid sites
Node.js
Express, Fastify, Hono
Python
Django, Flask, FastAPI
Laravel
PHP, Livewire
Ruby on Rails
Active Storage compatible
Go
net/http, Gin, Echo
Rust
Axum, Actix-web
Shopify
Product image CDN
WordPress
Official plugin — auto-optimizes all images
Webflow
Custom code embeds
Contentful
Asset URL rewriting
Strapi
Media provider
Sanity
Custom CDN source
Vercel
Edge config, env vars
Cloudflare Pages
Same edge network
Netlify
Build plugin support
Railway
Service deployment
Our official SDKs make development faster, but they're not required. The upload API is standard REST and the CDN is a plain URL. If you can make an HTTP request and load an image, you can use Spronta.
# Any language, any framework
curl https://cdn.spronta.com/{projectId}/{imageId}?w=800&f=webpIf it can make an HTTP request, it works with Spronta. Check the docs or reach out.