Satori
Web framework / library · Free
Converts a limited subset of HTML and CSS to SVG: helps generate social cards, previews, and graphics from application data.
Also known as: vercel/satori; satori-html-to-svg; vercel-satori

What you can use for free
Code and local use under MPL-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MPL-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Generate a social card from application data
- Convert a layout to SVG and check text/image dimensions
Example workflow
A possible workflow; this is not a report of hands-on testing.
Generate a social card from application data.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Prepare a supported layout and card data.
- Convert a layout to SVG and check text/image dimensions.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing Satori
Generate a social card from application data
Choose this when
- Generate a social card from application data
- Convert a layout to SVG and check text/image dimensions
Requirements
- Supply image dimensions and fonts with font data; the JSX component must be static and stateless.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MPL-2.0 for the code, with file-level copyleft.
- Satori supports a subset of HTML/CSS and its own SVG layout rather than the full browser DOM and its behavior.
Frequently asked questions
What can you use for free in Satori?
Code and local use under MPL-2.0.
What additional costs might arise with Satori?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Satori?
MPL-2.0 for the code, with file-level copyleft.
How do you get started with Satori?
Prepare a supported layout and card data. Convert a layout to SVG and check text/image dimensions. Add real data and error handling; check the production build.
Can you pass a component using useState or useEffect?
No. The README requires pure stateless JSX and does not support hooks or dangerouslySetInnerHTML. Fetch the data in advance and create a static tree for the card.
Will an arbitrary web page look pixel-for-pixel identical?
Not necessarily: Satori uses its own subset of HTML/CSS and layout. It does not provide a complete browser engine for style, link, or script tags and browser interactivity.
License
MPL-2.0 for the code, with file-level copyleft.
MPL 2.0 — file-level copyleft
You can use the code in a commercial product and combine it with closed-source files. When distributing it, make the source code of MPL-covered files available, including your changes to those files, and retain notices. Independent new files can remain closed-source. Internal use alone does not require publishing the code.
License termsTechnologies and topics
- Satori
- web
- Development