pnpm Content-Addressable Store

A content-addressable store that holds every version of every package exactly once on disk and hard-links (or reflinks) files into project `node_modules`. This produces a strict, non-flat dependency layout where packages can only access their declared dependencies, and saves significant disk space across projects on the same machine. Includes commands to inspect, prune, verify, and configure the store.

pnpm Content-Addressable Store is one of 5 APIs that pnpm publishes on the APIs.io network.

Tagged areas include Storage, Node.js, Package Manager, and Cache. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: pnpm:pnpm-store
name: pnpm Content-Addressable Store
tags:
- Storage
- Node.js
- Package Manager
- Cache
humanURL: https://pnpm.io/symlinked-node-modules-structure
properties:
- url: https://pnpm.io/symlinked-node-modules-structure
  name: Symlinked node_modules structure
  type: Documentation
- url: https://pnpm.io/motivation
  name: Motivation
  type: Documentation
- url: https://pnpm.io/cli/store
  name: pnpm store CLI
  type: Documentation
- url: https://pnpm.io/npmrc#store-dir
  name: store-dir config
  type: Documentation
description: A content-addressable store that holds every version of every package exactly once on disk
  and hard-links (or reflinks) files into project `node_modules`. This produces a strict, non-flat dependency
  layout where packages can only access their declared dependencies, and saves significant disk space
  across projects on the same machine. Includes commands to inspect, prune, verify, and configure the
  store.