cacache
npmv21.0.1Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.
Safe to adopt
Yes — cacache scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 43 days ago. 9 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 43 days ago. 9 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 10 transitive packages, about 2.8 MB installed (at least — some of the tree is still being crawled).
- ASupply chain: grade A, Excellent.
No install scripts, 4 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding cacache to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing cacache, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^22.22.2 || ^24.15.0 || >=26.0.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the cacache README.
const cacache = require('cacache')
const fs = require('fs')
const cachePath = '/tmp/my-toy-cache'
const key = 'my-unique-key-1234'
// Cache it! Use `cachePath` as the root of the content cache
cacache.put(cachePath, key, '10293801983029384').then(integrity => {
console.log(`Saved content to ${cachePath}.`)
})
const destination = '/tmp/mytar.tgz'
// Copy the contents out of the cache and into their destination!cacache vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| cacachethis page | 0 | 1 | ISC | 1 month ago |
| make-fetch-happen | 43.3M | 1 | ISC | 5 hours ago |
| ssri | 0 | 1 | ISC | 5 hours ago |
| nocache | 0 | 1 | MIT | 5 hours ago |
| fresh | 121.2M | 3 | MIT | 5 hours ago |
| expo-sqlite | 731.2K | 1 | MIT | 5 hours ago |
Dependencies
Declared by cacache v21.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (10)
Dev (3)
Used by
Popular packages that depend on cacache.
Relationship graph
Dependencies (left) and dependents (right) of cacache.
Frequently installed together
HTTP content negotiation
just emit 'log' events on the process object
Safer Node.js Buffer API
the http/https agent used by the npm cli
Redact sensitive npm information from output
create a pipeline of streams using Minipass
Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies
An implementation of window.fetch in Node.js using Minipass streams
Retries a function that returns a promise, leveraging the power of the retry module.
Standard Subresource Integrity library -- parses, serializes, generates, and verifies integrity metadata according to the SRI spec.
Release history
7 releases in the last two years, typically about 38 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 21.0.1latest | 1 month ago | 63 KB | ISC |
| 21.0.0 | 2 months ago | 62 KB | ISC |
| 20.0.4 | 4 months ago | 62 KB | ISC |
| 20.0.3 | 8 months ago | 62 KB | ISC |
| 20.0.2 | 8 months ago | 62 KB | ISC |
| 20.0.1 | 11 months ago | 62 KB | ISC |
| 20.0.0 | 1 year ago | 62 KB | ISC |
| 19.0.1 | 1 year ago | 62 KB | ISC |
| 19.0.0 | 1 year ago | 62 KB | ISC |
| 18.0.4 | 2 years ago | 62 KB | ISC |
| 18.0.3 | 2 years ago | 62 KB | ISC |
| 18.0.2 | 2 years ago | 62 KB | ISC |
| 18.0.1 | 2 years ago | 62 KB | ISC |
| 18.0.0 | 2 years ago | 62 KB | ISC |
| 17.1.4 | 2 years ago | 62 KB | ISC |
Overview
cacache is an npm package that fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache. It has 1 known dependents in the graph. The latest version is 21.0.1, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (ISC).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use cacache?
Yes — cacache scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 43 days ago. 9 releases in the last 2 years.
How do I install cacache?
Run `npm install cacache` to add cacache to your npm project.
How many dependencies does cacache have?
cacache declares 13 direct dependencies and pulls in 10 packages in total once its runtime tree is resolved totalling about 2.8 MB on disk.
What license is cacache released under?
cacache is distributed under the ISC license. Its dependency tree also includes: BlueOak-1.0.0, ISC, MIT.
How popular is cacache?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on cacache.
Is cacache still maintained?
The most recent release of cacache (v21.0.1) was published 1 month ago.
Does cacache run install scripts?
No. cacache does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.