# Yarn

> Safe, stable, reproducible projects

Source: https://talira.ai/catalog/yarn-2v1wymc5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / package managers](https://talira.ai/categories/developer-tools/package-managers), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: cli[^5]
- Licence: BSD-2-Clause[^4]
- Pricing: Free and open source[^4]
- Pricing notes: Free and open source under the BSD 2-Clause licence.
- Free tier: yes[^4]
- Self-hostable: yes[^5]
- Plugins: yes[^6]

Yarn is a JavaScript package manager that doubles as a project manager, built around workspaces for monorepos and guaranteeing that installs that work today keep working the same way. Its default Plug'n'Play install writes a single loader file instead of a node_modules folder, shares packages from one cache across projects and refuses imports of undeclared dependencies; node_modules and [pnpm](https://talira.ai/catalog/pnpm-b9z8sye0.md)-style linkers are available too. Constraints, catalogs, patching and plugins come built in. Yarn is a fully independent open source project tied to no company; Yarn 1.x (Classic) is frozen and development happens in Yarn 4.

## Links

- Website: https://yarnpkg.com/
- GitHub: https://github.com/yarnpkg/berry
- Docs: https://yarnpkg.com/getting-started

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/yarn>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/node-yarnpkg>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/yarn>[^3]

## Problems it solves

- manage a JavaScript monorepo with many packages that depend on each other
- installs that worked last month break today because a JavaScript dependency changed underneath me
- my node_modules folder is huge and every npm install spends ages copying files
- catch JavaScript code that imports a package it never declared as a dependency
- patch a bug in an npm dependency without forking it while I wait for the upstream fix
- keep dependency versions and package.json rules consistent across every package in my monorepo
- pin each JavaScript project to its own package manager version so the whole team uses the same one
- work out which packages in my monorepo need a version bump for the next release
- extend my JavaScript package manager with plugins for workflows it doesn't support

## Features

- workspaces
- Plug'n'Play installs with a single .pnp.cjs loader
- node_modules and pnpm-style symlink linkers
- one cache shared by all projects on the machine
- ghost dependency protection with explanatory errors
- JavaScript-based constraints across workspaces
- catalogs for central dependency versions
- patch: protocol for local changes to dependencies
- plugin API
- release workflow for monorepos (experimental)
- yarn npm audit
- per-project Yarn versions with yarn set version and Corepack
- editor SDKs

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.69, adoption 0.78, momentum 0.58, community 1.00, backing 0.00, extensibility 0.40.

- last commit 13 days ago
- 13 commits in the last 90 days
- latest release @yarnpkg/cli/4.18.1 2 months ago
- 8.1k GitHub stars
- 494 contributors
- accepts sponsorship (Github, Open Collective)
- has a plugin system

## Alternatives

- [pnpm](https://talira.ai/catalog/pnpm-b9z8sye0.md): Fast, disk space efficient package manager
- [npm](https://talira.ai/catalog/npm-pecwd9vr.md): The package manager for JavaScript
- [Bun](https://talira.ai/catalog/bun-z64kv5wg.md): Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
- [uv](https://talira.ai/catalog/uv-4x6kck1t.md): An extremely fast Python package and project manager, written in Rust.

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^4]: https://github.com/yarnpkg/berry/blob/master/LICENSE.md (checked 19 Nov 2026)
[^5]: https://yarnpkg.com/getting-started/install (checked 19 Nov 2026)
[^6]: https://yarnpkg.com/features/extensibility (checked 19 Nov 2026)
