pako
Reasonable, with limits. 3rd of 9 zip and compression.
pako is a long-standing pure-JavaScript port of zlib for deflate, inflate and gzip in browsers and Node. Version 3 is new and has types, and pako still writes output byte-for-byte the same as zlib. It handles only raw compression, not zip or tar. For new work, the platform's own CompressionStream or fflate is usually smaller or faster.
Best for: Projects that need synchronous, zlib-exact deflate/gzip output in the browser or in a cross-runtime library.
Scores
Overall6.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
pako is a safe, maintained and well-proven zlib port, and it is the right pick when you need zlib-exact bytes or a synchronous API. For most new projects, fflate does the same job smaller and faster, adds zip support, and grows faster. Native CompressionStream covers the basic case with no dependency. That keeps pako a reasonable choice with clear limits.
- npm-compare.com/fflate,pako: fflate recommended for size and performance
- unpkg.com/pako@3.0.3/README.md: Active 3.x line with zlib-exact output
- peers fflate: Faster-growing peer for the same job
GPT-6.2 Sol: 7.7, likely 6.6 to 8.8
pako is a strong new-project choice when portable zlib behavior, gzip integrity checks, or concatenated gzip matter. fflate covers more ground when one dependency needs to handle both ZIP and gzip, and zip.js is a better fit for advanced ZIP work. Recent releases support choosing pako today, while the earlier release gap and the limited adoption evidence for v3 keep the range wide.
- github.com/mattgodbolt/jsbeeb/pull/826: Shows a concrete reason to choose pako v3 for gzip decoding.
- github.com/101arrowz/fflate: fflate provides both ZIP and gzip APIs.
- github.com/gildas-lormeau/zip.js: zip.js supports ZIP64, split archives, encryption, and streams.
- github.com/nodeca/pako/blob/3.0.3/CHANGELOG.md: Shows recent improvements and the prior release gap.
- npmjs.com/package/pako?activeTab=versions: Older major versions still account for most install activity.
Needed by many4.8
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Raw deflate/gzip in JavaScript is a clear but limited need, mostly browser apps and libraries that work across runtimes. Node has built-in zlib, and modern browsers have CompressionStream, which narrows the need further. It also covers only part of the category's job, with no zip or tar.
- github description: zlib port for browser and Node; no archive formats
- phabricator.wikimedia.org/transactions/detail/PHID-XACT-TASK-jzvemm7jyovzhmf: Projects feature-test native CompressionStream before loading a library
GPT-6.2 Sol: 4.6, likely 3.4 to 5.8
pako serves browser and Node.js projects that handle gzip, zlib, or raw DEFLATE directly. ZIP and TAR work needs a separate library, and built-in Compression Streams cover many ordinary browser tasks. The share of projects that need pako’s extra control is hard to measure.
- category.job: The category includes data compression and ZIP and TAR archives.
- nodeca.github.io/pako: Documents the supported compression formats and APIs.
- developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API: Built-in gzip and deflate streams are widely available.
Helps a lot7.2
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
pako is correct, mature, and matches zlib output exactly, and 3.x adds ESM examples and bundled types. Its own benchmarks show it about 2–3x slower than native zlib. fflate is smaller, usually faster, and adds zip support and async workers. Some advanced zlib functions are missing.
- unpkg.com/pako@3.0.3/README.md: zlib 1.3.2 binary-equivalent output; benchmarks show native zlib 2-3x faster; some zlib functions unsupported
- npm-compare.com/fflate,pako: pako about 45 kB vs fflate core about 8 kB; pako is mostly synchronous
- gist.github.com/manzt/89f10957c55e571678025de61e4be30e: Independent Deno benchmark where pako inflate beat fflate gunzip, so speed depends on the workload
- npm hasTypes: Types included
GPT-6.2 Sol: 7.9, likely 6.8 to 8.9
Version 3.0.3 offers typed one-shot and chunked APIs, low-level zlib controls, and current examples that guide developers and coding agents past v2 syntax. jsbeeb’s v3 tests found that pako rejected damaged gzip data and decoded every member of a concatenated stream. pako was larger than fflate in that build and slower on a separate Node compression benchmark, with results varying by workload.
- nodeca.github.io/pako: Current v3 API reference and import examples.
- github.com/nodeca/pako/blob/3.0.3/CHANGELOG.md: Generated types, low-level exports, and v3 API changes.
- github.com/mattgodbolt/jsbeeb/issues/825: Consumer tests measured gzip integrity, speed, and bundle size.
- gowda.ai/posts/2026/07/fast-compression: On one Node text workload, fflate compressed faster and pako compressed slightly smaller.
Holds up over time7.1
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 5.5 to 8.0
Activity picked up after years of quiet: 74 commits and 5 npm versions in the last year, including a 3.0 major and 3.0.3 in October 2026. Few issues stay open. Work rests mostly on one or two maintainers with no visible funding, and native browser APIs are slowly taking over its basic use case.
- github commitsLastYear: 74 commits
- npm versionsLastYear: 5 versions; latest 3.0.3 on 2026-10-26
- github openIssues: 4 open vs 241 closed
- github.com/nodeca/pako: Two listed authors; no named sponsors
GPT-6.2 Sol: 7.2, likely 5.8 to 8.4
pako recorded 74 commits and five npm releases in the past year after a long release gap. Version 3 added built-in types and changed imports and text handling, and 3.0.3 restored strategy constants after a user report. The manifest lists sponsorship links, while a registry mirror lists one npm maintainer, leaving release continuity less certain.
- github.commitsLastYear, github.openIssues, github.openPullRequests: 74 commits, four open issues, and one open pull request.
- npm.versionsLastYear, npm.latestPublishedAt: Five npm versions in a year, with 3.0.3 published in October.
- github.com/nodeca/pako/blob/3.0.3/CHANGELOG.md: Release gap from late 2022 to mid-2026 and breaking changes in v3.
- github.com/nodeca/pako/issues/326: Reporter confirmed the missing strategy exports worked in 3.0.3.
- github.com/nodeca/pako/blob/3.0.3/package.json: Lists GitHub Sponsors links for the maintainer and organization.
- npm.ywwl.com/package/pako: Registry mirror lists one npm maintainer.
Used widely7.8
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
pako has about 750M downloads in 4 weeks and 780k dependent repos, among the highest in the category. Most of that is indirect, through JSZip and many other packages. Its year-over-year ratio of 4.7 is a little above the 4.1 median, but fflate grew faster (about 8x) from a lower base.
- npm downloadsLast4Weeks: 749M now vs 159M a year ago, ratio about 4.7
- dependents repos: 779,528 repos and 2,699 packages
- peers fflate downloads: fflate grew about 8x to 624M
GPT-6.2 Sol: 7.6, likely 6.1 to 8.8
ecosyste.ms found about 780,000 dependent repositories, ahead of JSZip and fflate and behind node-tar. Four-week downloads grew 4.71× year over year, modestly ahead of the 4.1× median and behind fflate’s 8.04×. Transitive installs drive much of that volume, older versions dominate npm’s breakdown, and recent public discussion in the bundle is sparse. Those limits leave a wide range for direct adoption today.
- dependents.repos, dependents.packages, peers.dependentRepos: 779,528 repositories and 2,699 packages in the collector’s coverage.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 749 million versus 159 million installs, with faster growth at fflate.
- github.stars, hackerNews.stories, bluesky.posts: 6,139 stars and zero matching stories or posts in the bundle.
- npmjs.com/package/pako?activeTab=versions: Version 1.0.11 alone accounts for far more weekly downloads than all v3 releases combined.
Vouched for6.7
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
Widely used libraries such as JSZip have built on pako for years, so it is proven in production. There is no current survey coverage, and Hacker News and Bluesky show no recent discussion. Independent benchmarks mostly rank fflate or the native API above it.
- JSZip dependency: JSZip uses pako for deflate
- hackerNews/bluesky: No stories or posts
- measurethat.net/Benchmarks/Show/25656/0/zlib-compatible-compression-libraries-comparison: Third-party comparisons of zlib-compatible libraries
GPT-6.2 Sol: 7.3, likely 5.9 to 8.5
jsbeeb adopted pako v3 after testing gzip integrity and concatenated streams in Chrome and Node. JSZip and Cornerstone’s DICOM loader provide further evidence of real use on older major versions. State of JavaScript’s tools results offer no pako-specific satisfaction data, and the evidence for v3 is still concentrated in a few workloads.
- github.com/mattgodbolt/jsbeeb/pull/826: Merged v3 adoption with browser and Node tests.
- github.com/Stuk/jszip/blob/main/package.json: JSZip uses pako 1.x as its compression dependency.
- github.com/cornerstonejs/cornerstone3D/blob/main/packages/dicomImageLoader/package.json: Cornerstone’s DICOM loader pins pako 2.1.0.
- 2025.stateofjs.com/en-US/other-tools: The survey’s published tools results offer no pako-specific measure.
Safe7.8
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
There are no runtime dependencies and no advisories ever, and the Scorecard shows fuzzing and safe workflows. The Scorecard is weak on code review, branch protection and SAST (overall 5.8). The licence is MIT with Zlib, both permissive.
- npm dependencies: 0 dependencies
- advisories total: No advisories
- scorecard: 5.8; Fuzzing 10, Code-Review 1, Branch-Protection 0
- npm license: MIT AND Zlib
GPT-6.2 Sol: 7.5, likely 6.1 to 8.6
pako has zero runtime dependencies, permissive MIT and Zlib licensing, and no advisories in the supplied OSV scan. OpenSSF gave it full marks for fuzzing and workflow token permissions, but branch protection scored 0, code review 1, and dependency pinning 3. The package builds and tests before packing, while release signing and provenance remain unclear.
- npm.dependencies, npm.license, advisories.total: Zero runtime dependencies, permissive licenses, and zero recorded OSV advisories.
- scorecard.score, scorecard.checks: 5.8 overall, with strong fuzzing and weak review, branch protection, and pinning.
- github.com/nodeca/pako/blob/3.0.3/package.json: The prepack script runs tests and builds the distribution.
- github.com/nodeca/pako/security: GitHub lists a reporting route and no published advisories.
Good
- It writes the same deflate/gzip bytes as zlib (the README says 1.3.2), which helps with checksums and reproducible output.
- It has no runtime dependencies, no known advisories, and fuzzing in CI.
- It is still maintained: 3.0.3 shipped in October 2026, with 74 commits in the last year and built-in types.
- The API mirrors zlib, so Node zlib code moves to the browser easily.
Bad
- It cannot make or open zip or tar archives; you need JSZip, fflate or zip.js on top.
- The full bundle is about 45 kB minified, against about 8 kB for fflate's core, and pako is usually slower than fflate and the native APIs.
- It works synchronously and has no worker-based async API, so large inputs block the main thread.
- There are no GitHub releases or changelog entries for 3.x, so upgrade notes are hard to find.
The numbers
- npm downloads, 4 weeks
- 749M ×4.7 in a year
- GitHub stars
- 6.1k
- Commits, 12 months
- 74
- npm version
- 3.0.3 Oct 2026
- Versions, 12 months
- 5
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.8 out of 10, Nov 2026
- Licence
- MIT
Many packages install it, so most downloads are not a direct choice.
Read on 21 November 2026 from GitHub (nodeca/pako), npm (pako), OSV and the OpenSSF Scorecard.