# fflate: 6.8 out of 10

Reasonable, with limits. 5th of 9 in [Zip and compression](https://elestia.ai/opensource/compression/index.md).

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

- **Overall: 6.8** (likely 5.7 to 7.9)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.5): 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.
- **Needed by many: 5.1** (likely 4.0 to 6.2)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (5.2): 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.
- **Helps a lot: 7.0** (likely 5.9 to 8.1)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.0): 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.
- **Holds up over time: 4.7** (likely 3.5 to 6.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.3): 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.
- **Used widely: 6.5** (likely 5.4 to 7.7)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.0): 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.
- **Vouched for: 6.3** (likely 4.7 to 7.4)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.6): 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.
- **Safe: 5.6** (likely 4.4 to 6.8)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.1): 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.

## 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

- Downloads, 4 weeks: 624M
- In a year: ×8.0
- GitHub stars: 3.1k
- Commits, 12 months: 11
- Last npm release: May 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/101arrowz/fflate
- npm: https://www.npmjs.com/package/fflate

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
