Description
Sone is a layout engine for generating images and documents in JavaScript. You compose a layout from nodes such as Column, Row, Text and Photo, and Sone works out where everything goes, using flexbox and CSS Grid through yoga-layout. It is aimed at real-world document generation: OG cards, posters, dashboards, multi-page PDFs and invoices, at scale and without a browser. The site says there is no HTML, JSX or Puppeteer, just plain function calls that run in Node.js, Deno, Bun and the browser. Output can be PNG, JPG, WebP, PDF, SVG or raw Canvas, rendered with native Skia bindings. Multi-page PDFs get automatic page breaking, repeating headers and footers and page margins. Text supports mixed styles, justification, shadows and gradients, automatic right-to-left detection, custom fonts for any script, and hyphenation in more than 80 languages. Nodes can be tagged so the layout exports as a YOLO or COCO bounding-box dataset. Examples include an invoice, a report, a quotation and a bank statement, and the code is on GitHub.…
Highlights
- Compose images and PDFs from JavaScript functions
- Flexbox and CSS Grid layout
- Output to PNG, JPG, WebP, PDF, SVG or Canvas
- Multi-page PDFs with headers and footers
- Exports YOLO or COCO bounding boxes
Ratings & Reviews
No ratings yet
Be the first to rate Sone.
People also visit
Sone FAQ
What is Sone?
A layout engine for image generation in JavaScript, aimed at OG cards, posters, dashboards, invoices and multi-page PDFs.
Does it need a browser?
No. The site says it uses native Skia bindings and needs no browser or Puppeteer.
Do I write HTML or JSX?
No. The site says it uses plain function calls that work in Node.js, Deno, Bun and the browser.
What formats can it output?
PNG, JPG, WebP, PDF, SVG and raw Canvas.
Where is the code?
On GitHub at github.com/seanghay/sone, with examples for invoices, reports, quotations and bank statements.
What are the best Sone alternatives?
Popular alternatives to Sone include OGCOOL, Canva and Picbolt. See all Sone alternatives










