Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
This report summarizes scanner evidence for Kareadita/Kavita, a C# project with 11,987 GitHub stars. SynthScan examined 989,528 lines of code across 3574 source files, recording 497 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 472 finding(s).
Are imports declared and package/API names verified? 22 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 497 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 497 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | entrypoint.sh | 1 | #! /bin/bash | COMMENT |
| LOW | entrypoint.sh | 41 | # chown -R "$PUID" /kavita/config | COMMENT |
| LOW | …b/src/app/dashboard/_components/dashboard.component.ts | 261 | increment() { | COMMENT |
| LOW | UI/Web/src/app/_models/metadata/v2/filter-comparison.ts | 21 | NotEqual = 9, | COMMENT |
| LOW | …ule/publisher-flipper/publisher-flipper.component.scss | 1 | // | COMMENT |
| LOW | …s/v0.9.1/ManualMigrateEpubFontFamilyDetailsBackfill.cs | 21 | /// | COMMENT |
| LOW | …s/v0.9.1/ManualMigrateEpubFontFamilyDetailsBackfill.cs | 41 | // Current font list at this stage of program execution already includes | COMMENT |
| LOW | Kavita.Server/Controllers/ReaderController.cs | 1141 | /// Check if we should prompt the user for rereads for the given volume | COMMENT |
| LOW | Kavita.Server/Controllers/FilterController.cs | 241 | /// Encode an Annotation Filter | COMMENT |
| LOW | Kavita.Server/Controllers/AccountController.cs | 61 | COMMENT | |
| LOW | Kavita.Server/Controllers/DeviceController.cs | 201 | COMMENT | |
| LOW | Kavita.Server/Controllers/BaseApiController.cs | 41 | /// <summary> | COMMENT |
| LOW | Kavita.Server/Controllers/BaseApiController.cs | 101 | /// ETag is generated from SHA256 hash of the content. | COMMENT |
| LOW | Kavita.Server/Controllers/ReadingListController.cs | 121 | /// <summary> | COMMENT |
| LOW | Kavita.Server/Controllers/ReadingProfileController.cs | 21 | { | COMMENT |
| LOW | Kavita.Server/Controllers/SearchController.cs | 41 | /// <summary> | COMMENT |
| LOW | Kavita.Server/Controllers/OPDSController.cs | 681 | }; | COMMENT |
| LOW | Kavita.Server/Logging/LogLevelOptions.cs | 21 | /// </summary> | COMMENT |
| LOW | Kavita.Services/ArchiveService.cs | 181 | var result = fullNames | COMMENT |
| LOW | Kavita.Services/ArchiveService.cs | 261 | /// <summary> | COMMENT |
| LOW | Kavita.Services/ImageService.cs | 541 | { | COMMENT |
| LOW | Kavita.Services/SeriesService.cs | 641 | /// </summary> | COMMENT |
| LOW | Kavita.Services/DirectoryService.cs | 1041 | public void RemoveNonImages(string directoryName) | COMMENT |
| LOW | Kavita.Services/DirectoryService.cs | 1061 | /// becomes:<para /> | COMMENT |
| LOW | Kavita.Services/FontService.cs | 21 | COMMENT | |
| LOW | Kavita.Services/BookService.cs | 1081 | if (foundTarget) return; | COMMENT |
| LOW | Kavita.Services/BookService.cs | 1561 | /// <param name="doc">Html Doc that will be appended to</param> | COMMENT |
| LOW | Kavita.Services/TaskScheduler.cs | 901 | /// <summary> | COMMENT |
| LOW | Kavita.Services/VersionUpdaterService.cs | 21 | internal class GithubReleaseMetadata | COMMENT |
| LOW | Kavita.Services/VersionUpdaterService.cs | 81 | /// <summary> | COMMENT |
| LOW | Kavita.Services/Reading/ReaderService.cs | 341 | COMMENT | |
| LOW | Kavita.Services/ReadingLists/ReadingListService.cs | 281 | } | COMMENT |
| LOW | Kavita.Services/Scanner/DefaultParser.cs | 41 | /// <summary> | COMMENT |
| LOW | Kavita.Services/Scanner/ScanJob.cs | 1 | using System; | COMMENT |
| LOW | Kavita.Services/Scanner/Parser.cs | 61 | /// non-greedy matching of a string where parenthesis are balanced | COMMENT |
| LOW | Kavita.Services/Scanner/Parser.cs | 1201 | } | COMMENT |
| LOW | Kavita.Services/Scanner/Parser.cs | 1221 | return Uri.UnescapeDataString(query).Trim().Replace(@"%", string.Empty) | COMMENT |
| LOW | Kavita.Services/Scanner/Parser.cs | 1261 | /// <summary> | COMMENT |
| LOW | Kavita.Services/Scanner/ParseScannedFiles.cs | 61 | COMMENT | |
| LOW | Kavita.Services/Scanner/ParseScannedFiles.cs | 81 | COMMENT | |
| LOW | Kavita.Services/Scanner/ParseScannedFiles.cs | 101 | public TimeSpan GroupTime { get; private set; } | COMMENT |
| LOW | Kavita.Services/Scanner/ParseScannedFiles.cs | 941 | COMMENT | |
| LOW | Kavita.Services/Metadata/CoverDbService.cs | 81 | /// <summary> | COMMENT |
| LOW | Kavita.Services/Helpers/PdfMetadataExtractor.cs | 21 | // %PDF-1.4 ← Header | COMMENT |
| LOW | Kavita.Services/Helpers/PdfMetadataExtractor.cs | 41 | // << /Size 6 /Root 1 0 R /Info 2 0 R >> | COMMENT |
| LOW | Kavita.Services/Helpers/KoreaderHelper.cs | 21 | private static partial Regex JustNumber(); | COMMENT |
| LOW | Kavita.Services/Plus/ScrobblingService.cs | 61 | /// K+ license | COMMENT |
| LOW | Kavita.Services/Plus/ScrobblingService.cs | 801 | } | COMMENT |
| LOW | Kavita.Services/Plus/ExternalMetadataService.cs | 2861 | COMMENT | |
| LOW | Kavita.Models/Misc/Chunk.cs | 1 | namespace Kavita.Models.Misc; | COMMENT |
| LOW | Kavita.Models/Misc/CacheSource.cs | 1 | namespace Kavita.Models.Misc; | COMMENT |
| LOW | Kavita.Models/Constants/PolicyGroups.cs | 1 | namespace Kavita.Models.Constants; | COMMENT |
| LOW | Kavita.Models/Constants/CacheProfiles.cs | 1 | namespace Kavita.Models.Constants; | COMMENT |
| LOW | Kavita.Models/Constants/CacheProfiles.cs | 21 | public const string LicenseInfo = "licenseInfo"; | COMMENT |
| LOW | Kavita.Models/Constants/PolicyConstants.cs | 1 | using System.Collections.Immutable; | COMMENT |
| LOW | Kavita.Models/Constants/PolicyConstants.cs | 21 | public const string DownloadRole = "Download"; | COMMENT |
| LOW | Kavita.Models/Parser/KnownFile.cs | 1 | using System; | COMMENT |
| LOW | Kavita.Models/Parser/ParserInfo.cs | 21 | /// Represents the parsed series from the file or folder | COMMENT |
| LOW | Kavita.Models/Parser/ParserInfo.cs | 41 | /// <example>Beastars v01 (digital).cbz</example> | COMMENT |
| LOW | Kavita.Models/Parser/ParserInfo.cs | 61 | public IReadOnlyList<string> UnchangedFiles { get; set; } = []; | COMMENT |
| 380 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Kavita.Services/BookService.cs | 727 | var person = epubBook.Schema.Package.Metadata.Creators.SingleOrDefault(c => c.Id == creatorId); | CODE |
| CRITICAL | Kavita.Database/Repositories/UserRepository.cs | 263 | .Where(c => c.Volume.Series.Library.AppUsers.Any(user => user.Id == userId)) | CODE |
| CRITICAL | Kavita.Database/Repositories/UserRepository.cs | 293 | .Where(c => c.Volume.Series.Library.AppUsers.Any(user => user.Id == userId)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | UI/Web/src/app/shared/_services/download.service.ts | 659 | // We need to check if this instance has items or not | COMMENT |
| LOW | …der/_components/manga-reader/manga-reader.component.ts | 1015 | // If we are in double mode, we need to check if our current page is on a right edge or not, if so adjust by decrement | COMMENT |
| LOW | …eader/_components/book-reader/book-reader.component.ts | 1602 | // We need to check if we are paging back, because we need to adjust the scroll | COMMENT |
| LOW | Kavita.Services/DirectoryService.cs | 1129 | // We need to check if the directory is not a blacklisted (ie __MACOSX) | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 38 | // Step 1: Delete any images that have _output in the name | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 45 | // Step 2: Scan the _testDirectory for images | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 51 | // Step 3: Process each image | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 127 | // Step 1: Delete any images that have _output in the name | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 134 | // Step 2: Scan the _testDirectory for images | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 140 | // Step 3: Process each image | COMMENT |
| LOW | Kavita.Services.Tests/ImageServiceTests.cs | 153 | // Step 4: Generate HTML file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3706 | Assert.Equal(["John Doe"], postSeries.Metadata.People.Where(p => p.Role == PersonRole.Writer).Select(p => p.Pers | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3785 | Assert.Equal(new[]{"John Doe", "Johnny Twowheeler"}.OrderBy(s => s), | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3790 | .FirstOrDefault(p => p.Person.Name == "John Doe")!.KavitaPlusConnection); | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3912 | Assert.Equal(new[]{"John Doe"}.OrderBy(s => s), | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3948 | context.Person.Add(new PersonBuilder("John Doe").Build()); | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 3991 | context.Person.Add(new PersonBuilder("John Doe").WithAlias("Doe John").Build()); | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 4048 | Staff = [CreateStaff("John", "Doe Doe", "Story"), CreateStaff("Doe", "John Doe", "Story")] | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 4128 | Assert.Equal(["John Doe"], postSeries.Metadata.People.Where(p => p.Role == PersonRole.Character).Select(p => p.P | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 4207 | Assert.Equal(new[]{"John Doe", "Johnny Twowheeler"}.OrderBy(s => s), | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 4212 | .FirstOrDefault(p => p.Person.Name == "John Doe")!.KavitaPlusConnection); | CODE |
| LOW | Kavita.Services.Tests/ExternalMetadataServiceTests.cs | 4334 | Assert.Equal(new[]{"John Doe"}.OrderBy(s => s), | CODE |
| LOW | Kavita.Services.Tests/Extensions/PersonFilterTests.cs | 25 | new PersonBuilder("Jane Doe").Build() | CODE |
| LOW | Kavita.Services.Tests/Extensions/PersonFilterTests.cs | 55 | Assert.Equal("Jane Doe", result[0].Name); | CODE |
| LOW | Kavita.Services.Tests/Extensions/PersonFilterTests.cs | 83 | Assert.Equal("Jane Doe", result[0].Name); | CODE |
| LOW | Kavita.Services.Tests/Helpers/PersonHelperTests.cs | 67 | var existingPerson2 = new PersonBuilder("Jane Doe").Build(); | CODE |
| LOW | Kavita.Services.Tests/Helpers/PersonHelperTests.cs | 90 | Assert.DoesNotContain(people, p => p.Name == "Jane Doe"); | CODE |
| LOW | Kavita.Services.Tests/Helpers/PersonHelperTests.cs | 94 | Assert.DoesNotContain("Jane Doe", chapterPeople); | CODE |
| LOW | scripts/generate_readinglists.py | 27 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor " | CODE |
| LOW | scripts/generate_readinglists.py | 27 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 38 | // Step 1: Delete any images that have _output in the name | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 45 | // Step 2: Scan the _testDirectory for images | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 51 | // Step 3: Process each image | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 127 | // Step 1: Delete any images that have _output in the name | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 134 | // Step 2: Scan the _testDirectory for images | COMMENT |
| LOW⚡ | Kavita.Services.Tests/ImageServiceTests.cs | 140 | // Step 3: Process each image | COMMENT |
| LOW | Kavita.Services.Tests/ImageServiceTests.cs | 153 | // Step 4: Generate HTML file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/src/app/manga-reader/_service/manga-reader.service.ts | 262 | // Multiple criteria for more robust detection | COMMENT |
| MEDIUM | Kavita.Models/DTOs/Koreader/KoreaderBookDto.cs | 29 | /// Essentially, it is Koreader's equivalent to ProgressDto.BookScrollId. | COMMENT |
| MEDIUM | Kavita.API/Services/Scanner/IFolderWatchService.cs | 20 | /// Essentially stops then starts watching. Useful if there is a change in folders or libraries | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Kavita.Services.Tests/FileCacheServiceTests.cs | 36 | // ── GetOrFetchAsync ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Kavita.Services.Tests/FileCacheServiceTests.cs | 168 | // ── Invalidate ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Kavita.Services.Tests/FileCacheServiceTests.cs | 189 | // ── InvalidatePrefix ────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ….9.2/manual-migration-remove-persisted-translations.ts | 15 | export function manualMigrationRemovePersistedTranslations() { | CODE |
| LOW | UI/Web/src/app/_helpers/form-debug.ts | 12 | export function analyzeFormGroupValidation(formGroup: FormGroup, basePath: string = ''): ValidationIssue[] { | CODE |
| LOW | UI/Web/src/app/_helpers/form-debug.ts | 90 | export function getFormGroupValidationReport(formGroup: FormGroup, basePath: string = ''): string { | CODE |
| LOW | UI/Web/src/app/_interceptors/error.interceptor.ts | 137 | function handlePayloadTooLargeException(toastr: ToastrService) { | CODE |
| LOW | …etadata-mappings/manage-metadata-mappings.component.ts | 71 | export function toMetadataMappingsFormModel(settings: MetadataSettings): MetadataMappingsFormModel { | CODE |
| LOW | …metadata-form/edit-external-metadata-form.component.ts | 21 | export function applyExternalMetadataIdRules(p: SchemaPathTree<IHasMetadataIds>): void { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Kavita.Services/Scanner/Parser.cs | 18 | // NOTE: If you change this, don't forget to change in the UI (see Series Detail) | COMMENT |
| LOW | Kavita.Services/Scanner/Parser.cs | 32 | public const string ImageFileExtensions = @"(\.png|\.jpeg|\.jpg|\.webp|\.gif|\.avif)"; // Don't forget to update Cov | CODE |
| LOW | .github/ISSUE_TEMPLATE/bug_report.yml | 13 | description: Don't forget to tell us what steps you took so we can try to reproduce. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | UI/Web/README.md | 10 | ## Code scaffolding | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/ScanReport/scan_report.py | 135 | CODE |