repowised-oit/do-epub-studio

Code health of d-oit/do-epub-studio

Repowise scores d-oit/do-epub-studio at 7.8 out of 10 for code health, which reads as good, alongside maintainability 9.1 and static performance 9.9 on the same scale. There are 1,168 open findings across the three pillars, and the lowest-scoring file is access.ts at 2.2. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

150 critical, 224 high, 351 medium, 349 low.

Hotspots

126 files are flagged as hotspots. The top 5:

  • apps/web/src/features/reader/ReaderPage.tsx: 30 commits in the last 90 days from 6 contributors with 19 recent bug fixes
  • apps/web/src/features/auth/LoginPage.tsx: 30 commits in the last 90 days from 5 contributors with 16 recent bug fixes
  • apps/web/src/features/admin/BooksPage.tsx: 21 commits in the last 90 days from 6 contributors with 15 recent bug fixes
  • packages/reader-core/src/sanitizer.ts: 17 commits in the last 90 days from 4 contributors with 6 recent bug fixes
  • apps/web/src/features/admin/GrantsPage.tsx: 12 commits in the last 90 days from 6 contributors with 10 recent bug fixes

Lowest-scoring files

  • apps/worker/src/routes/access.ts: 2.2 out of 10 with 11 bug fixes in the last 180 days
  • apps/web/src/lib/offline/sync.ts: 2.3 out of 10 with 10 bug fixes in the last 180 days
  • packages/reader-core/src/reanchor.ts: 2.4 out of 10 with 2 bug fixes in the last 180 days
  • scripts/generate-available-skills.py: 2.5 out of 10 with 3 bug fixes in the last 180 days
  • apps/web/src/features/reader/hooks/useReaderEpub.ts: 2.7 out of 10 with 9 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 18 had a bug fix in the last 180 days. Across all 1,258 scored files, 29.3% had a bug fix in that window.

Dead code and refactoring

Repowise found 3 unused exports. 41 refactoring targets across 41 files would raise the score.

More on do-epub-studio: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language