repowisegoniszewski/grimoire

goniszewski / grimoire

typescriptmain5323001105.3K linessynced on Aug 13, 2026

Code health

6.6out of 10Fair

Hotspots average 5.1, the place fixes pay off most.

Explore this codebase

Do next · 3

4 things worth doing in the week to Aug 3, the last indexed commit, 1 of them now.

Worth planning

  • Start breaking up handleBackupCommand (CCN 45, 196 lines): first lift lines 742-755

    daemon/src/cli.ts:742

    handleBackupCommand nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 3 commits; its file is imported by 4 files, changed 8 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 45, 196 lines, nests 4 deep
    severity
    medium
    worth a check
  • Start breaking up runPipeline (CCN 24, 213 lines): first lift lines 250-374

    daemon/src/pipeline/pipeline.ts:250

    runPipeline has many paths; easier to read and change once split, which also removes a duplicate; function changed in 11 commits; its file is imported by 5 files, changed 14 times in 90 days.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Complex method
    size
    CCN 24, 213 lines, nests 3 deep
    severity
    high
    worth a check
  • Address the finding in createBackupRoute

    daemon/src/routes/backup.ts:616

    createBackupRoute has a bumpy road finding; function changed in 16 commits; its file is imported by 7 files, changed 18 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Bumpy road
    size
    CCN 121, 722 lines, nests 6 deep
    severity
    high
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report

Everything we found

5 areas