fflate
Reasonable, with limits. 5th of 9 zip and compression.
fflate is a tiny, fast, pure-JavaScript library with no dependencies. It handles deflate, gzip and zlib, and it can create and read zip files in the browser and in Node. Its code is excellent, but one person maintains it and work on it is slow, so it is a strong but not risk-free pick today.
Best for: Browser and isomorphic apps that need fast, small gzip, deflate or zip handling and care about bundle size.
Scores
Overall6.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is the best small, fast compression and zip library for browsers and isomorphic code. It beats pako and JSZip on size and speed, and downloads are growing fast. Slow single-maintainer upkeep and unanswered corruption reports keep it at 7. For heavy zip work, zip.js is better maintained and has more features, and for tar node-tar is needed.
- npm downloadsLast4Weeks: Growing at about 2x the median rate
- peers zip.js commitsLastYear: zip.js had 1,053 commits last year, so it is far more actively maintained
- github.com/101arrowz/fflate/issues: Recent bugs have no replies
- jsr.io/@zip-js/zip-js/2.15.0/BENCHMARKS.md: Strong performance against peers
GPT-6.2 Sol: 6.5, likely 5.4 to 7.7
fflate is a reasonable new-project choice when bundle size and small-entry ZIP performance matter and the inputs are controlled. For general ZIP handling, zip.js offers fuller ZIP64 support, optional CRC verification, and more active maintenance. The recommendation depends on how much of the workload uses simple one-shot operations and how much depends on reliable streaming or input validation.
- github.com/gildas-lormeau/zip.js/blob/master/BENCHMARKS.md: Shows fflate's small-file speed advantage and explains which libraries verify CRCs.
- gildas-lormeau.github.io/zip.js: The peer documents ZIP64 and encrypted archive support.
- github.com/101arrowz/fflate/issues/260: Independent confirmations of a streaming regression in the current stable version.
- github commitsLastYear and latestRelease, peers zip.js commitsLastYear and latestPublishedAt: The release and commit data favor zip.js for maintenance.
Needed by many5.1
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many web and Node projects need compression or zip handling at some point, but it is not in most projects. fflate covers deflate, gzip, zlib and zip on any runtime, which is wider than single-format peers. It has no tar support.
- github description: High performance (de)compression in an 8kB package
- npm-compare.com/fflate,pako: Positioned as a general compression library for browser and Node
GPT-6.2 Sol: 5.2, likely 4.0 to 6.4
ZIP imports and exports are useful across browser and Node projects that move files or packaged assets. Tar workflows need a separate tool, and built-in Compression Streams cover many gzip and DEFLATE jobs. The share of projects needing fflate's particular combination is uncertain.
- github.com/101arrowz/fflate: Documents ZIP and three compression formats across browser and Node builds.
- developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API: Built-in web APIs handle common compression formats.
Helps a lot7.0
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Benchmarks show it is fast and memory-efficient. It is very small and has sync, async and streaming APIs with types. Several open reports of corrupt output in streaming and edge cases, plus thinner zip features than zip.js, keep it below the top.
- jsr.io/@zip-js/zip-js/2.15.0/BENCHMARKS.md: fflate zipSync faster and lower memory than JSZip (pako)
- gist.github.com/manzt/89f10957c55e571678025de61e4be30e: pako inflate faster on a small input, so the speed lead depends on workload
- github.com/101arrowz/fflate/issues: Open data-corruption reports (#314, #302, #267, #260)
- github.com/101arrowz/fflate/releases: 0.8.3 fixed Zip64, TS 5.7 typings and streaming bugs
GPT-6.2 Sol: 7.0, likely 5.8 to 8.2
The typed one-shot APIs and documented examples make ordinary ZIP and gzip calls straightforward to write or generate. In zip.js's Node tests, fflate excelled on thousands of small entries, while native codecs led on some larger workloads. Users reproduced invalid streaming DEFLATE output on 0.8.3, and independent tests found that extraction can silently accept damaged data. Those limitations matter more for streaming and file ingestion than for simple ZIP creation.
- github.com/101arrowz/fflate: Usage examples cover one-shot APIs, workers, and streams.
- github.com/101arrowz/fflate/releases/tag/v0.8.3: Current release fixes typings for TypeScript 5.7 and newer.
- github.com/gildas-lormeau/zip.js/blob/master/BENCHMARKS.md: Peer benchmark shows a clear lead on small entries and mixed results on large files.
- github.com/101arrowz/fflate/issues/260: Two users confirmed invalid streaming output on 0.8.3.
- github.com/mattgodbolt/jsbeeb/issues/825: Independent tests found silent corruption on damaged inputs.
Holds up over time4.7
Will it still be a good choice in two years?
Claude Opus 5.5: 4.0, likely 3.0 to 6.0
One person maintains it and nobody pays for the work. It had 11 commits last year, and 0.8.3 came about two years after 0.8.2. Many 2026 issues, including corruption bugs and a security report, have no reply, and 25 PRs are open. Its wide use as a dependency makes a fork or takeover likely if it stalls, which keeps the range from going lower.
- github commitsLastYear: 11 commits, 1 release in the last year
- github openPullRequests: 25 open PRs vs 10 merged
- github.com/101arrowz/fflate/issues: Most issues from May to Nov 2026 have no replies
- scorecard Maintained: Maintained check scores 2
GPT-6.2 Sol: 5.3, likely 4.0 to 6.7
The May release fixed compatibility issues, and older version lines received security backports. The repository logged 11 commits and one GitHub release in the past year, and several correctness fixes remain open. Release history centers on one account, and the evidence leaves publishing access and funding unclear. zip.js has a much more active release and development history in the supplied peer data.
- github commitsLastYear, releasesLastYear, latestRelease and openPullRequests: 11 commits, one GitHub release in May, and 25 open pull requests.
- peers zip.js commitsLastYear and latestPublishedAt: zip.js shows substantially more recent development and publishing activity.
- github.com/101arrowz/fflate/releases: Release history shows one recurring publisher.
- github.com/101arrowz/fflate/pulls: Several proposed streaming and ZIP fixes remain open.
- github.com/advisories/GHSA-px8p-9vwx-vf98: Lists fixes for five version lines.
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It had 624M downloads in 4 weeks, up 8.0x from a year earlier against a 4.1x median, so it is growing fast. Most of those downloads are transitive: other popular tools such as jsPDF and test or analytics tools install it. About 25.7k dependent repos is far fewer than JSZip or pako, but three.js and others vendor copies of it, so the count understates use.
- npm downloadsLast4Weeks: 624M vs 77.6M a year ago, ratio about 8.0
- dependents repos: 25,723 repos vs 657k for JSZip and 780k for pako
- github stars: 3.1k stars
- three.js examples/jsm/libs/fflate.module.js: Copied into three.js, so it is undercounted
GPT-6.2 Sol: 6.0, likely 4.8 to 7.3
Four-week installs grew 8.0-fold year over year, well above the catalog's 4.1-fold baseline. That is a strong relative growth signal, although automated and transitive installs make direct adoption hard to infer from 624 million downloads. The collector found about 26,000 dependent repositories, far fewer than for JSZip or pako, and vendored copies such as Three.js's are missed by npm counts.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo, medianDownloadsRatio: 624.4 million versus 77.6 million downloads, or 8.0 times year over year.
- dependents and peers dependentRepos: 25,723 indexed repositories and 419 npm packages, with many more repositories for several peers.
- raw.githubusercontent.com/mrdoob/three.js/master/examples/jsm/exporters/USDZExporter.js: Three.js imports a vendored copy for USDZ exports.
Vouched for6.3
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
Large, well-known projects use it as a dependency or vendor it, such as three.js and jsPDF. Benchmarks by others, including zip.js's own tables, show it is fast. There is no survey data, and it gets almost no community discussion on HN or Bluesky.
- jsr.io/@zip-js/zip-js/2.15.0/BENCHMARKS.md: A competitor's benchmark includes it and shows it doing well
- measurethat.net/Benchmarks/Show/25656/0/zlib-compatible-compression-libraries-comparison: Community benchmark comparing it with zlib libraries
- three.js / jsPDF: Bundled or depended on by major projects
- hackerNews / bluesky: 0 HN stories and 1 Bluesky post
GPT-6.2 Sol: 6.6, likely 5.4 to 7.8
Three.js ships fflate in its USDZ exporter, and Kitware's vtk.js lists it as a runtime dependency. Peer benchmarks confirm an advantage on archives with many small files, while jsbeeb's evaluation chose pako for gzip partly because it verifies data integrity. These are concrete endorsements for particular jobs, and State of JavaScript supplies no fflate-specific satisfaction or retention measure.
- raw.githubusercontent.com/mrdoob/three.js/master/examples/jsm/exporters/USDZExporter.js: Three.js uses fflate in a shipped exporter.
- raw.githubusercontent.com/Kitware/vtk-js/master/package.json: Kitware lists fflate as a runtime dependency.
- github.com/gildas-lormeau/zip.js/blob/master/BENCHMARKS.md: A competing ZIP project's benchmark confirms the small-entry performance advantage.
- github.com/mattgodbolt/jsbeeb/issues/825: A downstream evaluation rejected fflate over missing integrity checks.
- 2025.stateofjs.com/en-US/libraries: Survey results provide no project-specific sentiment measure.
Safe5.6
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has no dependencies and an MIT licence, so the attack surface is small. One ZIP64 infinite-loop DoS (CVE-2026-45820) was fixed in 0.8.3, with backports to older lines. The Scorecard is 2.3, with no code review, security policy or fuzzing, and a new report about unchecked allocation sizes in unzipSync is still open.
- npm dependencies: 0 dependencies
- osv.dev/GHSA-px8p-9vwx-vf98: ZIP64 infinite loop, fixed in 0.8.3 and backports
- scorecard score: 2.3 overall; Code-Review, Security-Policy and Fuzzing all score 0
- github.com/101arrowz/fflate/issues: Issue #311 reports unchecked allocation sizes; still open
GPT-6.2 Sol: 5.1, likely 3.8 to 6.5
The MIT license and zero runtime dependencies keep supply-chain exposure small. The July ZIP64 hang was already fixed in 0.8.3 when the advisory went public, and older branches received backports. A November CVE describes a separate allocation issue through 0.8.3. Snyk withdrew its advisory, but the upstream ZIP64 allocation fix remains open and the 2.3 OpenSSF Scorecard flags weak review, branch protection, and fuzzing.
- npm dependencies and license: Zero runtime dependencies and a permissive MIT license.
- scorecard score and checks: 2.3 overall, with zero scores for code review, branch protection, fuzzing, and security policy.
- github.com/advisories/GHSA-px8p-9vwx-vf98: The July hang is fixed in 0.8.3 and four older release lines.
- vuldb.com/vuln/431150: The November CVE covers excessive allocation through 0.8.3.
- security.snyk.io/vuln/SNYK-JS-FFLATE-22392372: Snyk withdrew its advisory for the November CVE.
- github.com/101arrowz/fflate/pull/301: A proposed fix for the ZIP64 allocation issue remains open.
Good
- It is very small (about 8 kB) and has no dependencies, so it adds little to browser bundles.
- It is faster and uses less memory than pako- and JSZip-based paths in independent benchmarks.
- It offers sync, async (worker) and streaming APIs for deflate, gzip, zlib and zip from one package.
- It ships TypeScript types and works the same in browsers, Node, Deno and Bun.
Bad
- One maintainer does the work. There were two years between 0.8.2 and 0.8.3, and many recent bug reports have no reply.
- Open issues report data corruption in streaming deflate, flush and level 0 output, and none has a fix yet.
- It has no tar support, and its zip features (comments, encryption, mtime access) are thinner than zip.js or JSZip.
- It scores 2.3 on the OpenSSF Scorecard and had a 2026 ZIP64 denial-of-service advisory. A new report about unchecked allocation sizes is still open.
The numbers
- npm downloads, 4 weeks
- 624M ×8.0 in a year
- GitHub stars
- 3.1k
- Commits, 12 months
- 11
- npm version
- 0.8.3 May 2026
- Versions, 12 months
- 5
- Advisories, 24 months
- 1 of 1 ever
- OpenSSF Scorecard
- 2.3 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (101arrowz/fflate), npm (fflate), OSV and the OpenSSF Scorecard.