Polyrepo Tax Report
Migrating the coupled repos pays back in about 23.6 months at the expected estimate.
Estimates from git history, not invoices. Every count links to commits below; every rate and assumption is listed at the end and can be overridden.
Where the money goes
Annualized cost per driver, expected scenario. Hover or focus a bar for hours and CI minutes.
Table view
| Cost driver | Events | Dev hours | CI minutes | Cost (window) | Annualized | Monorepo removes |
|---|---|---|---|---|---|---|
| Internal dependency bumps | 3 | 1.2 | 45 | $120 | $120 | 100% |
| Internal releases consumed by sibling repos | 3 | 1.5 | 45 | $150 | $150 | 100% |
| Changes coordinated across repos | 1 | 2 | 15 | $200 | $200 | 75% |
| Same tooling/dependency maintenance repeated per repo | 1 | 2 | 30 | $200 | $200 | 100% |
| Bugs: dependency-regression | 1 | 8 | 15 | $800 | $800 | 90% |
| Bugs: post-bump-fix | 1 | 8 | 15 | $800 | $800 | 90% |
| Bugs: fix-propagation | 1 | 8 | 15 | $800 | $800 | 100% |
| Bugs: duplicated-fix | 1 | 10 | 45 | $1,000 | $1,000 | 100% |
| Bugs: cross-repo-fix | 0 | 0 | 0 | $0 | $0 | 50% |
| Total | 40.7 | 225 | $4,072 | $4,072 | $3,862/yr |
Scenarios
| Scenario | Bugs counted | Window cost | Annualized | Annual savings | Payback |
|---|---|---|---|---|---|
| low | high confidence only | $1,471 | $1,471 | $1,341 | 68 mo |
| expected | high + medium | $4,072 | $4,072 | $3,862 | 23.6 mo |
| high | high + medium + low | $4,072 | $4,072 | $3,862 | 23.6 mo |
Bugs attributable to repo boundaries
highdependency-regressionweb-app rolled back @acme/ui ^2.0.0 → ^1.1.0web-app
An internal release broke a consumer after it shipped. In a monorepo the producer change runs the consumer's tests before merge.
web-app@3f66365afc2026-03-05 Revert "chore: bump @acme/ui to 2.0.0"
mediumduplicated-fixfix: date parsing in timezone offsetsui-lib, web-app, admin-app
The same fix was applied in 3 repos: duplicated code, or a shared contract that has to be fixed everywhere.
ui-lib@63bbf03f8b2026-04-10 fix: date parsing in timezone offsetsweb-app@c2693962912026-04-11 fix: date parsing in timezone offsetsadmin-app@e993c0a6992026-04-12 fix(date): date parsing in timezone offsets
mediumpost-bump-fixfix: adapt checkout to @acme/ui Button APIweb-app, ui-lib
Fix landed 2 days after web-app bumped @acme/ui ^1.1.0 → ^2.0.0 and names that package.
web-app@d56547a5d42026-03-10 chore: bump @acme/ui to 2.0.0 with Button migration (context)web-app@1938bd7e0e2026-03-12 fix: adapt checkout to @acme/ui Button API
mediumfix-propagationfix: pick up money rounding from ui 2.1web-app, ui-lib
The fix reached web-app only after a release of @acme/ui and a version bump.
web-app@2dcff72d1f2026-06-05 fix: pick up money rounding from ui 2.1
Internal dependency churn
| Internal package | Producer | Consumers | Bumps | Releases |
|---|---|---|---|---|
@acme/ui | ui-lib | web-app, admin-app | 4 | 3 |
Version skew today
@acme/ui: v1 in admin-app · v2 in web-app
Duplicated and coordinated work
- Coordinated change ui-lib, web-app
PAY-42 add currency field to Money typeui-lib@bebd912d74web-app@326fe5c05d - Repeated maintenance ×3 ui-lib, web-app, admin-app
ci: bump node to 22ui-lib@6bbb1f32c4web-app@2ea08646f0admin-app@831871fc08
Migration
Recommended tooling: pnpm workspaces + Nx or Turborepo (js/ts 10 files)
Why migrate
The polyrepo costs monorepo.tools lists, shown only where this report measured them.
- Cumbersome code sharing → Share code without the overhead of publishing versioned packages. Measured: internal dependency bumps: 5, internal releases consumed by sibling repos: 3.
- Significant code duplication → A single source of truth: fix once and every consumer gets the fix. Measured: duplicated-fix bugs: 1.
- Costly cross-repo changes → Atomic commits: a breaking change and its consumer fixes land in one PR. Measured: coordinated cross-repo changes: 1.
- Hard to enforce conventions (drift is the default) → Conventions live in one place and are enforceable at scale. Measured: repeated tooling/dependency changes: 1, internal packages with version skew today: 1.
Tool options
Every tool compared on monorepo.tools/compare (snapshot 2026-11-26). The rating and every column up to “not supported” come from monorepo.tools, which is published by Nx; the last column is from independent sources and is not scored.
| Tool | monorepo.tools rating /10 | Fast | Understandable | Manageable | AI Support | implement your own | community provided | not supported | Fit | Already used | Independent signals (not scored) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Nx | 9.5 | 7/8 | 2/2 | 5/5 | 5/5 | 0 | 0 | 1 | yes | — | State of JS 2024 satisfaction 65% (84% in 2021) State of JS 2025 regular use 1,682 Thoughtworks Radar Trial (Oct 2021, archived) |
| moon moonrepo | 6.5 | 4/8 | 2/2 | 4/5 | 3/5 | 0 | 1 | 6 | yes | — | State of JS 2025 regular use 23 (write-in) |
| Lerna maintained by the Nx team | 5.5 | 7/8 | 2/2 | 1/5 | 1/5 | 2 | 0 | 7 | yes | — | State of JS 2024 satisfaction 33% (59% in 2021) State of JS 2025 regular use 794 |
| Pants Pants Build | 5.5 | 6/8 | 1/2 | 4/5 | 0/5 | 4 | 1 | 4 | yes | — | — |
| Bazel Google | 5.0 | 5/8 | 1/2 | 4/5 | 0/5 | 5 | 3 | 2 | yes | — | — |
| Gradle Gradle, Inc | 5.0 | 6/8 | 1/2 | 2/5 | 1/5 | 5 | 2 | 3 | yes | — | Thoughtworks Radar Adopt (May 2013, archived) |
| Rush Microsoft | 5.0 | 4/8 | 1/2 | 2/5 | 3/5 | 3 | 0 | 7 | yes | — | State of JS 2024 satisfaction 42% (59% in 2021) State of JS 2025 regular use 74 |
| Turborepo Vercel | 4.0 | 4/8 | 2/2 | 1/5 | 1/5 | 2 | 1 | 9 | yes | — | State of JS 2024 satisfaction 77% (87% in 2021) State of JS 2025 regular use 1,718 Thoughtworks Radar Trial (Apr 2025, archived) |
| Lage Microsoft | 3.0 | 4/8 | 1/2 | 1/5 | 0/5 | 3 | 0 | 11 | yes | — | — |
Sources
- monorepo.tools (published by Nx, retrieved 2026-11-26; scored). Feature matrix. monorepo.tools rating = 10 × features marked "natively supported" ÷ 20; "implement your own" and "community provided" are counted but not scored. The page says it aims to be objective and accepts corrections by pull request. Covers: all tools in the table; the rating and the feature columns come from it.
- State of JavaScript 2024 (Devographics, retrieved 2026-11-26; independent, not scored). Satisfaction: proportion of positive sentiment among respondents having used an item and expressed a sentiment. Covers: Lerna, Nx, Rush, Turborepo (JS tools only).
- State of JavaScript 2025 (Devographics, retrieved 2026-11-26; independent, not scored). Respondents who answered "Which of these monorepo tools do you regularly use?" (multiple choice, 10,251 answered). This edition did not ask about satisfaction. Covers: Lerna, Nx, Rush, Turborepo; moon only as a write-in answer.
- Thoughtworks Technology Radar (Thoughtworks, retrieved 2026-11-26; independent, not scored). Ring (Adopt, Trial, Assess, Hold) on the latest edition that featured the tool. Covers: Gradle, Nx, Turborepo. None is on the current edition (Vol. 35, November 2026); Thoughtworks says older blips may no longer reflect its view.
Clusters to migrate, heaviest first
- admin-app, ui-lib, web-app coupling weight 25
Keep separate (no measured coupling): docs-site
One-time effort: ~9.5 dev-days ($7,600) for 3 repos · payback ~23.6 months (range 23.6 – 68 months)
Coupling between repos
| Repo pair | Internal deps | Bumps | Coordinated changes | Bugs | Weight | Repeated tooling (not weighted) |
|---|---|---|---|---|---|---|
| ui-lib ↔ web-app | 1 | 5 | 1 | 3 | 17 | 1 |
| admin-app ↔ ui-lib | 1 | 0 | 0 | 1 | 5 | 1 |
| admin-app ↔ web-app | 0 | 0 | 0 | 1 | 3 | 1 |
External dependencies to align first
| External dependency | Majors in use |
|---|---|
react | v17 (admin-app) · v18 (ui-lib, web-app) |
Migration plan
- Target layout and tooling — pnpm workspaces + Turborepo:
packages/ui(fromui-lib),apps/web(fromweb-app),apps/admin(fromadmin-app).docs-sitestays in its own repo: no shared packages, co-changes or shared bugs in the window. - Phase 0 — prepare (no repo moves).
- Upgrade
reactfrom v17 to v18 inadmin-app, in its own PR. - Agree on pnpm, one Node version and one lint/format config.
- No new internal packages outside the monorepo.
- Phase 1 — import with history.
ui-libfirst, thenweb-appandadmin-app, each withgit subtree add --prefix=<dest> <repo-url> main.
- Replace
@acme/uiversion ranges withworkspace:*and drop its publish step. - CI runs
turbo run test --affectedso a change topackages/uiruns both apps' tests before merge. - Move CODEOWNERS entries under each new directory; archive the old repos once open PRs are merged or moved.
- Verify — run
monorepo-doctoron the new monorepo, thenmonorepo-boundaries-cleanupfor what it finds.
| Phase | Repos | Effort |
|---|---|---|
| 0 | admin-app | 0.5 dev-days |
| 1 | ui-lib, web-app, admin-app | 9 dev-days |
Risks: CI capacity during the transition, mistakes in the history import, and ownership of packages/ui.
Assumptions
| Assumption | Value |
|---|---|
bumpHumanHours | 0.5 |
bumpBotHours | 0.2 |
releaseHours | 0.5 |
coordinationHoursPerExtraRepo | 2 |
duplicateChangeHoursPerCopy | 1 |
bugHours | 8 |
ciMinutesPerCommit | 15 |
bumpFixWindowDays | 7 |
groupWindowDays | 14 |
similarity | 0.75 |
migrationDaysPerRepo | 3 |
migrationDaysPerConflict | 0.5 |
monorepoToolingMonthly | 0 |
developerHourly | $100 |
ciPerMinute | USD 0.008 |
| Repo | Commits | Stack | CI min/commit | CI source |
|---|---|---|---|---|
| ui-lib | 8 | — | 15 | assumed |
| web-app | 11 | — | 15 | assumed |
| admin-app | 3 | — | 15 | assumed |
| docs-site | 3 | — | 15 | assumed |