AI Slop Code Risk Monitor

ahmedkhaleel2004/gitdiagram

SlopCodeMonitor badge for ahmedkhaleel2004/gitdiagram Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Visualize any GitHub codebase: free interactive architecture diagrams and one-minute explainer videos. Replace 'hub' with 'diagram' in any GitHub URL.

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ahmedkhaleel2004/gitdiagram, a TypeScript project with 18,647 GitHub stars. SynthScan examined 124,021 lines of code across 754 source files, recording 143 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.

1.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
18.6K
Stars
TypeScript
Language
124.0K
Lines of Code
754
Files
143
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 6.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 142 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 1 finding(s).

Agent Over-Engineering Ratio 5.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 116 finding(s).

PR Review Velocity Impact 5.6/100 · LOW

Which changes need focused human review? 143 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 143

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 143 distinct pattern matches across 3 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.

Hyper-Verbose Identifiers116 hits · 127 pts
SeverityFileLineSnippetContext
LOWsrc/app/providers.tsx32function AnalyticsAfterCredentialMigration() {CODE
LOWsrc/app/browse/page.tsx25function BrowseCatalogStreamingFallback() {CODE
LOWsrc/app/browse/page.tsx42async function BrowseCatalogWithInitialData({CODE
LOWsrc/features/diagram/api.ts70function sendGenerationCancellation(CODE
LOWsrc/features/diagram/graph.ts24function renderableDiagramTextSchema(maxLength: number) {CODE
LOWsrc/features/diagram/api.test.ts444function configuredCredentialResponse(): Response {CODE
LOWsrc/features/diagram/mermaid-security.ts9export function sanitizeMermaidSourceForRender(source: string): string {CODE
LOWsrc/features/browse/catalog.ts69function comparePreparedNamesAscending(CODE
LOWsrc/features/browse/catalog.ts253export function getBrowsePageFromRecentIndex(CODE
LOWsrc/features/browse/catalog.ts286export function parseBrowseQueryFromSearchParams(CODE
LOWsrc/features/browse/index-client.ts173export function clearBrowsePageCacheForTest() {CODE
LOWsrc/features/seo/repository-page.ts37export function repositoryPageDescription(CODE
LOWsrc/features/credentials/api.ts66async function runLegacyCredentialMigration(): Promise<boolean> {CODE
LOWsrc/features/credentials/api.ts110export function migrateLegacyCredentialStorage(): Promise<boolean> {CODE
LOWsrc/features/credentials/api.ts115export function resetLegacyCredentialMigrationForTests(): void {CODE
LOWsrc/features/credentials/api.ts132async function performCredentialActionRaw(CODE
LOWsrc/features/credentials/api.ts153function removeLegacyCredentialStorage(credential: CredentialKind): void {CODE
LOWsrc/features/credentials/api.ts166async function performExplicitCredentialMutation(CODE
LOWsrc/features/credentials/github-connect.ts71export function withoutGitHubConnectResult(href: string): string {CODE
LOWsrc/features/credentials/api.test.ts306function configuredCredentialResponse(): Response {CODE
LOWsrc/server/browse-index-cache.ts76async function getCachedRecentBrowseIndex(): Promise<RecentBrowseIndex | null> {CODE
LOWsrc/server/browse-index-cache.ts102export async function getCachedBrowseIndexTotal(): Promise<number | null> {CODE
LOWsrc/server/browse-index-cache.ts140export function revalidateBrowseIndexCache() {CODE
LOWsrc/server/repository-markdown.ts89export async function repositoryMarkdownResponse(params: {CODE
LOWsrc/server/github-auth.ts91async function requestGitHubAppInstallationToken() {CODE
LOWsrc/server/github-auth.ts157async function getGitHubAppInstallationToken() {CODE
LOWsrc/server/model-fetch.ts20export function isUnsupportedPlaceRefusal(status: number, body: string) {CODE
LOWsrc/server/mcp/usage.ts40function getMcpRateLimitWindowSeconds(): number {CODE
LOWsrc/server/mcp/server.ts286export function createGitDiagramMcpServer(CODE
LOWsrc/server/storage/browse-index-pending.ts66export async function enqueuePendingBrowseIndexEntry(CODE
LOWsrc/server/storage/browse-index-pending.ts78export async function readPendingBrowseIndexEntries(): Promise<CODE
LOWsrc/server/storage/browse-index-pending.ts118export async function acknowledgePendingBrowseIndexEntries(CODE
LOWsrc/server/storage/browse-index-pending.ts133export async function dropPendingBrowseIndexEntry(CODE
LOWsrc/server/storage/quota-store.ts210export async function commitQuotaUsageInUpstash(params: {CODE
LOWsrc/server/storage/quota-store.ts230export async function markQuotaReservationStartedInUpstash(params: {CODE
LOWsrc/server/storage/repo-page-cache.ts22export function getPublicDiagramStateCacheTag(CODE
LOWsrc/server/storage/public-diagram-state.ts21function getCachedPublicDiagramState(username: string, repo: string) {CODE
LOWsrc/server/storage/artifact-store.ts82function shouldReplaceSessionSummary(CODE
LOWsrc/server/storage/artifact-store.ts210export async function writePublicDiagramPreview(params: {CODE
LOWsrc/server/storage/artifact-store.ts306export async function updateArtifactLatestSessionSummary(params: {CODE
LOWsrc/server/storage/diagram-state.ts66export async function persistTerminalSessionAudit(params: {CODE
LOWsrc/server/storage/diagram-state.ts108export async function saveSuccessfulDiagramState(params: {CODE
LOWsrc/server/storage/diagram-state.ts144export async function clearSuccessfulDiagramFailureSummary(params: {CODE
LOWsrc/server/storage/diagram-state.ts153export async function updatePublicBrowseIndexForSuccessfulDiagram(params: {CODE
LOWsrc/server/storage/config.ts6export function assertLiveStorageAllowedForTests(service: string): void {CODE
LOW⚡src/server/storage/browse-diagrams.ts96function compareIsoDatesDescending(left: string, right: string) {CODE
LOW⚡src/server/storage/browse-diagrams.ts101function compareBrowseEntriesByRecent(CODE
LOW⚡src/server/storage/browse-diagrams.ts111function normalizeBrowseIndexEntry(entry: BrowseIndexEntry): BrowseIndexEntry {CODE
LOWsrc/server/storage/browse-diagrams.ts147function normalizeBrowseIndexEntries(CODE
LOWsrc/server/storage/browse-diagrams.ts272async function readStoredBrowseIndexWith(CODE
LOWsrc/server/storage/browse-diagrams.ts414async function materializePendingBrowseIndex(params: {CODE
LOWsrc/server/github-connect/connection.ts137export function githubConnectionStorageKey(userId: number): string {CODE
LOWsrc/server/github-connect/connection.ts176export function resetGitHubConnectionRefreshesForTests(): void {CODE
LOWsrc/server/http/request-credentials.ts134export async function readGitHubConnectionToken(): Promise<string | null> {CODE
LOWsrc/server/http/request-credentials.ts138export async function resolveRequestCredentials(CODE
LOWsrc/server/generate/github.ts67function buildGithubRequestFailedError(status: number): string {CODE
LOWsrc/server/generate/github.ts100function deletePublicTreeCacheEntry(key: string): void {CODE
LOWsrc/server/generate/github.ts293async function getMissingTopLevelEntries(CODE
LOWsrc/server/generate/errors.ts27export function rethrowAsUpstreamProviderError(error: unknown): never {CODE
LOWsrc/server/generate/errors.ts65export function redactUpstreamProviderTextForSharedRecord(CODE
56 more matches not shown…
Over-Commented Block26 hits · 26 pts
SeverityFileLineSnippetContext
LOWcloudflare/edge.ts1// The Worker every request reaches first: `gitdiagram-edge`COMMENT
LOWcloudflare/server.ts1// The Next.js server on Cloudflare Workers: Worker `gitdiagram-server`COMMENT
LOWcloudflare/us-relay.ts1// Sends a model API call as the server's own, not the visitor's.COMMENT
LOWcloudflare/worker.ts1// The site's entry on Cloudflare Workers: the small Worker every requestCOMMENT
LOWpublic/video-engine/reflow.js1// @ts-checkCOMMENT
LOWscripts/cf-deploy.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/indexnow-submit-sitemap.ts1// One-off: tell IndexNow (Bing, Yandex, Seznam, Naver) about the site's pages,COMMENT
LOWworkers/presence/src/logic.ts21// was hidden, stops counting as a person here after three missed pings, notCOMMENT
LOWworkers/presence/src/index.ts41// Live presence for gitdiagram.com, and the operator's event feed.COMMENT
LOWworkers/presence/src/index.ts101// that are long gone.COMMENT
LOWworkers/errors/src/index.ts1// Keeps every failed request of the site's Workers in the logs.COMMENT
LOWsrc/app/admin/use-live-site.ts21//COMMENT
LOWsrc/features/admin/limited-countries.ts1// Countries where making new videos is limited to keep spend in check: aCOMMENT
LOWsrc/features/admin/priority-places.ts1// The priority places for making new videos. Two definitions, picked liveCOMMENT
LOWsrc/server/drain.ts1import "server-only";COMMENT
LOWsrc/server/admin/live-events.ts21// held back by the video gate, switches flipped) to the presence workerCOMMENT
LOWsrc/server/admin/controls.ts21// - limitedCountryAccess, limitedCountryShare: how limited making videos isCOMMENT
LOWsrc/server/explainer/voice.ts1import "server-only";COMMENT
LOWsrc/server/explainer/segments.ts21 type RenderFormat,COMMENT
LOWsrc/server/explainer/limits.ts21// stops one person from clearing cookies for more. Unlike the diagram limiterCOMMENT
LOWsrc/server/explainer/run-journal.ts1import "server-only";COMMENT
LOWsrc/server/explainer/payments.ts21// in a refund: the run's own failure, a video that already exists or is beingCOMMENT
LOWsrc/server/explainer/planner.ts1import "server-only";COMMENT
LOWsrc/components/live-presence.tsx21// are. So the socket opens once the tab has been in view for two seconds inCOMMENT
LOWsrc/lib/colo-cache.ts1// The page cache on Cloudflare: a copy of each cached page in everyCOMMENT
LOWsrc/lib/colo-cache.ts21// trip, the server just renders it. The server answers from its ownCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexperiments/video-models/sheets.py2CODE