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.
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.
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? 24 finding(s).
Are imports declared and package/API names verified? 112 finding(s).
Are wrappers, guards, and repeated structures necessary? 27 finding(s).
Which changes need focused human review? 148 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/cn/ai-providers.md | 17 | OPENAI_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 32 | ANTHROPIC_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 54 | GOOGLE_GENERATIVE_AI_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 67 | DEEPSEEK_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 80 | QWEN_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 93 | DOUBAO_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 100 | GLM_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 113 | KIMI_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 133 | MINIMAX_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 156 | MIMO_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 169 | OPENROUTER_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 184 | AIHUBMIX_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 197 | SILICONFLOW_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 210 | MODELSCOPE_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 223 | NOVITA_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 236 | ATLASCLOUD_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 251 | QINIU_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 316 | GOOGLE_VERTEX_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 333 | AZURE_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 341 | AZURE_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 380 | SGLANG_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/ai-providers.md | 397 | CUSTOM_API_KEY=your_api_key | CODE |
| HIGH | docs/cn/docker.md | 15 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/cn/docker.md | 61 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/cn/docker.md | 70 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/ja/ai-providers.md | 17 | OPENAI_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 32 | ANTHROPIC_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 54 | GOOGLE_GENERATIVE_AI_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 67 | DEEPSEEK_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 80 | QWEN_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 93 | DOUBAO_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 100 | GLM_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 113 | KIMI_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 133 | MINIMAX_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 156 | MIMO_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 169 | OPENROUTER_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 184 | AIHUBMIX_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 197 | SILICONFLOW_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 210 | MODELSCOPE_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 223 | NOVITA_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 236 | ATLASCLOUD_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 251 | QINIU_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 316 | GOOGLE_VERTEX_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 333 | AZURE_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 341 | AZURE_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 380 | SGLANG_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/ai-providers.md | 397 | CUSTOM_API_KEY=your_api_key | CODE |
| HIGH | docs/ja/docker.md | 15 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/ja/docker.md | 61 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/ja/docker.md | 70 | -e OPENAI_API_KEY=your_api_key \ | CODE |
| HIGH | docs/tw/ai-providers.md | 17 | OPENAI_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 32 | ANTHROPIC_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 54 | GOOGLE_GENERATIVE_AI_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 67 | DEEPSEEK_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 80 | QWEN_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 93 | DOUBAO_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 100 | GLM_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 113 | KIMI_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 133 | MINIMAX_API_KEY=your_api_key | CODE |
| HIGH | docs/tw/ai-providers.md | 156 | MIMO_API_KEY=your_api_key | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | app/[lang]/admin/setting-field.tsx | 18 | // ── Small shared UI bits ───────────────────────────────────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/setting-field.tsx | 129 | // ── General settings field (registry-driven) ───────────────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/admin-shared.ts | 8 | // ── Shared types ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/models-section.tsx | 47 | // ── Models section (mirrors the user ModelConfigDialog) ────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/page.tsx | 36 | // ── Page ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/page.tsx | 322 | // ── Login screen ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | app/[lang]/admin/page.tsx | 390 | // ── Settings screen ────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/admin/settings-registry.ts | 72 | // ── Generation ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/admin/settings-registry.ts | 91 | // ── Access Control ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/admin/settings-registry.ts | 102 | // ── Features ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/admin/settings-registry.ts | 136 | // ── Observability ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/admin/settings-registry.ts | 161 | // ── Quota ──────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/provider-credentials-fields.tsx | 79 | export function ProviderCredentialsFields({ | CODE |
| LOW | components/chat/message-text.ts | 16 | export function splitTextIntoFileSections(text: string): TextSection[] { | CODE |
| LOW | packages/mcp-server/src/dom.ts | 69 | function normalizeAttributeWhitespace(xml: string): string { | CODE |
| LOW | packages/mcp-server/src/http-server.ts | 219 | function ensureSessionStateInitialized(sessionId: string): void { | CODE |
| LOW | packages/mcp-server/src/custom-instructions.ts | 52 | export function guideWithCustomInstructions( | CODE |
| LOW | packages/mcp-server/src/xml-validation.ts | 978 | export function validateAndFixXml( | CODE |
| LOW | lib/output-token-limit.ts | 163 | export function withOutputTokenLimitFallback( | CODE |
| LOW | lib/ai-providers.ts | 71 | export function isAihubmixStandardBaseURL( | CODE |
| LOW | lib/ai-providers.ts | 674 | function validateProviderCredentials( | CODE |
| LOW | lib/server-model-config.ts | 71 | function configFromCommaSeparatedAiModel(): ServerModelsConfig | null { | CODE |
| LOW | lib/server-model-config.ts | 113 | export async function loadEnvServerModelsConfig(): Promise<ServerModelsConfig | null> { | CODE |
| LOW | lib/server-model-config.ts | 149 | export async function loadRawServerModelsConfig(): Promise<ServerModelsConfig | null> { | CODE |
| LOW | lib/server-model-config.ts | 172 | export async function loadFlattenedServerModels(): Promise< | CODE |
| LOW | lib/deprecated-params.ts | 73 | export function withDeprecatedParamsFallback( | CODE |
| LOW | lib/drawio/editor-bridge.ts | 428 | function canvasHasLoadOnlySettings(): boolean { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/i18n/dictionaries/zh.json | 20 | "placeholder": "描述您的图表或上传文件...", | CODE |
| LOW | lib/i18n/dictionaries/zh.json | 573 | "placeholder": "说说要怎么改,也可以点图形旁边的画笔自己改样式" | CODE |
| LOW | lib/i18n/dictionaries/zh.json | 635 | "placeholder": "比如:用户登录的时序图,包含短信验证码和失败重试", | CODE |
| LOW | lib/i18n/dictionaries/ja.json | 20 | "placeholder": "ダイアグラムを説明するか、ファイルをアップロード...", | CODE |
| LOW | lib/i18n/dictionaries/ja.json | 573 | "placeholder": "変更内容を書いてください。図形の横のブラシで自分でスタイルを変えることもできます" | CODE |
| LOW | lib/i18n/dictionaries/ja.json | 635 | "placeholder": "例:SMS 認証とリトライを含むログインのシーケンス図", | CODE |
| LOW | lib/i18n/dictionaries/en.json | 20 | "placeholder": "Describe your diagram or upload a file...", | CODE |
| LOW | lib/i18n/dictionaries/en.json | 573 | "placeholder": "Describe the change, or restyle it yourself with the brush next to it" | CODE |
| LOW | lib/i18n/dictionaries/en.json | 635 | "placeholder": "For example: a login sequence diagram with SMS codes and retries", | CODE |
| LOW | lib/i18n/dictionaries/zh-Hant.json | 20 | "placeholder": "描述您的圖表或上傳檔案...", | CODE |
| LOW | lib/i18n/dictionaries/zh-Hant.json | 573 | "placeholder": "說說要怎麼改,也可以點圖形旁邊的畫筆自己改樣式" | CODE |
| LOW | lib/i18n/dictionaries/zh-Hant.json | 635 | "placeholder": "例如:使用者登入的時序圖,包含簡訊驗證碼和失敗重試", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/provider-credentials-fields.tsx | 61 | // UI (e.g. the user dialog's inline Test button + validation error); the | COMMENT |
| LOW | hooks/use-diagram-tool-handlers.ts | 141 | } | COMMENT |
| LOW | packages/mcp-server/shell/mcp-sync-core.ts | 941 | // for a page-targeted export; otherwise the projection would be | COMMENT |
| LOW | packages/mcp-server/src/preview/preview.js | 341 | // draw.io echoes the request in msg.message, so the reply can | COMMENT |
| LOW | lib/admin/settings-registry.ts | 1 | // Declarative registry of the general env vars editable in the admin panel. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/cached-responses.ts | 411 | <mxCell id="p3" parent="sec1" style="rounded=1;arcSize=6;fontSize=11;align=left;verticalAlign=top;spacing=6;fillColor=#f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/chat-route-abort.test.ts | 31 | // Step 1: the model asks for a shape library (a tool run on the server) and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/chat-route-abort.test.ts | 31 | // Step 1: the model asks for a shape library (a tool run on the server) and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/mcp-server/src/http-server.ts | 628 | function handleRequest( | CODE |