Introduction
Nebula PDF Engine is a high-performance, server-side PDF generation library that turns React/JSX templates into multi-page documents. You write familiar Flexbox-style layouts with Preact — without Headless Chrome — in a lightweight package that is typically orders of magnitude smaller than Puppeteer.
Powered by Satori, Resvg, and pdf-lib, Nebula gives you pixel-perfect layout control with the familiarity of Flexbox and JSX.
Ideal for generating dynamic invoices, automated business reports, and high-density shipping labels at the edge.
Features
Section titled “Features”- Standard JSX — Use
<Page>,<Box>,<Text>, and<Image>with Preact. - Flexbox layout — Full CSS Flexbox via Satori (Yoga).
- Multi-page engine — Automatic overflow detection and smart text splitting across pages.
- Precise measure — Control content width with the
contentWidthoverride. - First-class tables — Schema-driven tables with column resolution and repeating headers.
- High-density assets — Crisp SVG and remote image resolution via Sharp (Retina-ready).
- High performance — Rust-based rendering pipeline (Resvg).
- Custom DPI — Configure
devicePixelRatiofor the balance of size and quality.
When to choose Nebula
Section titled “When to choose Nebula”| You want… | Nebula |
|---|---|
| JSX + Flexbox PDFs without a browser | Yes |
| Deterministic pagination for long tables/text | Yes |
| Edge/serverless Node without Chromium | Yes |
| Full HTML/CSS print fidelity | Prefer Puppeteer |
| Pure JSON document definitions | Prefer pdfmake |
Next steps
Section titled “Next steps”- Quick Start — install and generate your first PDF
- Why Nebula PDF — benefits, fit, and how it compares
- Layout Engine — how pages are measured and packed