# scinos/yarn-deduplicate

Deduplication tool for yarn.lock files

Repository: https://github.com/scinos/yarn-deduplicate
Canonical: https://ross.abutalabs.com/products/yarn-deduplicate
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: yarn, duplicates, dedupe, duplicated-packages, yarn-lock, lock-file
Last push: 2026-08-02T09:08:14+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 2999, "days_push": 31, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1391, forks 57 (observed 2026-08-28T04:04:35.873961+00:00)

## What it is
A CLI tool that cleans up yarn.lock files by removing duplicated package resolutions in Yarn v1 projects. It merges duplicate dependency entries when a single version satisfies overlapping version ranges.

## Use cases
- deduplicate packages in yarn.lock
- reduce duplicate dependencies in a yarn v1 project
- clean up lockfile before committing
- shrink node_modules by merging duplicate package versions
- gradually deduplicate specific packages in yarn.lock

## When to choose
- you use Yarn v1 and your yarn.lock has duplicated package versions
- you want to reduce install size and dependency tree conflicts
- you want a quick npx-runnable tool with no install

## When to avoid
- you use Yarn v2+ (Berry), which deduplicates natively
- you use npm or pnpm instead of Yarn
- you need non-overlapping version ranges to be merged (impossible by design)

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, package-manager, developer-tools
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: yarn, yarn-lock, lockfile, dedupe, npm, javascript, command-line, nodejs

## Member repositories
- scinos/yarn-deduplicate (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:35.873961+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-30T04:39:37.263297+00:00, confidence not recorded.
  - readme: https://github.com/scinos/yarn-deduplicate (fetched 2026-08-28T04:04:35.873961+00:00, sha 52aa805a2d20)
  - registry_npm: https://registry.npmjs.org/yarn-deduplicate (fetched 2026-08-29T11:54:56.016145+00:00, sha 9102d4b01c54)
- Data as of 2026-08-30T08:39:29.467469+00:00.
