Visualize any GitHub codebase: free interactive architecture diagrams and one-minute explainer videos. Replace 'hub' with 'diagram' in any GitHub URL.
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.
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? 142 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 116 finding(s).
Which changes need focused human review? 143 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/app/providers.tsx | 32 | function AnalyticsAfterCredentialMigration() { | CODE |
| LOW | src/app/browse/page.tsx | 25 | function BrowseCatalogStreamingFallback() { | CODE |
| LOW | src/app/browse/page.tsx | 42 | async function BrowseCatalogWithInitialData({ | CODE |
| LOW | src/features/diagram/api.ts | 70 | function sendGenerationCancellation( | CODE |
| LOW | src/features/diagram/graph.ts | 24 | function renderableDiagramTextSchema(maxLength: number) { | CODE |
| LOW | src/features/diagram/api.test.ts | 444 | function configuredCredentialResponse(): Response { | CODE |
| LOW | src/features/diagram/mermaid-security.ts | 9 | export function sanitizeMermaidSourceForRender(source: string): string { | CODE |
| LOW | src/features/browse/catalog.ts | 69 | function comparePreparedNamesAscending( | CODE |
| LOW | src/features/browse/catalog.ts | 253 | export function getBrowsePageFromRecentIndex( | CODE |
| LOW | src/features/browse/catalog.ts | 286 | export function parseBrowseQueryFromSearchParams( | CODE |
| LOW | src/features/browse/index-client.ts | 173 | export function clearBrowsePageCacheForTest() { | CODE |
| LOW | src/features/seo/repository-page.ts | 37 | export function repositoryPageDescription( | CODE |
| LOW | src/features/credentials/api.ts | 66 | async function runLegacyCredentialMigration(): Promise<boolean> { | CODE |
| LOW | src/features/credentials/api.ts | 110 | export function migrateLegacyCredentialStorage(): Promise<boolean> { | CODE |
| LOW | src/features/credentials/api.ts | 115 | export function resetLegacyCredentialMigrationForTests(): void { | CODE |
| LOW | src/features/credentials/api.ts | 132 | async function performCredentialActionRaw( | CODE |
| LOW | src/features/credentials/api.ts | 153 | function removeLegacyCredentialStorage(credential: CredentialKind): void { | CODE |
| LOW | src/features/credentials/api.ts | 166 | async function performExplicitCredentialMutation( | CODE |
| LOW | src/features/credentials/github-connect.ts | 71 | export function withoutGitHubConnectResult(href: string): string { | CODE |
| LOW | src/features/credentials/api.test.ts | 306 | function configuredCredentialResponse(): Response { | CODE |
| LOW | src/server/browse-index-cache.ts | 76 | async function getCachedRecentBrowseIndex(): Promise<RecentBrowseIndex | null> { | CODE |
| LOW | src/server/browse-index-cache.ts | 102 | export async function getCachedBrowseIndexTotal(): Promise<number | null> { | CODE |
| LOW | src/server/browse-index-cache.ts | 140 | export function revalidateBrowseIndexCache() { | CODE |
| LOW | src/server/repository-markdown.ts | 89 | export async function repositoryMarkdownResponse(params: { | CODE |
| LOW | src/server/github-auth.ts | 91 | async function requestGitHubAppInstallationToken() { | CODE |
| LOW | src/server/github-auth.ts | 157 | async function getGitHubAppInstallationToken() { | CODE |
| LOW | src/server/model-fetch.ts | 20 | export function isUnsupportedPlaceRefusal(status: number, body: string) { | CODE |
| LOW | src/server/mcp/usage.ts | 40 | function getMcpRateLimitWindowSeconds(): number { | CODE |
| LOW | src/server/mcp/server.ts | 286 | export function createGitDiagramMcpServer( | CODE |
| LOW | src/server/storage/browse-index-pending.ts | 66 | export async function enqueuePendingBrowseIndexEntry( | CODE |
| LOW | src/server/storage/browse-index-pending.ts | 78 | export async function readPendingBrowseIndexEntries(): Promise< | CODE |
| LOW | src/server/storage/browse-index-pending.ts | 118 | export async function acknowledgePendingBrowseIndexEntries( | CODE |
| LOW | src/server/storage/browse-index-pending.ts | 133 | export async function dropPendingBrowseIndexEntry( | CODE |
| LOW | src/server/storage/quota-store.ts | 210 | export async function commitQuotaUsageInUpstash(params: { | CODE |
| LOW | src/server/storage/quota-store.ts | 230 | export async function markQuotaReservationStartedInUpstash(params: { | CODE |
| LOW | src/server/storage/repo-page-cache.ts | 22 | export function getPublicDiagramStateCacheTag( | CODE |
| LOW | src/server/storage/public-diagram-state.ts | 21 | function getCachedPublicDiagramState(username: string, repo: string) { | CODE |
| LOW | src/server/storage/artifact-store.ts | 82 | function shouldReplaceSessionSummary( | CODE |
| LOW | src/server/storage/artifact-store.ts | 210 | export async function writePublicDiagramPreview(params: { | CODE |
| LOW | src/server/storage/artifact-store.ts | 306 | export async function updateArtifactLatestSessionSummary(params: { | CODE |
| LOW | src/server/storage/diagram-state.ts | 66 | export async function persistTerminalSessionAudit(params: { | CODE |
| LOW | src/server/storage/diagram-state.ts | 108 | export async function saveSuccessfulDiagramState(params: { | CODE |
| LOW | src/server/storage/diagram-state.ts | 144 | export async function clearSuccessfulDiagramFailureSummary(params: { | CODE |
| LOW | src/server/storage/diagram-state.ts | 153 | export async function updatePublicBrowseIndexForSuccessfulDiagram(params: { | CODE |
| LOW | src/server/storage/config.ts | 6 | export function assertLiveStorageAllowedForTests(service: string): void { | CODE |
| LOW⚡ | src/server/storage/browse-diagrams.ts | 96 | function compareIsoDatesDescending(left: string, right: string) { | CODE |
| LOW⚡ | src/server/storage/browse-diagrams.ts | 101 | function compareBrowseEntriesByRecent( | CODE |
| LOW⚡ | src/server/storage/browse-diagrams.ts | 111 | function normalizeBrowseIndexEntry(entry: BrowseIndexEntry): BrowseIndexEntry { | CODE |
| LOW | src/server/storage/browse-diagrams.ts | 147 | function normalizeBrowseIndexEntries( | CODE |
| LOW | src/server/storage/browse-diagrams.ts | 272 | async function readStoredBrowseIndexWith( | CODE |
| LOW | src/server/storage/browse-diagrams.ts | 414 | async function materializePendingBrowseIndex(params: { | CODE |
| LOW | src/server/github-connect/connection.ts | 137 | export function githubConnectionStorageKey(userId: number): string { | CODE |
| LOW | src/server/github-connect/connection.ts | 176 | export function resetGitHubConnectionRefreshesForTests(): void { | CODE |
| LOW | src/server/http/request-credentials.ts | 134 | export async function readGitHubConnectionToken(): Promise<string | null> { | CODE |
| LOW | src/server/http/request-credentials.ts | 138 | export async function resolveRequestCredentials( | CODE |
| LOW | src/server/generate/github.ts | 67 | function buildGithubRequestFailedError(status: number): string { | CODE |
| LOW | src/server/generate/github.ts | 100 | function deletePublicTreeCacheEntry(key: string): void { | CODE |
| LOW | src/server/generate/github.ts | 293 | async function getMissingTopLevelEntries( | CODE |
| LOW | src/server/generate/errors.ts | 27 | export function rethrowAsUpstreamProviderError(error: unknown): never { | CODE |
| LOW | src/server/generate/errors.ts | 65 | export function redactUpstreamProviderTextForSharedRecord( | CODE |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cloudflare/edge.ts | 1 | // The Worker every request reaches first: `gitdiagram-edge` | COMMENT |
| LOW | cloudflare/server.ts | 1 | // The Next.js server on Cloudflare Workers: Worker `gitdiagram-server` | COMMENT |
| LOW | cloudflare/us-relay.ts | 1 | // Sends a model API call as the server's own, not the visitor's. | COMMENT |
| LOW | cloudflare/worker.ts | 1 | // The site's entry on Cloudflare Workers: the small Worker every request | COMMENT |
| LOW | public/video-engine/reflow.js | 1 | // @ts-check | COMMENT |
| LOW | scripts/cf-deploy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/indexnow-submit-sitemap.ts | 1 | // One-off: tell IndexNow (Bing, Yandex, Seznam, Naver) about the site's pages, | COMMENT |
| LOW | workers/presence/src/logic.ts | 21 | // was hidden, stops counting as a person here after three missed pings, not | COMMENT |
| LOW | workers/presence/src/index.ts | 41 | // Live presence for gitdiagram.com, and the operator's event feed. | COMMENT |
| LOW | workers/presence/src/index.ts | 101 | // that are long gone. | COMMENT |
| LOW | workers/errors/src/index.ts | 1 | // Keeps every failed request of the site's Workers in the logs. | COMMENT |
| LOW | src/app/admin/use-live-site.ts | 21 | // | COMMENT |
| LOW | src/features/admin/limited-countries.ts | 1 | // Countries where making new videos is limited to keep spend in check: a | COMMENT |
| LOW | src/features/admin/priority-places.ts | 1 | // The priority places for making new videos. Two definitions, picked live | COMMENT |
| LOW | src/server/drain.ts | 1 | import "server-only"; | COMMENT |
| LOW | src/server/admin/live-events.ts | 21 | // held back by the video gate, switches flipped) to the presence worker | COMMENT |
| LOW | src/server/admin/controls.ts | 21 | // - limitedCountryAccess, limitedCountryShare: how limited making videos is | COMMENT |
| LOW | src/server/explainer/voice.ts | 1 | import "server-only"; | COMMENT |
| LOW | src/server/explainer/segments.ts | 21 | type RenderFormat, | COMMENT |
| LOW | src/server/explainer/limits.ts | 21 | // stops one person from clearing cookies for more. Unlike the diagram limiter | COMMENT |
| LOW | src/server/explainer/run-journal.ts | 1 | import "server-only"; | COMMENT |
| LOW | src/server/explainer/payments.ts | 21 | // in a refund: the run's own failure, a video that already exists or is being | COMMENT |
| LOW | src/server/explainer/planner.ts | 1 | import "server-only"; | COMMENT |
| LOW | src/components/live-presence.tsx | 21 | // are. So the socket opens once the tab has been in view for two seconds in | COMMENT |
| LOW | src/lib/colo-cache.ts | 1 | // The page cache on Cloudflare: a copy of each cached page in every | COMMENT |
| LOW | src/lib/colo-cache.ts | 21 | // trip, the server just renders it. The server answers from its own | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | experiments/video-models/sheets.py | 2 | CODE |