pnpm

pnpm: Manage JavaScript Dependencies Efficiently

pnpm is a Node.js package manager that links packages from shared content-addressable storage to reduce duplicated files and speed up installs. It suits JavaScript projects, especially monorepos, that need deterministic dependency management.

View on GitHub Compare
Stars
36.7k
Forks
1.9k
Stars, last 30 days
+278

Our take

Health score

82/100

How it is scored
Activity
90
Community
66
Issues
90
Pull requests
83

+278 stars in the last 30 days

  • Merges more pull requests than 94% of the projects we track
  • Releases more often than 93% of the projects we track
  • Closes issues faster than 81% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

37,117

Forks

1,990

Change since Nov 17, 2026: +20 stars·+3 forks

Overview

pnpm manages dependencies for Node.js projects. Instead of storing a separate full copy of each package in every project, it keeps package files in shared content-addressable storage and links them into node_modules, reducing duplicated disk usage.

Its lockfile supports deterministic installs, and its strict dependency layout limits packages to dependencies declared in package.json. It is particularly relevant for teams maintaining multiple projects or monorepos.

Key Features

  • Reuses package files from content-addressable storage across projects.
  • Links package files into node_modules using hard links or copy-on-write reflinks.
  • Uses pnpm-lock.yaml to support deterministic installs.
  • Enforces access to declared dependencies through a strict package layout.
  • Supports workspaces for monorepos.
  • Runs on Windows, Linux, and macOS.
  • Includes an experimental Rust port of the CLI called pacquet.
  • Can also work as a Node.js version manager through pnpm runtime.

Use Cases

  • JavaScript and Node.js developers who want to avoid keeping repeated package files for multiple local projects.
  • Teams with monorepos that need workspace support and consistent dependency installation across packages.
  • CI or development workflows where a lockfile-backed, repeatable dependency install is important.
  • Developers working across Windows, Linux, and macOS who want the same package manager across platforms.

Getting Started

Install pnpm using the official installation guide, then see the usage documentation for commands and options. The README provides an overview and further links.

Considerations

  • The repository describes pacquet, the Rust CLI port, as experimental. Do not assume it has the same maturity as the main pnpm CLI.
  • The listed repository license is MIT, but the README notes that the pnpr/ directory uses the source-available PolyForm Shield License 1.0.0.
  • pnpm's storage and linking approach depends on filesystem support for hard links or reflinks; the README identifies both as linking methods.
  • The project is focused on the Node.js package ecosystem, so it is not a general-purpose package manager for unrelated languages.

Found this useful?

Share it with someone who would like pnpm.