repowiseshadcn-ui/ui

Code health of shadcn-ui/ui

Repowise scores shadcn-ui/ui at 9.3 out of 10 for code health, which reads as excellent, alongside maintainability 9.1 and static performance 10.0 on the same scale. There are 973 open findings across the three pillars, and the lowest-scoring file is update-css.ts at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

95 critical, 171 high, 478 medium, 229 low.

Hotspots

57 files are flagged as hotspots. The top 5:

  • packages/shadcn/src/commands/init.ts: 4 commits in the last 90 days from 1 contributor with 2 recent bug fixes
  • packages/registry/src/updaters/update-files.ts: 6 commits in the last 90 days from 4 contributors with 3 recent bug fixes
  • packages/registry/src/updaters/update-fonts.ts: 8 commits in the last 90 days from 2 contributors with 5 recent bug fixes
  • packages/registry/src/registry/api.ts: 4 commits in the last 90 days from 1 contributor with 5 recent bug fixes
  • packages/shadcn/src/mcp/index.ts: 5 commits in the last 90 days from 2 contributors with 1 recent bug fix

Lowest-scoring files

  • packages/registry/src/updaters/update-css.ts: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • packages/shadcn/src/commands/init.ts: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • packages/registry/src/registry/resolver.ts: 1.8 out of 10 with 2 bug fixes in the last 180 days
  • packages/registry/src/updaters/update-files.ts: 1.9 out of 10 with 3 bug fixes in the last 180 days
  • apps/v4/lib/registry-health/monitor.ts: 2.8 out of 10 with 2 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 4,078 scored files, 5.2% had a bug fix in that window.

Dead code and refactoring

Repowise found 253 unused exports. 68 refactoring targets across 68 files would raise the score.

More on ui: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language