repowisevercel-labs/ui

Code health of vercel-labs/ui

Repowise scores vercel-labs/ui at 8.6 out of 10 for code health, which reads as excellent, alongside maintainability 8.8 and static performance 9.9 on the same scale. There are 2,473 open findings across the three pillars, and the lowest-scoring file is agent.ts at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

266 critical, 336 high, 1,041 medium, 830 low.

Hotspots

1,006 files are flagged as hotspots. The top 5:

  • packages/core/test/agent.test.ts: 23 commits in the last 90 days from 1 contributor with 21 recent bug fixes
  • packages/core/src/page/agent/agent.ts: 23 commits in the last 90 days from 1 contributor with 20 recent bug fixes
  • apps/docs/lib/data-attributes.ts: 15 commits in the last 90 days from 3 contributors with 2 recent bug fixes
  • packages/core/test/create-popup.test.ts: 6 commits in the last 90 days from 1 contributor with 4 recent bug fixes
  • apps/docs/components/home-posters.tsx: 10 commits in the last 90 days from 2 contributors

Lowest-scoring files

  • packages/core/src/page/agent/agent.ts: 1.0 out of 10 with 20 bug fixes in the last 180 days
  • packages/core/src/foundation/popups/popup.ts: 1.0 out of 10 with 14 bug fixes in the last 180 days
  • packages/web/src/define-element.ts: 1.0 out of 10 with 15 bug fixes in the last 180 days
  • packages/core/src/components/tree/tree-api.ts: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • scripts/check-code.mjs: 1.0 out of 10 with 3 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 20 had a bug fix in the last 180 days. Across all 5,783 scored files, 10.5% had a bug fix in that window.

Dead code and refactoring

Repowise found 5 unused exports. 56 refactoring targets across 56 files would raise the score.

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

Related guide: Best dead code detection tools by language