# zip.js: 7.7 out of 10

A strong pick. 1st of 9 in [Zip and compression](https://elestia.ai/opensource/compression/index.md).

zip.js is a zero-dependency ZIP reader and writer built on web streams. It runs in browsers, Deno, Bun and Node and supports Zip64, AES encryption, split archives and pluggable codecs. It is one of the strongest picks today for large or encrypted archives. It is maintained very actively, mostly by one person, and its API is more verbose than JSZip's.

**Best for:** Projects that must stream large, encrypted or Zip64 archives in the browser or in any JS runtime.

## Scores

- **Overall: 7.7** (likely 6.7 to 8.7)
  - Claude Opus 5.5 (7.5): For ZIP work that needs streaming, Zip64 or encryption, it is the most capable and most actively maintained choice in the category, ahead of JSZip, which is nearly idle and buffers whole files in memory. fflate is lighter and faster for simple in-memory cases. Reliance on one maintainer and frequent small breaking changes keep it below the top.
  - GPT-6.2 Sol (7.9): zip.js earns a strong recommendation for new projects that need large, encrypted, or split ZIP archives across runtimes. It covers features outside JSZip's documented limits, while fflate has an edge on many small files in the available benchmark. Upgrade breakage, limited release ownership, and slower adoption growth than the leading ZIP peers keep it below a category-wide default.
- **Needed by many: 5.0** (likely 4.0 to 6.1)
  - Claude Opus 5.5 (5.5): Many web and Node projects need to make or read zip files at some point, but it is not a need in most projects. zip.js covers ZIP only, not tar, though it works on every runtime. That puts it in a sizeable but not universal group.
  - GPT-6.2 Sol (4.5): ZIP imports and exports come up in web apps, file tools, and developer tooling. zip.js works across modern browsers, Node.js, Deno, and Bun, but its archive support is focused on ZIP, leaving tar and standalone compression to other tools. The share of developers who need a dedicated ZIP library is hard to measure.
- **Helps a lot: 8.3** (likely 7.2 to 9.3)
  - Claude Opus 5.5 (8.0): It is the most complete ZIP toolkit among the peers: streaming, Zip64, AES, split files, native CompressionStream and workers. Benchmarks show it fast and memory-safe on large files, while fflate wins on many small files. The API is verbose, and users have reported slow cases with very many entries and errors that do not reach the streams.
  - GPT-6.2 Sol (8.5): Version 2.25.0 handles ZIP64, split archives, AES, and incremental writing, with documented TypeScript APIs for both simple and advanced use. Its archive reader buffers a sequential input before emitting entries, and fflate led the project's tests with many small files. Runtime and codec choices can change performance substantially, and independent tests of the current release are scarce.
- **Holds up over time: 7.2** (likely 5.8 to 8.6)
  - Claude Opus 5.5 (7.0): Maintenance is very active: 1,053 commits and 75 releases in the last year, zero open issues, and a project started in 2011. The risks are that it rests mostly on one maintainer and that minor versions often carry small breaking changes.
  - GPT-6.2 Sol (7.4): The snapshot records 75 releases and 1,053 commits in a year, well ahead of the listed peers, and a reported ZIP64 compatibility bug received a fix within two days. Recent releases are concentrated around one maintainer, and funding and backup release ownership are unclear. CesiumJS reported a broken build after a minor upgrade, which lowers confidence in future upgrades.
- **Used widely: 4.4** (likely 3.3 to 5.8)
  - Claude Opus 5.5 (5.0): About 34M downloads in 4 weeks, with a year-over-year ratio of 4.06, almost exactly the 4.1 median, so its share is flat. ecosyste.ms counts 807 dependent repos, far below JSZip, ADM-ZIP and fflate, which suggests that much of the download volume comes from transitive installs.
  - GPT-6.2 Sol (3.7): Four-week downloads rose from 8.47 million to 34.42 million, or 4.06 times the prior year, just below the catalog's 4.1 times baseline. Downloads grew faster for JSZip and fflate. ecosyste.ms found 807 dependent repositories and 119 packages, well below those peers' repository counts. Scoped-package coverage and automated installs leave the number of direct choices uncertain.
- **Vouched for: 6.1** (likely 4.7 to 7.4)
  - Claude Opus 5.5 (5.0): Comparison write-ups and user reports recommend it for large and encrypted archives, and it is published on JSR with provenance. The benchmarks come from the project itself, and there is no Hacker News or Bluesky attention and no survey presence. Well-known production users are not clearly documented.
  - GPT-6.2 Sol (7.1): CesiumJS uses zip.js to open KMZ files, and Microsoft's Playwright uses it to open trace archives. Playwright pins an earlier version, and the independent head-to-head benchmark covers an older release and only uncompressed ZIP creation. Evidence for the latest release across production workloads is thinner.
- **Safe: 6.7** (likely 5.6 to 8.1)
  - Claude Opus 5.5 (7.0): It has zero dependencies, no advisories ever, and a permissive BSD-3 licence. Recent releases harden parsing of untrusted archives. The OpenSSF Scorecard is weak at 3.9: no code review, no branch protection, no security policy and broad token permissions, with releases resting on one person.
  - GPT-6.2 Sol (6.4): The BSD-3-Clause package has zero runtime dependencies, and GitHub Actions verifies tests before publishing to npm with provenance. OSV lists no advisories in the snapshot, and the release notes record a fix for a filename validation flaw. The 3.9 OpenSSF Scorecard shows gaps in branch protection, code review, and workflow token permissions, and GitHub shows no security policy. Applications still enforce extraction limits, and the number of people who can trigger a release is unclear.

## Good

- It streams through web streams, so archives larger than memory, and over 4 GB with Zip64, work in browsers and on servers.
- It supports AES encryption, split archives, deflate64 decompression and pluggable codecs, including the native CompressionStream.
- It has zero dependencies, ships its own types, uses a BSD-3 licence and has no known advisories.
- Development is very active; work in 2026 added stricter integrity checks and guidance for reading untrusted zip files.

## Bad

- The API is more verbose than JSZip's and has many options, so simple tasks take more code.
- Minor releases often change behaviour or types, such as removed options, new errors and changed return types.
- Nearly all work rests on one maintainer.
- It handles only ZIP; it does not create tar files or plain gzip streams beyond what the codecs expose.

## The numbers

- Downloads, 4 weeks: 34M
- In a year: ×4.1
- GitHub stars: 3.9k
- Commits, 12 months: 1.1k
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: BSD-3-Clause
- GitHub: https://github.com/gildas-lormeau/zip.js
- npm: https://www.npmjs.com/package/@zip.js/zip.js

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.
