cacache is a Node.js library implementing a content-addressable cache system. It provides key-based and content-addressable access to cached data with built-in integrity verification using Subresource Integrity (SRI) standards. The system is designed for high concurrency and fault tolerance, protecting against corruption, partial writes, and race conditions. It features a modular architecture separating concerns like index management, content storage, memoization, and verification/garbage collection.
dep is a Node.js dependency installer that provides npm-compatible install, lock, and run commands with zero runtime dependencies. It resolves dependency trees, downloads packages, verifies integrity, and links them into node_modules. The architecture is modular with separate concerns for installation, lockfile generation, and script execution. Key features include workspace support, bounded concurrency, platform/engine constraint handling, optionalDependencies, peerDependencies, bundledDependencies, overrides, and aliased specifiers. The tool is designed for end-users rather than package authors, focusing on installing, locking, and running scripts.