Skip to the content

Capsid menu

The code, measured

182,246 lines in 1,226 modules and 15,255 functions across 11 public repos, measured after each push. CRAP weighs a function's complexity against how much of it the tests run (over 30 is critical); a mutation score is the share of deliberate bugs the tests catch (under 60% is critical).

public repos
11
modules
1,226
functions
15,255
lines
182,246

Every repo

Each public repo's size and health; choose a heading to sort
RepoLinesModulesFunctionsCoveredCriticalCyclesMutation
capsid41,903219265686%955No data: mutation testing has not run on this repo yet
d1-dump1,2511214294%10Watch73.3%
devkit1,9641620372%60No data: mutation testing has not run on this repo yet
site-runtime6,3233235882%160No data: mutation testing has not run on this repo yet
prelum2,5632018397%00No data: mutation testing has not run on this repo yet
capsomer35,407185414665%763No data: mutation testing has not run on this repo yet
site-api3,9892437294%51Watch71.4%
dustinedwards-info62,897533494990%321Critical59.2%
carrel17,019125149659%662No data: mutation testing has not run on this repo yet
enarratio7,9615165887%140Watch79.8%
claude-skills96999282%10No data: mutation testing has not run on this repo yet

The 25 riskiest functions

By CRAP, highest first, across every public repo
FunctionRepoModuleComplexityCoveredCRAP
MediaLibrarycarrelapp/routes/media.tsx830%CriticalCRAP 6972
performActioncapsidsrc/controls-perform.ts15535%CriticalCRAP 6722.5
Editorcarrelapp/routes/editor.tsx750%CriticalCRAP 5700
MediaDetailPanelcarrelapp/components/media/detail-panel.tsx450%CriticalCRAP 2070
Projectcarrelapp/routes/project.tsx330%CriticalCRAP 1122
fireRoutinecapsidsrc/routine-fire.ts331%CriticalCRAP 1092.9
BookFilecarrelapp/routes/book.file.tsx320%CriticalCRAP 1056
findIgnoreMarkerssite-runtimeprose-engine.mjs321%CriticalCRAP 1025.6
createListboxcapsomercomponents/listbox/listbox.ts301%CriticalCRAP 892.7
featuresIsNounsite-runtimeprose-engine.mjs291%CriticalCRAP 842.6
filtercapsomercomponents/listbox/listbox.ts280%CriticalCRAP 812
handleKeycapsomercomponents/listbox/listbox.ts280%CriticalCRAP 812
Bookcarrelapp/routes/book.tsx280%CriticalCRAP 812
primerMarkdowndustinedwards-infoapp/kb/registry/catalog.mjs282%CriticalCRAP 756.9
onClickcapsomercomponents/system-map/system-map.ts270%CriticalCRAP 756
onKeycapsomercomponents/system-map/system-map.ts270%CriticalCRAP 756
onKeycapsomercomponents/tree/tree.ts270%CriticalCRAP 756
maindevkitbin/conformance.mjs260%CriticalCRAP 702
handleBenchStartcapsidsrc/bench.ts241%CriticalCRAP 579.5
recordOutcomeRevertscapsidsrc/merge-safety.ts242%CriticalCRAP 572.8
watchSitecapsidsrc/site-watch.ts230%CriticalCRAP 552
RichEditorcarrelapp/components/editor/rich-editor.tsx230%CriticalCRAP 552
ProgressPanelcarrelapp/components/writing/progress-panel.tsx220%CriticalCRAP 506
showStepcapsomercomponents/system-map/system-map.ts210%CriticalCRAP 462
analyzeTextsite-runtimeprose-engine.mjs11872%CriticalCRAP 430.3

The weakest-tested modules

Mutation runs weekly on the repos that have it; these modules' tests caught the smallest share of deliberate bugs.

By mutation score, lowest first
ModuleRepoFunctionsMutation
src/cli.tsd1-dump4Critical0%
app/lib/publications/parse.mjsdustinedwards-info2Critical0%
src/enhance/index.tsenarratio2Critical0%
src/render/document.browser.tsenarratio1Critical0%
app/lib/content/pipeline.mjsdustinedwards-info13Critical2.4%
app/lib/webmention/urls.mjsdustinedwards-info8Critical10.4%
app/kb/procedures/render.mjsdustinedwards-info75Critical17.5%
app/kb/procedures/compile.mjsdustinedwards-info12Critical22%
app/kb/libraries.mjsdustinedwards-info37Critical22.4%
src/theme/stylesheet.tsenarratio12Critical27.3%
src/contract.tssite-api8Critical33.4%
src/frontmatter.tssite-api31Critical42.9%
app/lib/editor/publish-policy.mjsdustinedwards-info10Critical43.5%
app/lib/cv/pdf-html.mjsdustinedwards-info7Critical44.2%
app/lib/content/chunks.mjsdustinedwards-info1Critical45.2%