🍼 Plugin driven WYSIWYG markdown editor framework.
This report summarizes scanner evidence for Milkdown/milkdown, a TypeScript project with 12,035 GitHub stars. SynthScan examined 129,574 lines of code across 988 source files, recording 76 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (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? 69 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 25 finding(s).
Which changes need focused human review? 76 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 76 distinct pattern matches across 5 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 | packages/plugins/plugin-streaming/src/flush.ts | 41 | return { tr, newDoc } | COMMENT |
| LOW | packages/plugins/plugin-streaming/src/flush.ts | 161 | return { tr, applied: true, insertEndPos: from + textContent.length } | COMMENT |
| LOW | packages/plugins/plugin-streaming/src/flush.ts | 181 | /// plugin syntax carries trigger characters that are too common in prose for an | COMMENT |
| LOW | packages/plugins/plugin-streaming/src/flush.ts | 341 | COMMENT | |
| LOW | packages/plugins/plugin-streaming/src/types.ts | 21 | /// Insert buffer as plain text. `preserveNewlines` controls whether | COMMENT |
| LOW | packages/plugins/plugin-streaming/src/types.ts | 41 | /// Auto-scroll to follow streaming content (default: true). | COMMENT |
| LOW | packages/plugins/plugin-automd/src/config.ts | 61 | return text | COMMENT |
| LOW | packages/plugins/preset-gfm/src/node/table/schema.ts | 1 | import type { Node, NodeType } from '@milkdown/prose/model' | COMMENT |
| LOW | …ugins/preset-commonmark/src/__test__/inline-br.spec.ts | 201 | return getMarkdown()(ctx) | COMMENT |
| LOW | …et-commonmark/src/plugin/remark-preserve-empty-line.ts | 61 | ) | COMMENT |
| LOW | …ckages/plugins/preset-commonmark/src/node/list-item.ts | 101 | /// | COMMENT |
| LOW | …ckages/plugins/preset-commonmark/src/node/list-item.ts | 121 | COMMENT | |
| LOW | …ckages/plugins/preset-commonmark/src/node/list-item.ts | 141 | group: 'ListItem', | COMMENT |
| LOW | packages/plugins/plugin-diff/src/diff-compute.ts | 501 | /// precondition fails: | COMMENT |
| LOW | packages/plugins/plugin-diff/src/diff-compute.ts | 581 | const oldCut = sharedOld.copy(sharedOld.content.cut(localFrom, localTo)) | COMMENT |
| LOW | …/plugins/plugin-diff/src/__test__/diff-compute.spec.ts | 941 | const changes = computeDocDiff(oldDoc, newDoc, { | COMMENT |
| LOW | packages/plugins/plugin-upload/src/upload.ts | 21 | export interface UploadOptions { | COMMENT |
| LOW | packages/plugins/plugin-tooltip/src/tooltip-provider.ts | 21 | COMMENT | |
| LOW | packages/plugins/plugin-tooltip/src/tooltip-provider.ts | 61 | /// @internal | COMMENT |
| LOW | packages/plugins/plugin-collab/src/collab-service.ts | 81 | yUndoPluginKey, | COMMENT |
| LOW | packages/transformer/src/serializer/types.ts | 1 | import type { Mark, Node } from '@milkdown/prose/model' | COMMENT |
| LOW | packages/transformer/src/serializer/types.ts | 21 | /// | COMMENT |
| LOW | packages/transformer/src/serializer/types.ts | 41 | match: (mark: Mark) => boolean | COMMENT |
| LOW | packages/transformer/src/parser/types.ts | 1 | import type { MarkType, Node, NodeType } from '@milkdown/prose/model' | COMMENT |
| LOW | packages/transformer/src/parser/types.ts | 21 | /// For example: | COMMENT |
| LOW | packages/transformer/src/parser/types.ts | 41 | /// ``` | COMMENT |
| LOW | packages/transformer/src/utility/stack.ts | 1 | import { stackOverFlow } from '@milkdown/exception' | COMMENT |
| LOW | packages/utils/src/composable/$command.ts | 21 | /// function. The factory function will be called when the plugin is created. | COMMENT |
| LOW | packages/utils/src/composable/composed/$mark-schema.ts | 21 | ctx: $Ctx<GetMarkSchema, T> | COMMENT |
| LOW | packages/utils/src/composable/composed/$node-schema.ts | 21 | ctx: $Ctx<GetNodeSchema, T> | COMMENT |
| LOW | packages/ctx/src/timer/timer.ts | 1 | import type { TimerMap } from './clock' | COMMENT |
| LOW | packages/ctx/src/plugin/types.ts | 1 | import type { Meta } from '../inspector' | COMMENT |
| LOW | packages/ctx/src/plugin/types.ts | 21 | /// return async () => { | COMMENT |
| LOW | packages/crepe/src/core/slice.ts | 1 | import { createSlice, type Ctx } from '@milkdown/kit/ctx' | COMMENT |
| LOW | packages/crepe/src/core/slice.ts | 21 | /// const plugin = (ctx: Ctx) => { | COMMENT |
| LOW | packages/crepe/src/llm-providers/shared.ts | 41 | /// Model identifier (e.g. `gpt-4o-mini`, `claude-sonnet-4-5`). | COMMENT |
| LOW | packages/crepe/src/feature/toolbar/config.ts | 41 | import { aiProviderConfig } from '../ai/commands' | COMMENT |
| LOW | packages/crepe/src/feature/toolbar/config.ts | 61 | /// because a display glyph such as `⌘B` and the abbreviation `Ctrl` are | COMMENT |
| LOW | packages/crepe/src/feature/ai/commands.ts | 21 | // Context slices | COMMENT |
| LOW | packages/crepe/src/feature/ai/commands.ts | 61 | /// | COMMENT |
| LOW | packages/crepe/src/feature/ai/commands.ts | 181 | // Commands | COMMENT |
| LOW | packages/crepe/src/feature/ai/types.ts | 101 | /// Called when an error occurs during AI processing. | COMMENT |
| LOW | packages/crepe/src/feature/ai/types.ts | 121 | sendAsPromptHeaderLabel?: string | COMMENT |
| LOW | packages/crepe/src/feature/ai/ai.spec.ts | 821 | }) | COMMENT |
| LOW | …kages/crepe/src/feature/ai/instruction-tooltip/view.ts | 21 | chrome: AIInstructionTooltipChrome | COMMENT |
| LOW | …ages/crepe/src/feature/ai/instruction-tooltip/index.ts | 41 | /// at click time, not at the time the toolbar is built. | COMMENT |
| LOW | .github/FUNDING.yml | 1 | # These are supported funding model platforms | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/plugins/plugin-streaming/src/flush.ts | 79 | function stripTrailingEmptyParagraph(content: Fragment): Fragment { | CODE |
| LOW | packages/plugins/preset-commonmark/src/node/heading.ts | 23 | function defaultHeadingIdGenerator(node: Node) { | CODE |
| LOW | packages/plugins/plugin-collab/src/shim.d.ts | 54 | export function yXmlFragmentToProseMirrorRootNode( | CODE |
| LOW | packages/components/src/link-tooltip/utils.ts | 34 | export function shouldShowPreviewWhenHover( | CODE |
| LOW | …mponents/src/link-tooltip/preview/preview-configure.ts | 12 | export function configureLinkPreviewTooltip(ctx: Ctx) { | CODE |
| LOW | packages/components/src/diff/doc-utils.ts | 55 | export function coversOnlyTrailingEmptyParagraphs( | CODE |
| LOW | packages/components/src/diff/doc-utils.ts | 77 | export function trailingEmptyParagraphStart(doc: Node): number { | CODE |
| LOW | packages/components/src/diff/doc-utils.ts | 105 | export function forEachTopLevelNodeInRange( | CODE |
| LOW | packages/components/src/diff/doc-utils.ts | 125 | export function addBlockDeletionDecorations( | CODE |
| LOW | packages/components/src/diff/merge-changes.ts | 250 | export function anchorTrailingInsertsBeforeEmptyParagraph( | CODE |
| LOW | packages/components/src/diff/diff-decoration-plugin.ts | 93 | function addCrossBoundaryDecorations({ | CODE |
| LOW | …-block/__tests__/list-item.marker-pointerdown.spec.tsx | 43 | function pressAndReportCancellation(target: Element) { | CODE |
| LOW | packages/components/src/table-block/view/pointer.ts | 136 | function createPointerLeaveHandler(refs: Refs): () => void { | CODE |
| LOW | packages/components/src/table-block/view/utils.ts | 84 | export function recoveryStateBetweenUpdate( | CODE |
| LOW | packages/components/src/table-block/view/utils.ts | 140 | export function computeColHandlePositionByIndex({ | CODE |
| LOW | packages/components/src/table-block/view/utils.ts | 167 | export function computeRowHandlePositionByIndex({ | CODE |
| LOW | packages/prose/src/toolkit/prose/selection.ts | 15 | export function findParentNodeClosestToPos(predicate: Predicate) { | CODE |
| LOW | packages/exception/src/index.ts | 149 | export function callCommandBeforeEditorView() { | CODE |
| LOW | …ages/crepe/src/feature/ai/instruction-tooltip/index.ts | 53 | export function useAIInstructionTooltipAPI(ctx: Ctx) { | CODE |
| LOW | …ages/crepe/src/feature/ai/instruction-tooltip/index.ts | 107 | export function configureAIInstructionTooltip(config?: AIFeatureConfig) { | CODE |
| LOW | packages/crepe/src/feature/placeholder/index.ts | 19 | function createPlaceholderDecoration( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | docs/api/crepe.md | 762 | // ── Instruction palette strings ─────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/api/crepe.md | 770 | // ── Icon overrides ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/api/crepe.md | 778 | // ── Streaming indicator ─────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/api/crepe.md | 784 | // ── Diff actions panel ──────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/api/plugin-streaming.md | 3 | Streaming input plugin for [milkdown](https://milkdown.dev/). Streams markdown content token by token into the editor wi | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …components/src/__internal__/components/image-input.tsx | 144 | <div class="placeholder"> | CODE |
| LOW | packages/crepe/rollup.config.js | 25 | 'placeholder', | CODE |
| LOW | packages/crepe/src/feature/index.ts | 45 | Placeholder = 'placeholder', | CODE |