Skip to content
JS
Comparison

pdf-lib vs @pdfme/pdf-lib

PDF and documentsPackage data 25 Sept 2026
pdf-libv1.17.1, 6 Nov 2021

Create and modify PDF files with JavaScript

$ npm install pdf-lib
@pdfme/pdf-libv6.1.13, 16 Sept 2026

Create and modify PDF files with JavaScript

$ npm install @pdfme/pdf-lib
Metricpdf-lib@pdfme/pdf-libDifference
Weekly downloads9,843,212163,425pdf-lib 60.2x higher
12-month download growth+473%--
Gzip size---
Minified size---
Dependencies45@pdfme/pdf-lib 1 more
Unpacked size18.6 MB2.1 MB@pdfme/pdf-lib 8.9x smaller
Latest release1.17.1, 6 Nov 20216.1.13, 16 Sept 2026@pdfme/pdf-lib 4.9 years more recent
Releases, last 12 months0--
First published4 Sept 2017--
GitHub stars8,6444,847pdf-lib 1.8x higher
Open issues27834pdf-lib 244 more
Open pull requests395pdf-lib 34 more
Contributors---
Commits, last 52 weeks0478@pdfme/pdf-lib higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM onlyDiffers
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

pdf-lib9.8m latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

pdf-lib

Major versions
  1. 0.0.04 Sept 2017
  2. 1.0.027 Jul 2019
Last 5 releases
  1. 1.17.16 Nov 2021
  2. 1.17.016 Oct 2021
  3. 1.16.027 Jan 2021
  4. 1.15.09 Jan 2021
  5. 1.14.130 Dec 2020
42 releases in total, 0 in the last 12 months

@pdfme/pdf-lib

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
pdf-lib

-

@pdfme/pdf-lib

-

pdf-lib

-

@pdfme/pdf-lib

-

  • Need both ESM and CommonJS entry pointspdf-lib (pdf-lib: ESM + CommonJS; @pdfme/pdf-lib: ESM only)
  • Need to load it with require()pdf-lib
  • Need TypeScript types in the package itselfBoth
  • Need the more recent release@pdfme/pdf-lib (6.1.13 on 16 Sept 2026 vs 1.17.1 on 6 Nov 2021)
  • Higher weekly npm downloadspdf-lib (9.8m vs 163.4k)

Each line is generated from the data above.

@pdfme/pdf-lib: @pdfme/pdf-lib npm registry, @pdfme/pdf-lib GitHub, @pdfme/pdf-lib jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.