repowisechenglou/handwired

chenglou / handwired

typescriptmain4ea7fcb155.6K linessynced on Oct 16, 2026

Code health

7.1out of 10Good

Hotspots average 5.7, the place fixes pay off most.

Explore this codebase

Do next · 4

4 things worth doing in the week to Oct 15, the last indexed commit.

Worth planning

  • Break up render (CCN 160, 297 lines)

    src/json-search/demo.ts:483

    render nests deeply; easier to read and change once split; function changed in 14 commits; its file is imported by 1 file, changed 23 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 160, 297 lines, nests 7 deep
    severity
    high
    worth a check
  • Start breaking up emitBitLoopWgsl (CCN 68, 782 lines): first lift lines 270-294

    src/json-search/bit-emit.ts:270

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

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 68, 782 lines, nests 4 deep
    severity
    medium
    worth a check
  • Tidy the code shape this week's commits left: 9 findings in 5 files

    5 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with lab/json-search/gpu/writers-page.ts (2 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    9
    files
    5
    commits
    5
  • Start breaking up compileWindowManagerCircuit (CCN 57, 936 lines)

    lab/ui-exploration/event-time/window-manager.ts:470

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

    gain
    up to +1.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 57, 936 lines, nests 5 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

6 areas