# mupdf

> MuPDF.js

Latest version **1.28.6** (published 2026-11-09) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install mupdf
pnpm add mupdf
yarn add mupdf
bun add mupdf
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; large bundle.

## Facts

| | |
|---|---|
| Version | 1.28.6 |
| Published | 2026-11-09 |
| First published | 2023-03-19 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 13.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Artifex Software, Inc. |
| Maintainers | artifex-js |
| Keywords | mupdf, pdf |

## Links

- npm: https://www.npmjs.com/package/mupdf
- Repository: https://cgit.ghostscript.com/mupdf.git/
- Homepage: https://mupdf.readthedocs.io/en/latest/
- npm.io page: https://npm.io/package/mupdf

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.28.6 (latest) — 2026-11-09
- 1.28.1 — 2026-09-06
- 1.28.0 — 2026-06-29
- 1.27.0 — 2026-01-06
- 1.26.4 — 2025-07-28
- 1.26.2 — 2025-06-03
- 1.3.6 — 2025-04-01
- 1.3.5 — 2025-03-21
- 1.3.4 — 2025-03-17
- 1.3.3 — 2025-03-12
- 1.3.2 — 2025-03-12
- 1.3.1 — 2025-02-06
- 1.3.0 — 2025-02-05
- 1.2.0 — 2025-01-22
- 1.1.0 — 2024-12-23
- … 15 more at https://npm.io/package/mupdf/versions

## README

# MuPDF.js

Welcome to the official MuPDF.js library from [Artifex](https://artifex.com).

Use [MuPDF](https://mupdf.com) in your JavaScript and TypeScript projects!

This library is powered by WebAssembly and can be used in all the usual
JavaScript environments: Node, Bun, Firefox, Safari, Chrome, etc.

## License

MuPDF.js is available under Open Source
[AGPL](https://www.gnu.org/licenses/agpl-3.0.html) and commercial license
agreements.

> If you cannot meet the requirements of the AGPL, please contact
> [Artifex](https://artifex.com/contact/mupdf-js) regarding a
> commercial license.

## Installation

	npm install mupdf

## Usage

The module is only available as an ESM module!

	import mupdf from "mupdf"

	var doc = mupdf.Document.openDocument("test.pdf")
	console.log(doc.countPages())

Check out the example projects to help you get started:

- [github.com/ArtifexSoftware/mupdf/tree/master/platform/wasm/examples](https://github.com/ArtifexSoftware/mupdf/tree/master/platform/wasm/examples)
- [github.com/ArtifexSoftware/mupdf.js/tree/master/examples](https://github.com/ArtifexSoftware/mupdf.js/tree/master/examples)

## Documentation

- [MuPDF.js Reference](https://mupdf.readthedocs.io/en/latest/reference/javascript/)
- [Getting Started & Examples](https://mupdfjs.readthedocs.io/en/latest/)

## Contact

Join the Discord at [#mupdf.js](https://discord.gg/zpyAHM7XtF) to chat with the
developers directly.

---
_Source: https://npm.io/package/mupdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
