mbingpdf is a TypeScript library for real documents: invoices, reports, certificates, labels. The same code runs in browsers, Node, Bun, Deno and edge functions, and gives the same page everywhere.
What it does
- Layout that behaves. Rows and stacks with flexbox-style sizing, tables whose headers repeat on every page, lists, columns and grids.
- Vector everything. Text with mixed styles and links, images, SVG artwork and QR codes, all as vectors.
- Barcodes and charts. Code 128, EAN, UPC, Code 39 and ITF; bar, line and pie charts.
import { Document, Page, Text, render } from "mbingpdf";
const pdf = await render(Document({ title: "Invoice" }, Page({ size: "A4" }, Text("Hello"))));
The brief on our contact page and the bench in the Lab are typeset by mbingpdf, live in your browser.
Where it stands
Version 0.2, early: the API may still change before 1.0. Every release is recorded in the changelog.

