Overview
What renderreport does, where it stops, and how this documentation is organised.
renderreport turns structured data into multi-page PDF reports. You describe a report as a list of
components (key figures, findings, tables, charts, running text and more), pick a theme, and the
engine writes the Typst source and compiles it to PDF in-process. You never write Typst yourself,
and no typst binary is involved.
What it covers
- 80 built-in components in 8 categories, from layout and text to metrics, narrative and marketing blocks.
- Theme tokens (
color.primary,spacing.4,page.margin…) that every component reads, merged from the default theme, a template pack and the request. - Template packs: your own Typst templates, components and themes, loaded from disk.
- Accessible output: every PDF is validated against PDF/UA-1 while it is written.
- Requests that can be checked (
validate,schema), used as templates filled from a JSON or CSV data file, or built from Markdown, CSV, Lighthouse, SARIF and JUnit files withfrom. - PDF for the whole report, PNG or SVG for single pages.
- Four ways in: the Rust library, the
renderreportCLI, the npm package (which installs the CLI) and a Wasm build for JavaScript hosts such as Cloudflare Workers.
What it is for
Reports of several pages that are assembled from components, such as a usage report, a code analysis, a monthly traffic report or a status report. A single page (certificate, school report, flyer) works too, because it uses the same components and page format; nothing more is built for it. The marketing and brochure components stay in the catalog, they are not the main use.
Business documents with a fixed layout, such as invoices, quotes and letters, are a different job. typst-business-templates keeps their layout in Typst templates. lightweight-pdf writes PDFs without Typst for cases where binary size and startup time matter.
Where it stops
renderreport lays out data you already have. It does not collect metrics, run audits or fetch
anything; that is the job of the program that builds the report. It is not a Typst editor
either: to compile hand-written .typ files, use Typst or
typstgen.
How this documentation is organised
- Getting started: installation and a first report from Rust and from JSON.
- Concepts: how a report is rendered, components and themes.
- Guides: the CLI and JSON, Wasm, custom components and packs and the generated Typst source.
- Reference: the render request, the CLI and the library API.
The project is in early development: component data shapes can still change between minor versions. The changelog lists every breaking change.