Open source · MIT · Works offline

Markdown in.
Beautiful PDF out.

Reports, documentation and proposals with a cover, running headers and “Page 2 of 4”, without a line of CSS. Pick a theme and deliver.

$ npx prelum report.md
See the themes →
Before and after

The same file.
Two different documents.

On the left, a Markdown report printed with GitHub’s stylesheet. On the right, the same file through prelum’s report theme.

A report printed with GitHub's Markdown stylesheet: underlined headings, a gridded table, a purple diagram.
GitHub Markdown CSS
The same report printed by prelum: serif headings, quiet table rules, the diagram in the theme's colors, a running header and page numbers.
prelum · report theme
  1. 01

    Themes, not CSS

    One line in the frontmatter changes the whole look. You never touch a stylesheet.

  2. 02

    Real pagination

    Cover, running headers, “Page 2 of 4”, and tables that break across pages with their header repeated.

  3. 03

    Mermaid, offline

    Diagrams drawn in the theme’s colors. Fonts and Mermaid ship with the package: nothing leaves your machine.

  4. 04

    Reproducible PDFs

    Fonts ship with the package. With SOURCE_DATE_EPOCH, the same file prints the same bytes on the same browser version. Pinning the browser is next.

Themes

Two themes.
Zero configuration.

Set theme: in the frontmatter, or pass --theme. Every page below is real output.

report

The default. Editorial serif titles over a clean grotesque, for proposals, feasibility studies and consulting reports.

Open the PDF →
report theme: cover with the red square, the title in Newsreader and the client's name.
report theme: a page with headers, a list, a diagram and a table.

technical

All sans, a blue accent and dark code blocks, for documentation, implementation reports and runbooks.

Open the PDF →
technical theme: cover with a bold title over a blue rule.
technical theme: a page with a checklist, a sequence diagram and code blocks.
Get started

One command.

No install step: npx fetches prelum the first time.

$ npx prelum report.md

  prelum■ 0.2.0

  ✓ markdown    157 words
  ✓ mermaid     1 diagram
  ✓ theme       report
  ✓ pages       cover, 3 pages

  ■ report.pdf ready in 0.9 s
  • Node 22 or later.
  • Chrome or Edge, already on your machine: nothing large is downloaded. With neither, run npx playwright install chromium once.
  • Frontmatter sets the title, client, author, date, theme, cover and language. See all fields →
Open source

MIT licensed.
Free to use.

prelum is a small tool built in the open. Issues, ideas and themes are welcome on GitHub. If it saves you time, you can support it on GitHub Sponsors.