repowisesupercorp-ai/supergateway

Code health of supercorp-ai/supergateway

Repowise scores supercorp-ai/supergateway at 8.8 out of 10 for code health, which reads as excellent, alongside maintainability 9.1 and static performance 9.8 on the same scale. There are 467 open findings across the three pillars, and the lowest-scoring file is ownedChildProcesses.ts at 5.8. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

65 critical, 83 high, 208 medium, 107 low.

Hotspots

22 files are flagged as hotspots. The top 5:

  • src/index.ts: 32 commits in the last 90 days from 6 contributors with 8 recent bug fixes
  • src/lib/modernHttp.ts: 18 commits in the last 90 days from 1 contributor with 6 recent bug fixes
  • src/gateways/stdioToStatefulStreamableHttp.ts: 48 commits in the last 90 days from 3 contributors with 24 recent bug fixes
  • src/gateways/stdioToStatelessStreamableHttp.ts: 45 commits in the last 90 days from 3 contributors with 23 recent bug fixes
  • src/gateways/streamableHttpToStdio.ts: 30 commits in the last 90 days from 1 contributor with 14 recent bug fixes

Lowest-scoring files

  • scripts/soak-release.test.ts: 1.7 out of 10
  • tests/statefulResponseLifecycle.test.ts: 4.5 out of 10 with 5 bug fixes in the last 180 days
  • tests/gatewayE2e.test.ts: 4.7 out of 10 with 4 bug fixes in the last 180 days
  • tests/httpObservedLifecycle.test.ts: 4.9 out of 10 with 4 bug fixes in the last 180 days
  • tests/helpers/process-tree.ts: 4.9 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 12 had a bug fix in the last 180 days. Across all 421 scored files, 15.0% had a bug fix in that window.

Dead code and refactoring

30 refactoring targets across 30 files would raise the score.

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

Related guide: Best dead code detection tools by language