# Lulzx/tinypdf

Minimal PDF creation library. <400 LOC, zero dependencies, makes real PDFs.

Repository: https://github.com/Lulzx/tinypdf
Canonical: https://ross.abutalabs.com/products/tinypdf
Language: TypeScript
License: MIT
License Family: permissive
Topics: invoice-generator, pdf, pdf-generation
Last push: 2026-08-13T13:35:43+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 65, longevity 18
- inputs: {"age_days": 258, "days_push": 20, "days_rel": 20, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1908, forks 76 (observed 2026-08-28T04:05:52.962137+00:00)

## What it is
tinypdf is a minimal TypeScript library for creating PDF documents with under 400 lines of code and zero dependencies. It supports text, shapes, JPEG images, links, multiple pages, and markdown-to-PDF conversion while intentionally omitting features like custom fonts, PNG/SVG, forms, and encryption.

## Use cases
- generate invoices as pdfs
- create receipts programmatically
- build pdf reports from data
- make shipping labels
- generate event tickets
- create certificates in code
- convert markdown to pdf
- export data as pdf documents

## When to choose
- you only need text, shapes, JPEG images, and links on pages
- bundle size matters and you want a tiny zero-dependency library
- generating invoices, receipts, labels, tickets, or certificates
- you want a simple programmatic API instead of heavyweight pdf libraries

## When to avoid
- you need Unicode or custom TTF fonts
- you need PNG, GIF, or SVG image support
- you need forms, encryption, compression, or vector graphics
- you need HTML-to-PDF conversion

## Facets
- artifact type: library
- maturity: active
- function: pdf, templating, markdown
- domain: pdf, files, web-development, developer-tools
- platform: bun, cross-platform
- tags: pdf-generation, zero-dependencies, minimal, invoice-generator, typescript, tiny-library, nodejs

## Member repositories
- Lulzx/tinypdf (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:52.962137+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:10.713611+00:00, confidence not recorded.
  - readme: https://github.com/Lulzx/tinypdf (fetched 2026-08-28T04:05:52.962137+00:00, sha 85d7945c162d)
  - registry_npm: https://registry.npmjs.org/tinypdf (fetched 2026-08-29T10:50:33.800343+00:00, sha f245b9365cce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
