Archiver
Reasonable, with limits. 6th of 9 zip and compression.
Archiver is a mature, streaming library for Node.js that writes zip and tar archives from files, directories, buffers and streams. It is still a solid choice for writing archives on a server. It cannot read or extract archives, it ships no types of its own, and one maintainer releases it slowly. Version 8 also moved to ESM with new named exports, so older examples and the community types may not match it.
Best for: Node.js backends and build tools that need to stream zip or tar output from files or directories without holding the whole archive in memory.
Scores
Overall6.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Archiver is still a reasonable, proven way to stream zip or tar output in Node. It cannot read archives, ships no types, and moves slowly with one main maintainer. The ESM-only v8 API change adds migration friction. For new projects, fflate or zip.js cover reading and writing on any runtime, and node-tar is the stronger tar choice. That puts archiver in the mid range, as a good pick only for Node apps that just write archives.
- github.com/archiverjs/node-archiver/releases: One major release in the past year; the changes are mostly dependency updates
- jsr.io/@zip-js/zip-js/2.13.1/BENCHMARKS.md: Speed is competitive with zip.js and fflate
- peers commitsLastYear: zip.js had 1,053 commits in a year, against archiver's 20
- npm hasTypes: No bundled types
GPT-6.2 Sol: 7.1, likely 6.1 to 8.1
Archiver is a strong pick when a Node.js project needs one streaming API to write both ZIP and TAR from files and generated content. For browser ZIP work or ZIP extraction, zip.js covers more of the job, and node-tar can both create and extract TAR files. The working version 8 integrations give confidence in the writer, while the slow release cadence and stale quickstart temper the recommendation.
- mrkeyoor.com/libs/archiver: Version 8 review confirms mixed inputs, streaming output, and Node-specific scope.
- github.com/GoogleCloudPlatform/cloud-run-mcp/releases/tag/v1.11.0: A downstream tool shipped the current major version.
- github.com/gildas-lormeau/zip.js: Peer offers ZIP reading and writing with Web Streams.
- github.com/isaacs/node-tar: Peer offers TAR creation, listing, and extraction.
- github releasesLastYear, npm latestPublishedAt: One release in the last year, published in May 2026.
- archiverjs.com/docs/quickstart: The main example still uses the previous major’s entry point.
Needed by many4.5
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many Node projects need to write zip files at some point, for exports, backups or deploy bundles. Archiver covers only the writing half of the category, and only in Node, not in browsers. That makes it narrower than all-in-one peers such as JSZip, fflate or zip.js.
- npm-compare.com/adm-zip,archiver,jszip,yazl,zip-lib,zip-stream: Says archiver is not a zip reader or extraction API
- github description: "a streaming interface for archive generation"
GPT-6.2 Sol: 4.0, likely 2.9 to 5.2
Packaging releases and streaming file exports are recurring jobs in the widely used Node.js ecosystem. Archiver serves the writing side of the category, with a filesystem-oriented API that limits its use in browsers. Runtime surveys show the size of the potential audience, while the share that needs to generate archives is less certain.
- survey.stackoverflow.co/2026/technology/data: 46% of survey respondents reported using Node.js.
- mrkeyoor.com/libs/archiver: Version 8 has writer APIs only and failed the browser bundle test.
- archiverjs.com/docs/archiver: The API covers filesystem input, ZIP64, and gzip-compressed TAR.
Helps a lot7.1
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Archiver does its job well. It streams zip and tar output, adds directories and globs, and a benchmark by the zip.js maintainers shows it about as fast as zip.js with moderate memory use. It cannot read archives, it ships no types, and its event-based error and finish handling is easy to get wrong. The v8 API change also means AI agents often write the old v7 style.
- jsr.io/@zip-js/zip-js/2.13.1/BENCHMARKS.md: Archiver about as fast as zip.js on compression; excluded from decompression tests
- unpkg.com/archiver@8.0.0/README.md: v8 uses import { ZipArchive }; no mention of types
- npm hasTypes: No bundled TypeScript types
- npm-compare.com/adm-zip,archiver,jszip,yazl,zip-lib,zip-stream: You must attach error and finish handlers yourself before finalizing
GPT-6.2 Sol: 7.7, likely 6.6 to 8.7
Version 8 handles mixed inputs and lets callers stream archive output while setting entry metadata and compression options. It came close to native ZIP throughput on a large file, while fflate was faster on the many-small-files workload. The official quickstart still teaches the old factory, and an AI reviewer on a published migration incorrectly flagged the new named exports. Matching community types help, while performance on real workloads remains variable.
- archiverjs.com/docs/archiver: Documents ZIP64, gzip, compression options, and entry metadata.
- github.com/gildas-lormeau/zip.js/blob/master/BENCHMARKS.md: Peer-maintained benchmark tests Archiver 8 on large and small files.
- archiverjs.com/docs/quickstart: Still calls the pre-v8 factory.
- raw.githubusercontent.com/archiverjs/node-archiver/8.0.0/index.js: The release exports named ZIP and TAR classes.
- github.com/GoogleCloudPlatform/cloud-run-mcp/pull/297: An automated review misidentified the version 8 exports.
- raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/archiver/index.d.ts: Community declarations cover the version 8 classes.
Holds up over time5.3
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
The project is alive. It got a major release in May 2026 (ESM, Node 18+) and has recent pushes. But it had about 20 commits and one release in a year, it has a large backlog of open issues and pull requests, and one maintainer appears to do most of the work. Its long history and heavy use in other tools make abandonment unlikely, but progress is slow.
- github commitsLastYear / releasesLastYear: 20 commits and 1 release in the last year
- github openIssues / openPullRequests: 143 open issues and 33 open pull requests
- github.com/archiverjs/node-archiver/releases: 8.0.0 brings ESM and needs Node 18+; earlier majors dropped old Node versions
- scorecard Maintained: Scorecard Maintained check scores 0
GPT-6.2 Sol: 5.6, likely 4.3 to 7.0
Archiver recorded 20 commits and one release in the past year, and version 8 arrived more than two years after 7.0.1. The ESM move and factory replacement required changes in downstream code, and the documentation issue remains open. One maintainer triggered the observed release, and the depth of release access and funding is unclear. Node’s experimental built-in ZIP support adds some uncertainty about future demand.
- github commitsLastYear, releasesLastYear, pushedAt, openIssues, openPullRequests: Recent repository activity with a modest release cadence and an open backlog.
- github.com/archiverjs/node-archiver/releases: Release history shows the gap from 7.0.1 to 8.0.0.
- github.com/archiverjs/node-archiver/issues/855: Users reported an undocumented factory change.
- github.com/archiverjs/node-archiver/actions/runs/25544526713: Shows who triggered the version 8 release.
- nodejs.org/download/release/v26.10.0/docs/api/zlib.html: Node 26 has an experimental built-in ZIP API.
Used widely6.9
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Archiver had 274M downloads in the last 4 weeks, up from 58M a year ago. That ratio of 4.7 is a little above the 4.1 median, so it is gaining slightly. Much of that comes from other tools installing it rather than direct choices. Still, 212k dependent repositories puts it in the hundreds of thousands, behind JSZip and ADM-ZIP but well ahead of fflate and zip.js.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 274M against 58M a year ago, a ratio of about 4.7 against the 4.1 median
- dependents: 211,924 repositories and 5,403 packages
- peers dependentRepos: JSZip has 657k and ADM-ZIP 639k dependent repositories; fflate has 26k
- hackerNews / bluesky: No stories or posts, so little visible current discussion
GPT-6.2 Sol: 6.8, likely 5.7 to 7.9
Downloads grew 4.72× year over year, ahead of the 4.1× catalog median and behind JSZip, fflate, and unzipper. Ecosyste.ms indexed about 212,000 dependent repositories, fewer than JSZip or ADM-ZIP and more than fflate or unzipper. Popular downstream packages install Archiver automatically, and the npm version breakdown skews toward older releases. The scale is clear, while direct adoption in new projects is harder to estimate.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 274.1 million versus 58.1 million downloads, above baseline growth.
- dependents repos, dependents packages, peers, github stars, hackerNews stories, bluesky posts: 211,924 repositories, 5,403 packages, 2,981 stars, and no matched social posts or stories.
- npmjs.com/package/archiver?activeTab=versions: Versions 5.3.2 and 7.0.1 each had more weekly downloads than 8.0.0.
- raw.githubusercontent.com/firebase/firebase-tools/master/package.json: Firebase CLI installs version 7 as a dependency.
- raw.githubusercontent.com/exceljs/exceljs/master/package.json: ExcelJS installs version 5 as a dependency.
Vouched for6.6
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
More than 5,400 npm packages depend on archiver, and deployment and build tools have used it for years. One sign is the Netlify edge-bundler pull request that upgrades to v7. The zip.js maintainers included it in their benchmark, but there are no survey results and little current independent writing about it, so the range is wide.
- dependents packages: 5,403 npm packages build on it
- github.com/netlify/edge-bundler/pull/591: Netlify tooling upgraded to archiver v7
- jsr.io/@zip-js/zip-js/2.13.1/BENCHMARKS.md: Included as a reference point in a peer's benchmark
GPT-6.2 Sol: 7.2, likely 6.1 to 8.3
Google Cloud Run tooling and the Mastra CLI adopted version 8, and ExcelJS uses an older release for streaming spreadsheet output. Two external benchmarks show competitive ZIP writing, with the results depending on file sizes and counts. The scope of those tests and limited survey evidence for Archiver itself leave its broader track record less certain.
- github.com/GoogleCloudPlatform/cloud-run-mcp/releases/tag/v1.11.0: Google Cloud Run tooling shipped the version 8 upgrade.
- raw.githubusercontent.com/mastra-ai/mastra/main/packages/cli/package.json: Mastra CLI declares version 8 as a runtime dependency.
- raw.githubusercontent.com/exceljs/exceljs/master/lib/stream/xlsx/workbook-writer.js: ExcelJS uses Archiver in its streaming XLSX writer.
- github.com/gildas-lormeau/zip.js/blob/master/BENCHMARKS.md: Version 8 finished near native ZIP speed on a 256 MB stream.
- github.com/gmaclennan/zip-writer#benchmarks: A second benchmark shows competitive medium- and large-file throughput.
Safe6.2
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
Archiver has no OSV advisories ever and uses the permissive MIT licence. On the other hand, its OpenSSF Scorecard is 3.5, with zeros for code review, token permissions, security policy and SAST. It also pulls in 9 direct dependencies with a longer transitive tree (zip-stream, archiver-utils, readable-stream, glob), and few people publish its releases.
- advisories total: 0 advisories
- scorecard score: 3.5, with Code-Review, Security-Policy and Token-Permissions all at 0
- npm dependencies: 9 direct dependencies
- npm license: MIT
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Archiver uses the permissive MIT licence, and OSV lists zero advisories against the package itself. Version 8 was published through a GitHub Actions workflow that runs tests before publishing and is configured for npm authentication through OIDC. Nine direct dependencies and a 3.5 OpenSSF Scorecard limit the score, especially the weak code-review and fuzzing checks and the absence of a public security policy. Past dependency reports show that older installs have caused problems for users, while the record offers limited evidence about response times.
- advisories total, npm dependencies, npm license: Zero direct OSV advisories, nine runtime dependencies, and MIT licensing.
- scorecard score, scorecard checks: 3.5 overall, with zeroes for code review, fuzzing, security policy, and token permissions.
- raw.githubusercontent.com/archiverjs/node-archiver/8.0.0/.github/workflows/npmpublish.yml: Release workflow tests the package and configures OIDC for npm publishing.
- github.com/archiverjs/node-archiver/actions/runs/25544526713: The build and npm publishing jobs succeeded for version 8.
- github.com/archiverjs/node-archiver/issues/818: A user reported a transitive dependency issue before version 8.
Good
- Streaming output lets you pipe a zip or tar straight to a file or HTTP response without building one large Buffer.
- High-level helpers add single files, whole directories and glob patterns to an archive, with a queue that handles the ordering.
- It is very widely used in Node tooling: about 212k dependent repositories and more than 5,400 dependent packages.
- It has no known security advisories and uses the MIT licence.
Bad
- It only writes archives, so you need a second library such as yauzl, unzipper or JSZip to read or extract them.
- It runs on Node only and ships no TypeScript types, and the @types/archiver package may lag behind the new v8 named-export API.
- Development is slow and depends on one maintainer: about 20 commits and 1 release in the past year, with 143 open issues and 33 open pull requests.
- Version 8 switched to ESM with ZipArchive and TarArchive named exports, which breaks older CommonJS code and examples.
The numbers
- npm downloads, 4 weeks
- 274M ×4.7 in a year
- GitHub stars
- 3k
- Commits, 12 months
- 20
- npm version
- 8.0.0 May 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.5 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (archiverjs/node-archiver), npm (archiver), OSV and the OpenSSF Scorecard.