# Yarn

📦🐈 Active development trunk for Yarn ⚒

Repository: https://github.com/yarnpkg/berry
Canonical: https://ross.abutalabs.com/products/yarn
Homepage: https://yarnpkg.com
Language: TypeScript
License: BSD-2-Clause
License Family: permissive
Topics: yarn, package-manager, nodejs, javascript
Last push: 2026-08-04T14:08:22+00:00
Link (homepage): https://yarnpkg.com
Link (site_page): https://yarnpkg.com/getting-started
Link (site_page): https://yarnpkg.com/features/caching
Link (site_page): https://classic.yarnpkg.com/en/docs

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 95, longevity 100
- inputs: {"age_days": 2914, "days_push": 29, "days_rel": 35, "gap_med": 17.5, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8101, forks 1321 (observed 2026-08-28T04:10:12.701914+00:00)

## What it is
Yarn is a fast, reliable, and secure package manager for JavaScript projects that also acts as a project manager, with features like workspaces, offline caching, deterministic lockfiles, and Plug'n'Play installs. The 1.x line is frozen for maintenance; active development happens in the yarnpkg/berry repository (Yarn 2+).

## Use cases
- install javascript dependencies fast and deterministically
- manage a monorepo with workspaces
- make builds reproducible with a lockfile
- install packages offline or with zero-installs
- migrate from npm to a faster package manager
- verify package integrity with checksums
- choose between node_modules, pnpm-style symlinks, or PnP installs

## When to choose
- you need deterministic, reproducible installs across machines and CI
- you manage monorepos with workspaces
- you want offline caching, zero-installs, or plugin extensibility
- you want a package manager that reimplements all commands for full control

## When to avoid
- you are starting a new project on Yarn 1.x Classic, which is frozen - use Yarn 4+ (berry) instead
- your team is standardized on npm or pnpm and has no need for Yarn-specific features
- you rely on tooling that only supports node_modules layouts and cannot handle PnP

## Facets
- artifact type: cli-tool
- maturity: active
- function: package-manager, cli, developer-tools, dependency-audit
- domain: developer-tools, web-development
- platform: cli, cross-platform
- tags: javascript, npm-registry, lockfile, workspaces, monorepo, plugnplay, zero-install, offline-cache, command-line, nodejs

## Member repositories
- yarnpkg/berry (main) score 96
- yarnpkg/yarn (mirror) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:12.701914+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:23:04.477310+00:00, confidence not recorded.
  - readme: https://github.com/yarnpkg/berry (fetched 2026-08-28T04:10:12.701914+00:00, sha c1e230dfd5c4)
  - homepage: https://yarnpkg.com (fetched 2026-08-29T07:46:50.430210+00:00, sha 436f5f53498c)
  - site_page: https://yarnpkg.com/getting-started (fetched 2026-08-29T07:46:50.439535+00:00, sha 8c6ccada29c0)
  - site_page: https://yarnpkg.com/features/caching (fetched 2026-08-29T07:46:50.441503+00:00, sha 2a290a432044)
  - site_page: https://classic.yarnpkg.com/en/docs (fetched 2026-08-29T07:46:50.443502+00:00, sha 75a9df30edff)
  - registry_npm: https://registry.npmjs.org/yarn (fetched 2026-08-29T07:46:50.445449+00:00, sha 62ac0fc28212)
- Data as of 2026-08-30T08:39:29.467469+00:00.
