AI Slop Code Risk Monitor

DayuanJiang/next-ai-draw-io

SlopCodeMonitor badge for DayuanJiang/next-ai-draw-io Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Draw and edit draw.io diagrams by chatting with an AI. Web app, desktop app, and an MCP server for Claude Code, Cursor, Codex and VS Code.

4.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for DayuanJiang/next-ai-draw-io, a TypeScript project with 36,513 GitHub stars. SynthScan examined 124,683 lines of code across 508 source files, recording 148 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 4.4 (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.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
36.5K
Stars
TypeScript
Language
124.7K
Lines of Code
508
Files
148
Pattern Hits
2026-10-31
Scan Date
0.20
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 1.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 17.9/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 23.7/100 · LOW

Which changes need focused human review? 148 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 100MEDIUM 13LOW 35

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 148 distinct pattern matches across 9 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.

Magic Placeholder Names100 hits · 480 pts
SeverityFileLineSnippetContext
HIGHdocs/cn/ai-providers.md17OPENAI_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md32ANTHROPIC_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md54GOOGLE_GENERATIVE_AI_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md67DEEPSEEK_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md80QWEN_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md93DOUBAO_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md100GLM_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md113KIMI_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md133MINIMAX_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md156MIMO_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md169OPENROUTER_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md184AIHUBMIX_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md197SILICONFLOW_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md210MODELSCOPE_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md223NOVITA_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md236ATLASCLOUD_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md251QINIU_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md316GOOGLE_VERTEX_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md333AZURE_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md341AZURE_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md380SGLANG_API_KEY=your_api_keyCODE
HIGHdocs/cn/ai-providers.md397CUSTOM_API_KEY=your_api_keyCODE
HIGHdocs/cn/docker.md15 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/cn/docker.md61 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/cn/docker.md70 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/ja/ai-providers.md17OPENAI_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md32ANTHROPIC_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md54GOOGLE_GENERATIVE_AI_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md67DEEPSEEK_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md80QWEN_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md93DOUBAO_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md100GLM_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md113KIMI_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md133MINIMAX_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md156MIMO_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md169OPENROUTER_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md184AIHUBMIX_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md197SILICONFLOW_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md210MODELSCOPE_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md223NOVITA_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md236ATLASCLOUD_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md251QINIU_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md316GOOGLE_VERTEX_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md333AZURE_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md341AZURE_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md380SGLANG_API_KEY=your_api_keyCODE
HIGHdocs/ja/ai-providers.md397CUSTOM_API_KEY=your_api_keyCODE
HIGHdocs/ja/docker.md15 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/ja/docker.md61 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/ja/docker.md70 -e OPENAI_API_KEY=your_api_key \CODE
HIGHdocs/tw/ai-providers.md17OPENAI_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md32ANTHROPIC_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md54GOOGLE_GENERATIVE_AI_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md67DEEPSEEK_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md80QWEN_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md93DOUBAO_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md100GLM_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md113KIMI_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md133MINIMAX_API_KEY=your_api_keyCODE
HIGHdocs/tw/ai-providers.md156MIMO_API_KEY=your_api_keyCODE
40 more matches not shown…
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMapp/[lang]/admin/setting-field.tsx18// ── Small shared UI bits ─────────────────────────────────────────────COMMENT
MEDIUMapp/[lang]/admin/setting-field.tsx129// ── General settings field (registry-driven) ─────────────────────────COMMENT
MEDIUMapp/[lang]/admin/admin-shared.ts8// ── Shared types ─────────────────────────────────────────────────────COMMENT
MEDIUMapp/[lang]/admin/models-section.tsx47// ── Models section (mirrors the user ModelConfigDialog) ──────────────COMMENT
MEDIUMapp/[lang]/admin/page.tsx36// ── Page ─────────────────────────────────────────────────────────────COMMENT
MEDIUMapp/[lang]/admin/page.tsx322 // ── Login screen ─────────────────────────────────────────────────COMMENT
MEDIUMapp/[lang]/admin/page.tsx390 // ── Settings screen ──────────────────────────────────────────────COMMENT
MEDIUMlib/admin/settings-registry.ts72 // ── Generation ───────────────────────────────────────────────────COMMENT
MEDIUMlib/admin/settings-registry.ts91 // ── Access Control ───────────────────────────────────────────────COMMENT
MEDIUMlib/admin/settings-registry.ts102 // ── Features ─────────────────────────────────────────────────────COMMENT
MEDIUMlib/admin/settings-registry.ts136 // ── Observability ────────────────────────────────────────────────COMMENT
MEDIUMlib/admin/settings-registry.ts161 // ── Quota ────────────────────────────────────────────────────────COMMENT
Hyper-Verbose Identifiers15 hits · 15 pts
SeverityFileLineSnippetContext
LOWcomponents/provider-credentials-fields.tsx79export function ProviderCredentialsFields({CODE
LOWcomponents/chat/message-text.ts16export function splitTextIntoFileSections(text: string): TextSection[] {CODE
LOWpackages/mcp-server/src/dom.ts69function normalizeAttributeWhitespace(xml: string): string {CODE
LOWpackages/mcp-server/src/http-server.ts219function ensureSessionStateInitialized(sessionId: string): void {CODE
LOWpackages/mcp-server/src/custom-instructions.ts52export function guideWithCustomInstructions(CODE
LOWpackages/mcp-server/src/xml-validation.ts978export function validateAndFixXml(CODE
LOWlib/output-token-limit.ts163export function withOutputTokenLimitFallback(CODE
LOWlib/ai-providers.ts71export function isAihubmixStandardBaseURL(CODE
LOWlib/ai-providers.ts674function validateProviderCredentials(CODE
LOWlib/server-model-config.ts71function configFromCommaSeparatedAiModel(): ServerModelsConfig | null {CODE
LOWlib/server-model-config.ts113export async function loadEnvServerModelsConfig(): Promise<ServerModelsConfig | null> {CODE
LOWlib/server-model-config.ts149export async function loadRawServerModelsConfig(): Promise<ServerModelsConfig | null> {CODE
LOWlib/server-model-config.ts172export async function loadFlattenedServerModels(): Promise<CODE
LOWlib/deprecated-params.ts73export function withDeprecatedParamsFallback(CODE
LOWlib/drawio/editor-bridge.ts428function canvasHasLoadOnlySettings(): boolean {CODE
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWlib/i18n/dictionaries/zh.json20 "placeholder": "描述您的图表或上传文件...",CODE
LOWlib/i18n/dictionaries/zh.json573 "placeholder": "说说要怎么改,也可以点图形旁边的画笔自己改样式"CODE
LOWlib/i18n/dictionaries/zh.json635 "placeholder": "比如:用户登录的时序图,包含短信验证码和失败重试",CODE
LOWlib/i18n/dictionaries/ja.json20 "placeholder": "ダイアグラムを説明するか、ファイルをアップロード...",CODE
LOWlib/i18n/dictionaries/ja.json573 "placeholder": "変更内容を書いてください。図形の横のブラシで自分でスタイルを変えることもできます"CODE
LOWlib/i18n/dictionaries/ja.json635 "placeholder": "例:SMS 認証とリトライを含むログインのシーケンス図",CODE
LOWlib/i18n/dictionaries/en.json20 "placeholder": "Describe your diagram or upload a file...",CODE
LOWlib/i18n/dictionaries/en.json573 "placeholder": "Describe the change, or restyle it yourself with the brush next to it"CODE
LOWlib/i18n/dictionaries/en.json635 "placeholder": "For example: a login sequence diagram with SMS codes and retries",CODE
LOWlib/i18n/dictionaries/zh-Hant.json20 "placeholder": "描述您的圖表或上傳檔案...",CODE
LOWlib/i18n/dictionaries/zh-Hant.json573 "placeholder": "說說要怎麼改,也可以點圖形旁邊的畫筆自己改樣式"CODE
LOWlib/i18n/dictionaries/zh-Hant.json635 "placeholder": "例如:使用者登入的時序圖,包含簡訊驗證碼和失敗重試",CODE
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcomponents/provider-credentials-fields.tsx61 // UI (e.g. the user dialog's inline Test button + validation error); theCOMMENT
LOWhooks/use-diagram-tool-handlers.ts141 }COMMENT
LOWpackages/mcp-server/shell/mcp-sync-core.ts941 // for a page-targeted export; otherwise the projection would beCOMMENT
LOWpackages/mcp-server/src/preview/preview.js341 // draw.io echoes the request in msg.message, so the reply canCOMMENT
LOWlib/admin/settings-registry.ts1// Declarative registry of the general env vars editable in the admin panel.COMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMlib/cached-responses.ts411<mxCell id="p3" parent="sec1" style="rounded=1;arcSize=6;fontSize=11;align=left;verticalAlign=top;spacing=6;fillColor=#fCODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/unit/chat-route-abort.test.ts31// Step 1: the model asks for a shape library (a tool run on the server) andCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/unit/chat-route-abort.test.ts31// Step 1: the model asks for a shape library (a tool run on the server) andCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/mcp-server/src/http-server.ts628function handleRequest(CODE