The code of Carrel
Each module by folder, with its riskiest function by CRAP (complexity weighed against how much of it the tests run: over 30 is critical, over 5 worth watching) and its mutation score (the share of deliberate bugs its tests catch: under 60% is critical, under 80% worth watching). Choose a module for its functions and source.
DrDustinEdwards/carrel
Measured on 2026-10-24 at commit d5d5e82: 125 modules, 1496 functions. By CRAP, 66 critical, 350 to watch and 1080 ok. Mutation testing has not run on it yet.
Import cycles
- app/lib/books.server.ts imports app/lib/writing.server.ts, and back
- app/lib/content.server.ts imports app/lib/voice.server.ts, and back
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| flags-panel.tsx | 61 | 5 | WatchCRAP 30 | No data: mutation testing has not run on this repo yet |
| frontmatter-fields.tsx | 112 | 10 | CriticalCRAP 156 | No data: mutation testing has not run on this repo yet |
| layout.ts | 25 | 3 | WatchCRAP 30 | No data: mutation testing has not run on this repo yet |
| rich-editor.tsx | 575 | 67 | CriticalCRAP 552 | No data: mutation testing has not run on this repo yet |
| save-keys.ts | 17 | 4 | WatchCRAP 20 | No data: mutation testing has not run on this repo yet |
| schedule-dialog.tsx | 42 | 4 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| source-views.ts | 62 | 11 | WatchCRAP 12 | No data: mutation testing has not run on this repo yet |
| toolbar-icons.tsx | 20 | 2 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| typing.ts | 25 | 5 | CriticalCRAP 56 | No data: mutation testing has not run on this repo yet |
| writing-surface.tsx | 130 | 8 | CriticalCRAP 90 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| frame.tsx | 99 | 14 | CriticalCRAP 56 | No data: mutation testing has not run on this repo yet |
| project-tabs.tsx | 23 | 3 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| draft-links.tsx | 29 | 2 | WatchCRAP 20 | No data: mutation testing has not run on this repo yet |
| history-panel.tsx | 45 | 1 | CriticalCRAP 42 | No data: mutation testing has not run on this repo yet |
| revision-picker.tsx | 63 | 3 | WatchCRAP 20 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| detail-panel.tsx | 198 | 5 | CriticalCRAP 2070 | No data: mutation testing has not run on this repo yet |
| format.ts | 10 | 2 | WatchCRAP 12 | No data: mutation testing has not run on this repo yet |
| library-insert.tsx | 160 | 15 | CriticalCRAP 342 | No data: mutation testing has not run on this repo yet |
| results.tsx | 69 | 8 | CriticalCRAP 42 | No data: mutation testing has not run on this repo yet |
| upload.ts | 29 | 2 | CriticalCRAP 56 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| binder.tsx | 72 | 16 | CriticalCRAP 132 | No data: mutation testing has not run on this repo yet |
| progress-panel.tsx | 171 | 10 | CriticalCRAP 506 | No data: mutation testing has not run on this repo yet |
| status-label.tsx | 23 | 1 | WatchCRAP 12 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| schema.ts | 363 | 49 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| entry.server.tsx | 31 | 2 | WatchCRAP 12 | No data: mutation testing has not run on this repo yet |
| root.tsx | 65 | 5 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| routes.ts | 39 | 0 | No functions | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| access.server.ts | 26 | 1 | OkCRAP 4 | No data: mutation testing has not run on this repo yet |
| agent-keys.server.ts | 65 | 6 | WatchCRAP 9 | No data: mutation testing has not run on this repo yet |
| ai.server.ts | 281 | 19 | WatchCRAP 11 | No data: mutation testing has not run on this repo yet |
| backup-checks.ts | 21 | 2 | OkCRAP 3 | No data: mutation testing has not run on this repo yet |
| backup.server.ts | 8 | 1 | OkCRAP 1 | No data: mutation testing has not run on this repo yet |
| binder.server.ts | 125 | 16 | WatchCRAP 11.2 | No data: mutation testing has not run on this repo yet |
| book-history.server.ts | 74 | 5 | WatchCRAP 17.2 | No data: mutation testing has not run on this repo yet |
| books.server.ts cycle | 527 | 50 | WatchCRAP 20.1 | No data: mutation testing has not run on this repo yet |
| bulk.server.ts | 168 | 13 | WatchCRAP 21.2 | No data: mutation testing has not run on this repo yet |
| content.server.ts cycle | 258 | 10 | WatchCRAP 27.3 | No data: mutation testing has not run on this repo yet |
| context.ts | 19 | 3 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| deployed.ts | 8 | 1 | OkCRAP 3 | No data: mutation testing has not run on this repo yet |
| frontmatter.ts | 60 | 8 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| health.server.ts | 269 | 29 | WatchCRAP 10.1 | No data: mutation testing has not run on this repo yet |
| history.server.ts | 51 | 11 | WatchCRAP 7.5 | No data: mutation testing has not run on this repo yet |
| inbox-report.server.ts | 51 | 3 | WatchCRAP 7 | No data: mutation testing has not run on this repo yet |
| index.server.ts | 248 | 17 | WatchCRAP 9 | No data: mutation testing has not run on this repo yet |
| kind-words.ts | 16 | 3 | OkCRAP 3.3 | No data: mutation testing has not run on this repo yet |
| legal.server.ts | 83 | 5 | WatchCRAP 18.1 | No data: mutation testing has not run on this repo yet |
| legal.ts | 98 | 15 | WatchCRAP 10.1 | No data: mutation testing has not run on this repo yet |
| media.server.ts | 337 | 31 | CriticalCRAP 48.1 | No data: mutation testing has not run on this repo yet |
| mentions.server.ts | 203 | 12 | WatchCRAP 10 | No data: mutation testing has not run on this repo yet |
| patch.ts | 17 | 2 | OkCRAP 1 | No data: mutation testing has not run on this repo yet |
| people-admin.server.ts | 131 | 14 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| people.server.ts | 86 | 8 | OkCRAP 3 | No data: mutation testing has not run on this repo yet |
| preview.server.ts | 58 | 9 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| projects.server.ts | 35 | 1 | OkCRAP 4 | No data: mutation testing has not run on this repo yet |
| refresh.server.ts | 30 | 1 | CriticalCRAP 42 | No data: mutation testing has not run on this repo yet |
| roles.ts | 32 | 1 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| save-state.ts | 6 | 1 | WatchCRAP 20 | No data: mutation testing has not run on this repo yet |
| site-markdown.ts | 56 | 7 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| sites.server.ts | 155 | 29 | WatchCRAP 7 | No data: mutation testing has not run on this repo yet |
| timed-fetch.server.ts | 5 | 1 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| voice.server.ts cycle | 278 | 25 | WatchCRAP 11.6 | No data: mutation testing has not run on this repo yet |
| waiting.server.ts | 100 | 10 | WatchCRAP 8 | No data: mutation testing has not run on this repo yet |
| writing.server.ts cycle | 117 | 13 | WatchCRAP 9 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| markdown.mjs | 498 | 59 | CriticalCRAP 42.9 | No data: mutation testing has not run on this repo yet |
| schema.mjs | 75 | 13 | OkCRAP 2.5 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| drive.server.ts | 216 | 18 | WatchCRAP 13 | No data: mutation testing has not run on this repo yet |
| oauth.server.ts | 155 | 17 | WatchCRAP 12.6 | No data: mutation testing has not run on this repo yet |
| refresh.server.ts | 36 | 2 | CriticalCRAP 72 | No data: mutation testing has not run on this repo yet |
| search-console.server.ts | 72 | 4 | WatchCRAP 9 | No data: mutation testing has not run on this repo yet |
| service-account.server.ts | 109 | 11 | WatchCRAP 10.2 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| call-log.ts | 49 | 3 | OkCRAP 4.3 | No data: mutation testing has not run on this repo yet |
| door.ts | 322 | 20 | WatchCRAP 16.8 | No data: mutation testing has not run on this repo yet |
| registration.ts | 82 | 8 | WatchCRAP 7.1 | No data: mutation testing has not run on this repo yet |
| scopes.ts | 40 | 2 | OkCRAP 5 | No data: mutation testing has not run on this repo yet |
| server.ts | 77 | 6 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| tools.ts | 496 | 27 | WatchCRAP 17.3 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| checks.ts | 289 | 32 | WatchCRAP 13 | No data: mutation testing has not run on this repo yet |
| export.ts | 234 | 25 | WatchCRAP 18 | No data: mutation testing has not run on this repo yet |
| frontmatter.ts | 97 | 10 | WatchCRAP 13 | No data: mutation testing has not run on this repo yet |
| layout.ts | 183 | 23 | WatchCRAP 13 | No data: mutation testing has not run on this repo yet |
| repo.server.ts | 250 | 37 | WatchCRAP 12.3 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| lint.ts | 27 | 2 | WatchCRAP 8.2 | No data: mutation testing has not run on this repo yet |
| platforms.server.ts | 152 | 23 | WatchCRAP 11.1 | No data: mutation testing has not run on this repo yet |
| queue.server.ts | 367 | 24 | WatchCRAP 27.3 | No data: mutation testing has not run on this repo yet |
| routine.server.ts | 30 | 2 | OkCRAP 5 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| binder.ts | 162 | 44 | WatchCRAP 10.1 | No data: mutation testing has not run on this repo yet |
| progress.ts | 115 | 14 | WatchCRAP 8 | No data: mutation testing has not run on this repo yet |
| status.ts | 45 | 5 | WatchCRAP 10.1 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| ai-draft.preview.ts | 29 | 1 | WatchCRAP 13.5 | No data: mutation testing has not run on this repo yet |
| ai-draft.tsx | 156 | 9 | CriticalCRAP 72 | No data: mutation testing has not run on this repo yet |
| auth.google.ts | 26 | 2 | WatchCRAP 7.9 | No data: mutation testing has not run on this repo yet |
| book.authorship.ts | 17 | 1 | OkCRAP 1 | No data: mutation testing has not run on this repo yet |
| book.chapter.tsx | 136 | 13 | CriticalCRAP 132 | No data: mutation testing has not run on this repo yet |
| book.corkboard.tsx | 238 | 35 | CriticalCRAP 156 | No data: mutation testing has not run on this repo yet |
| book.export.ts | 62 | 3 | WatchCRAP 9 | No data: mutation testing has not run on this repo yet |
| book.file.tsx | 506 | 46 | CriticalCRAP 1056 | No data: mutation testing has not run on this repo yet |
| book.history.tsx | 254 | 13 | CriticalCRAP 380 | No data: mutation testing has not run on this repo yet |
| book.new.tsx | 55 | 4 | WatchCRAP 20 | No data: mutation testing has not run on this repo yet |
| book.outliner.tsx | 227 | 16 | CriticalCRAP 210 | No data: mutation testing has not run on this repo yet |
| book.tsx | 404 | 23 | CriticalCRAP 812 | No data: mutation testing has not run on this repo yet |
| editor.tsx | 556 | 51 | CriticalCRAP 5700 | No data: mutation testing has not run on this repo yet |
| frame.tsx | 47 | 4 | CriticalCRAP 72 | No data: mutation testing has not run on this repo yet |
| health.ts | 13 | 1 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| history.tsx | 233 | 9 | CriticalCRAP 420 | No data: mutation testing has not run on this repo yet |
| home.tsx | 117 | 4 | CriticalCRAP 110 | No data: mutation testing has not run on this repo yet |
| legal.tsx | 199 | 7 | CriticalCRAP 90 | No data: mutation testing has not run on this repo yet |
| manuscripts.tsx | 146 | 5 | CriticalCRAP 272 | No data: mutation testing has not run on this repo yet |
| media.api.ts | 58 | 4 | WatchCRAP 9.9 | No data: mutation testing has not run on this repo yet |
| media.bulk.ts | 46 | 3 | WatchCRAP 22.4 | No data: mutation testing has not run on this repo yet |
| media.tsx | 569 | 36 | CriticalCRAP 6972 | No data: mutation testing has not run on this repo yet |
| mentions.api.ts | 32 | 1 | WatchCRAP 20.6 | No data: mutation testing has not run on this repo yet |
| mentions.tsx | 330 | 33 | CriticalCRAP 380 | No data: mutation testing has not run on this repo yet |
| people.tsx | 265 | 11 | CriticalCRAP 90 | No data: mutation testing has not run on this repo yet |
| preview.ts | 37 | 1 | WatchCRAP 11.4 | No data: mutation testing has not run on this repo yet |
| project.bulk.ts | 40 | 2 | WatchCRAP 10.1 | No data: mutation testing has not run on this repo yet |
| project.flags.tsx | 140 | 11 | CriticalCRAP 90 | No data: mutation testing has not run on this repo yet |
| project.new.tsx | 72 | 5 | WatchCRAP 30 | No data: mutation testing has not run on this repo yet |
| project.tsx | 327 | 24 | CriticalCRAP 1122 | No data: mutation testing has not run on this repo yet |
| project.voice.tsx | 165 | 7 | CriticalCRAP 156 | No data: mutation testing has not run on this repo yet |
| social.tsx | 363 | 18 | CriticalCRAP 182 | No data: mutation testing has not run on this repo yet |
| unpublish.tsx | 79 | 4 | CriticalCRAP 90 | No data: mutation testing has not run on this repo yet |
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| app.ts | 53 | 6 | WatchCRAP 12 | No data: mutation testing has not run on this repo yet |
| csp-report.ts | 26 | 3 | OkCRAP 2 | No data: mutation testing has not run on this repo yet |
| gate.ts | 51 | 3 | WatchCRAP 6 | No data: mutation testing has not run on this repo yet |
| security-headers.ts | 107 | 6 | OkCRAP 4 | No data: mutation testing has not run on this repo yet |