# unjs/unpdf

📄 PDF extraction and rendering across all JavaScript runtimes

Repository: https://github.com/unjs/unpdf
Canonical: https://ross.abutalabs.com/products/unpdf
Language: TypeScript
License: MIT
License Family: permissive
Topics: pdf, pdfjs, serverless
Last push: 2026-08-14T10:42:44+00:00

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

## Adoption (not part of the score)
Stars 1218, forks 46 (observed 2026-08-28T04:04:01.550819+00:00)

## What it is
unpdf is a TypeScript library providing PDF extraction and rendering utilities that work across all JavaScript runtimes, including Node.js, Deno, Bun, browsers, and serverless edge environments. It bundles a serverless-optimized build of Mozilla's PDF.js and offers simple APIs for extracting text, links, and images from PDF documents.

## Use cases
- extract text from pdf files in javascript
- parse pdfs for ai summarization or rag pipelines
- read pdf content in cloudflare workers or edge functions
- extract images and links from pdf documents
- modern replacement for pdf-parse in node
- use pdf.js in deno or bun without node-specific dependencies

## When to choose
- you need PDF text extraction that runs in serverless or edge environments
- you want a maintained, multi-runtime alternative to pdf-parse
- you're building AI workflows that ingest PDF documents
- you want a simple API over PDF.js with the option to drop down to the raw PDF.js API

## When to avoid
- you need full PDF creation or heavy layout manipulation rather than extraction
- you only target Node.js and already depend on native PDF tooling like pdftotext
- you need OCR of scanned PDFs without a text layer

## Facets
- artifact type: library
- maturity: active
- function: pdf, parser, ocr
- domain: pdf, files, developer-tools
- platform: bun, browser, cross-platform, serverless, cloud
- tags: pdfjs, text-extraction, serverless, edge, cloudflare-workers, ai-pipelines, natural-language-processing, nodejs, deno

## Member repositories
- unjs/unpdf (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.550819+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-30T06:17:05.620645+00:00, confidence not recorded.
  - readme: https://github.com/unjs/unpdf (fetched 2026-08-28T04:04:01.550819+00:00, sha 4ac75dcbc700)
  - registry_npm: https://registry.npmjs.org/unpdf (fetched 2026-08-29T12:24:42.656807+00:00, sha bc5877aadc35)
- Data as of 2026-08-30T08:39:29.467469+00:00.
