Skip to content

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.

  • 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 contentWidth override.
  • 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 devicePixelRatio for the balance of size and quality.
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