Satori by Vercel
Library that converts HTML/JSX and CSS to SVG (lays out with flexbox); commonly used to generate Open Graph and social card images, PNG via Sharp or Resvg.
Favicons and social preview images Open source
Satori popularity
Downloads from api.npmjs.org, stars and forks from GitHub, checked Oct 22, 2026. How the Gid Score is calculated.
Rules for your agent
Copied.
- Satori (Favicons and social preview images). Library that converts HTML/JSX and CSS to SVG (lays out with flexbox); commonly used to generate Open Graph and social card images, PNG via Sharp or Resvg. Price: free; commercial use OK.
Connect: npm satori.
Get files: npm i satori; call satori(element, {width, height, fonts}) to get an SVG string; convert to PNG with Sharp or Resvg (svg, png).
Not allowed: Flexbox and a subset of CSS only
Not allowed: You must supply font data
Rule: MPL-2.0: modifications to Satori's own files must be shared under MPL; your own code can stay under your terms.
Rule: Fonts must be passed as ArrayBuffer/Buffer; text will not render without a font.
License: https://raw.githubusercontent.com/vercel/satori/main/LICENSE (checked 2026-10-21; details: https://agentgid.com/assets/satori/)
Paste it into your prompt or AGENTS.md. It is built from the license and API terms below.
License
| License | MPL-2.0 |
|---|---|
| Commercial use | Commercial use OK“You may create and distribute a Larger Work under terms of Your choice” raw.githubusercontent.com/vercel/satori/main/LICENSE |
| Credit | — |
| Inside your app or game | Can ship inside your app Same clause as quoted for commercial use. |
| AI training | Not stated |
| Bots and bulk downloads | Not stated |
| Rules |
|
Connect it to an agent
| How an agent gets files | npm i satori; call satori(element, {width, height, fonts}) to get an SVG string; convert to PNG with Sharp or Resvg. · no sign-in |
|---|---|
| File formats | svg, png |
| Not allowed |
|
| MCP server | None found |
| API | No public API: download by hand |
| npm | npm install satori |
| In AI-agent projects | satori is in 17 of 4,828 JavaScript projects (0.4%) in our scan of repos set up for AI coding agents. |
| GitHub | vercel/satori |
Use it in your stack
import satori from 'satori'
const svg = await satori(
<div style={{ color: 'black' }}>hello, world</div>,
{
width: 600,
height: 400,
fonts: [
{
name: 'Roboto',
// Use `fs` (Node.js only) or `fetch` to read the font as Buffer/ArrayBuffer and provide `data` here.
data: robotoArrayBuffer,
weight: 400,
style: 'normal',
},
],
},
)From the official docs: github.com/vercel/satori
Pricing
| Free | Open source. |
|---|---|
| Paid from | — |
| Usage price | — |
| Good to know | npm latest 0.63.2 (registry). |
Sources
Read on Oct 21, 2026: github.com/vercel/satori, raw.githubusercontent.com/vercel/satori/main/LICENSE, registry.npmjs.org/satori.
Not confirmed: Release dates not read (npm time block truncated); repo shows 533 commits and 14.1k stars.
Not legal advice. Check the license page before you ship.
Alternatives to Satori
| Pick for your agent | Source | Price | License | Agent access |
|---|---|---|---|---|
| Takumi Rust layout engine that renders JSX, HTML and CSS to images (PNG, JPEG, WebP, ICO, SVG, animated), mainly for OG images, and to PDF, without a headless browser. |
Free | Commercial OK | npmtakumi-js |
|
| RealFaviconGenerator Free web tool that turns one image into a favicon package (SVG, ICO, PNG, Apple touch and Android icons) plus the HTML markup; also has a checker, Node/CLI packages and plugins. |
Free | Commercial OK No credit | API@realfavicongenerator/generate-favicon |
|
| favicon.io Free favicon generator: from an image, text, emoji or SVG it builds an icon package (favicon.ico, PNGs, Apple touch icon, Android icons, site.webmanifest). |
Free | Commercial: unclear | Download |