Rich-text editor with AI and shadcn/ui
This report summarizes scanner evidence for udecode/plate, a TypeScript project with 16,681 GitHub stars. SynthScan examined 733,706 lines of code across 3869 source files, recording 280 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 0.6 (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? 259 finding(s).
Are imports declared and package/API names verified? 21 finding(s).
Are wrappers, guards, and repeated structures necessary? 207 finding(s).
Which changes need focused human review? 280 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 280 distinct pattern matches across 15 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/plitejs/src/core/public-state.ts | 10430 | export function retainTransactionSnapshotIndex( | CODE |
| LOW | packages/plitejs/src/core/document-shape.ts | 187 | export function assertEditorDocumentContainers( | CODE |
| LOW | packages/plitejs/src/core/change/document-change.ts | 82 | export function assertNamedDocumentRootKey( | CODE |
| LOW | packages/plitejs/src/dom/utils/diff-text.ts | 85 | export function longestCommonPrefixLength(str: string, another: string) { | CODE |
| LOW | packages/plitejs/src/dom/utils/diff-text.ts | 97 | function longestCommonSuffixLength( | CODE |
| LOW | …/plitejs/src/react/editable/runtime-selection-state.ts | 25 | export function readRuntimeSelectionRange(editor: Editor): Range | null { | CODE |
| LOW⚡ | packages/plitejs/src/react/editable/editing-kernel.ts | 180 | export function getEditableCommandDefinition(command: null): null; | CODE |
| LOW⚡ | packages/plitejs/src/react/editable/editing-kernel.ts | 181 | export function getEditableCommandDefinition( | CODE |
| LOW⚡ | packages/plitejs/src/react/editable/editing-kernel.ts | 184 | export function getEditableCommandDefinition(command: EditableCommand | null) { | CODE |
| LOW | packages/plitejs/src/react/hooks/use-plite-runtime.tsx | 349 | export function useOptionalPliteRuntimeContext() { | CODE |
| LOW | packages/plitejs/src/react/hooks/use-plite-runtime.tsx | 353 | export function useRequiredPliteRuntimeContext(): PliteRuntimeContextValue { | CODE |
| LOW | …ckages/plitejs/src/react/hooks/use-editor-selector.tsx | 82 | export function useRequiredEditorSelectorContext() { | CODE |
| LOW | …ckages/plitejs/src/react/hooks/use-editor-selector.tsx | 485 | export function useFlushDeferredSelectorsOnRender() { | CODE |
| LOW | …t/hooks/android-input-manager/android-input-manager.ts | 146 | export function createAndroidInputManager({ | CODE |
| LOW | …latejs/src/markdown/lib/internal/markdownConversion.ts | 363 | .use(function remarkUnwritableNodeWriter(this: Processor) { | CODE |
| LOW | …atejs/src/features/basic-nodes/lib/BaseBlockPlugins.ts | 249 | function isLiftableBlockquoteChild({ | CODE |
| LOW | …latejs/src/tabbable/react/TabbableEffects.internal.tsx | 71 | export function createTabIndexRestorationQueue() { | CODE |
| LOW | …ges/platejs/src/react/internal/rendered-attributes.tsx | 230 | export function PlateRenderedAttributeProvider({ | CODE |
| LOW | …kages/platejs/src/react/stores/plate/usePluginStore.ts | 138 | function resolvePluginStoreSelector( | CODE |
| LOW | …platejs/src/react/utils/pipeRenderElement.internal.tsx | 109 | function getFastInjectedAttributes({ | CODE |
| LOW | …kages/platejs/src/react/components/EditorRefEffect.tsx | 30 | function ViewElementAttributesHookProgram({ | CODE |
| LOW | …kages/platejs/src/react/components/EditorRefEffect.tsx | 53 | export function ViewElementAttributesEffect({ | CODE |
| LOW | packages/platejs/src/react/components/NodeSelection.tsx | 93 | function NodeSelectionHighlightPortalComponent({ | CODE |
| LOW | …/platejs/src/docx/export/lib/internal/docx-document.ts | 328 | function generateContentTypesFragments( | CODE |
| LOW | …/platejs/src/docx/export/lib/internal/docx-document.ts | 355 | function generateSectionReferenceXML( | CODE |
| LOW | .github/workflows/verify-changesets.yml | 61 | function parseChangesetReleaseTypes(content) { | CODE |
| LOW | .github/workflows/verify-changesets.yml | 120 | function getChangesetValidationErrors(files) { | CODE |
| LOW | …ate/src/app/api/ai/command/prompt/getGeneratePrompt.ts | 15 | function buildGenerateFreeformPrompt(messages: ChatMessage[]) { | CODE |
| LOW | …ate/src/app/api/ai/command/prompt/getGeneratePrompt.ts | 59 | function buildGenerateContextPrompt( | CODE |
| LOW | …emplate/src/app/api/ai/command/prompt/getEditPrompt.ts | 18 | function buildEditMultiBlockPrompt( | CODE |
| LOW | …te/src/app/api/ai/command/prompt/getEditTablePrompt.ts | 12 | export function buildEditTableMultiCellPrompt( | CODE |
| LOW | …yground-template/src/components/ui/suggestion-node.tsx | 55 | export function getBlockSuggestionWrapperClassName({ | CODE |
| LOW | …yground-template/src/components/ui/suggestion-node.tsx | 85 | export function VoidRemoveSuggestionOverlay({ | CODE |
| LOW | …yground-template/src/components/ui/suggestion-node.tsx | 108 | export function SuggestionLineBreakAnchor({ | CODE |
| LOW | …yground-template/src/components/ui/suggestion-node.tsx | 139 | function SuggestionLineBreakElementAnchor({ | CODE |
| LOW | …yground-template/src/components/ui/suggestion-node.tsx | 265 | export function SuggestionLineBreakContent({ | CODE |
| LOW | …nd-template/src/components/ui/equation-node-static.tsx | 55 | export function InlineEquationElementStatic( | CODE |
| LOW | …nd-template/src/components/ui/equation-node-static.tsx | 139 | export function InlineEquationElementDocx( | CODE |
| LOW | …-template/src/components/ui/code-block-node-static.tsx | 105 | function getCodeBlockLanguageLabel(lang?: string | null) { | CODE |
| LOW | …late-playground-template/src/components/ui/toolbar.tsx | 198 | export function ToolbarSplitButtonPrimary({ | CODE |
| LOW | …late-playground-template/src/components/ui/toolbar.tsx | 223 | export function ToolbarSplitButtonSecondary({ | CODE |
| LOW | …nd-template/src/components/ui/footnote-node-static.tsx | 5 | export function FootnoteReferenceElementStatic( | CODE |
| LOW | …nd-template/src/components/ui/footnote-node-static.tsx | 21 | export function FootnoteDefinitionElementStatic( | CODE |
| LOW | …-template/src/components/ui/suggestion-node-static.tsx | 40 | export function isStaticVoidRemoveSuggestion(element: TElement) { | CODE |
| LOW | …-template/src/components/ui/suggestion-node-static.tsx | 47 | export function VoidRemoveSuggestionOverlayStatic({ | CODE |
| LOW | …template/src/components/ui/equation-toolbar-button.tsx | 10 | export function InlineEquationToolbarButton( | CODE |
| LOW | …und-template/src/components/ui/list-toolbar-button.tsx | 27 | export function BulletedListToolbarButton() { | CODE |
| LOW | …und-template/src/components/ui/list-toolbar-button.tsx | 105 | export function NumberedListToolbarButton() { | CODE |
| LOW | …layground-template/src/components/ui/footnote-node.tsx | 223 | export function FootnoteDefinitionElement( | CODE |
| LOW | …round-template/src/components/ui/table-node-static.tsx | 96 | export function TableCellHeaderElementStatic( | CODE |
| LOW | …e-playground-template/src/components/ui/table-node.tsx | 815 | function ExpandedSelectionTableFloatingToolbarContent( | CODE |
| LOW | …e-playground-template/src/components/ui/table-node.tsx | 834 | function CollapsedTableFloatingToolbarContent( | CODE |
| LOW | …e-playground-template/src/components/ui/table-node.tsx | 871 | function TableFloatingToolbarContent({ | CODE |
| LOW | …e-playground-template/src/components/ui/table-node.tsx | 1010 | function TableBordersDropdownMenuContent( | CODE |
| LOW | …round-template/src/components/ui/code-drawing-node.tsx | 47 | function createDebouncedCodeDrawingRenderer( | CODE |
| LOW | …yground-template/src/components/ui/code-block-node.tsx | 129 | function getCodeBlockLanguageLabel(lang?: string | null) { | CODE |
| LOW | …nd-template/src/components/ui/emoji-toolbar-button.tsx | 387 | function EmojiPickerSearchAndClear({ | CODE |
| LOW | templates/plate-template/src/components/ui/toolbar.tsx | 198 | export function ToolbarSplitButtonPrimary({ | CODE |
| LOW | templates/plate-template/src/components/ui/toolbar.tsx | 223 | export function ToolbarSplitButtonSecondary({ | CODE |
| LOW⚡ | apps/www/public/r/ai-api.json | 56 | "content": "import dedent from 'dedent';\nimport type { AIChatRequestRefs } from 'platejs/ai';\nimport type { Mark | CODE |
| 147 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/plitejs/src/authored/ledger/cards.ts | 79 | placeIn(previous.last, previous.last.slot.changes.ends.get(previous.id)), | CODE |
| CRITICAL | …es/plitejs/src/react/editable/external-text-runtime.ts | 471 | const viewRoot = toInternalRoot(this.runtime.editor.read.view.root()); | CODE |
| CRITICAL | …es/plitejs/src/react/editable/external-text-runtime.ts | 528 | toInternalRoot(this.runtime.editor.read.view.root()) | CODE |
| CRITICAL | …es/plitejs/src/react/editable/external-text-runtime.ts | 606 | toInternalRoot(this.runtime.editor.read.view.root()) | CODE |
| CRITICAL | …es/plitejs/src/react/editable/external-text-runtime.ts | 1025 | this.runtime.editor.read.view.root() | CODE |
| CRITICAL | …ages/platejs/src/features/table/lib/BaseTablePlugin.ts | 2386 | const exact = context.editor.api.dom.clipboard.readSlice(input); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | apps/www/public/r/ai-api.json | 50 | "content": "import dedent from 'dedent';\nimport { ElementApi, NodeApi, RangeApi } from 'platejs';\nimport type { | CODE |
| HIGH | apps/www/public/r/docs-meta.json | 9 | "content": "{\n \"root\": true,\n \"pages\": [\n \"---Get Started---\",\n \"[Introduction](/docs/plate)\", | CODE |
| HIGH⚡ | apps/www/public/r/ai-docs.json | 9 | "content": "---\ntitle: AI\ndescription: AI-powered writing assistance.\ndocs:\n - route: https://pro.platejs.org | CODE |
| HIGH⚡ | apps/www/public/r/ai-docs.json | 9 | "content": "---\ntitle: AI\ndescription: AI-powered writing assistance.\ndocs:\n - route: https://pro.platejs.org | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lefthook.yml | 1 | # EXAMPLE USAGE: | COMMENT |
| LOW | lefthook.yml | 21 | # parallel: true | COMMENT |
| LOW | lefthook.yml | 41 | # - script: "hello.go" | COMMENT |
| LOW | tooling/config/.ncurc.yml | 1 | # npm-check-updates configuration used by pnpm deps:check && pnpm deps:update | COMMENT |
| LOW | .github/workflows/ci.yml | 121 | # runs-on: ubuntu-latest | COMMENT |
| LOW | …-playground-template/src/components/editor/use-chat.ts | 1341 | { | COMMENT |
| LOW | …-playground-template/src/components/editor/use-chat.ts | 1361 | // { | COMMENT |
| LOW | apps/www/src/app/(app)/docs/[[...slug]]/doc-content.tsx | 301 | // <div className="sticky top-0 flex w-[230px] flex-col"> | COMMENT |
| LOW | …/(app)/examples/plite/_examples/utils/prism-runtime.ts | 1 | import type PrismType from 'prismjs'; | COMMENT |
| LOW | apps/www/src/registry/registry-pro.ts | 121 | // name: 'emoji-pro', | COMMENT |
| LOW | apps/www/src/registry/registry-pro.ts | 141 | // }, | COMMENT |
| LOW | apps/www/src/registry/registry-pro.ts | 161 | // - Resize columns with drag handles | COMMENT |
| LOW | apps/www/src/registry/registry-pro.ts | 181 | // }, | COMMENT |
| LOW | apps/www/src/registry/registry-pro.ts | 201 | // - Custom date formatting options | COMMENT |
| LOW | apps/www/src/registry/registry-examples.ts | 1201 | // }, | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 241 | // if (!component) { | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 261 | // // Add code as children so that rehype can take over at build time. | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 301 | // node.children?.push( | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 321 | // }) | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 341 | // name: 'extractedClassNames', | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 361 | // }), | COMMENT |
| LOW | apps/www/src/lib/rehype-component.ts | 381 | // properties: { | COMMENT |
| LOW | apps/www/src/lib/rehype-utils.ts | 261 | return Array.from(new Set(deps)); | COMMENT |
| LOW | apps/www/src/lib/rehype-utils.ts | 281 | // file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …es/platejs/src/docx/export/lib/internal/xml-builder.ts | 2166 | // Essentially if background color needs to be across the row | COMMENT |
| MEDIUM⚡ | apps/www/public/r/ai-api.json | 56 | "content": "import dedent from 'dedent';\nimport type { AIChatRequestRefs } from 'platejs/ai';\nimport type { Mark | CODE |
| MEDIUM | apps/www/public/r/plugin-rules-docs.json | 9 | "content": "---\ntitle: Plugin Rules\ndescription: Configure common editing behaviors.\n---\n\nPlugin Rules contro | CODE |
| MEDIUM | apps/www/public/r/browser-docs.json | 9 | "content": "---\ntitle: \"Browser\"\ndescription: \"Use the first-party browser proof harness for editor behavior | CODE |
| MEDIUM | apps/www/public/r/media-docs.json | 9 | "content": "---\ntitle: Media\ndocs:\n - route: https://pro.platejs.org/docs/examples/media\n title: Plus\n - | CODE |
| MEDIUM | apps/www/public/r/installation-plate-ui-docs.json | 9 | "content": "---\ntitle: Plate UI\ndescription: Install, customize, and sync copied Plate UI components.\n---\n\nPl | CODE |
| MEDIUM | apps/www/public/r/copilot-docs.json | 9 | "content": "---\ntitle: Copilot\ndescription: AI-powered text completion suggestions.\ndocs:\n - route: https://p | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | apps/www/public/r/ai-docs.json | 9 | "content": "---\ntitle: AI\ndescription: AI-powered writing assistance.\ndocs:\n - route: https://pro.platejs.org | CODE |
| HIGH | apps/www/public/r/copilot-docs.json | 9 | "content": "---\ntitle: Copilot\ndescription: AI-powered text completion suggestions.\ndocs:\n - route: https://p | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/plitejs/src/testing/jsx.ts | 131 | hplaceholder: { type: 'placeholder' }, | CODE |
| LOW | packages/plitejs/src/testing/jsx.ts | 164 | hplaceholder: createElementWithDefaultText('placeholder'), | CODE |
| LOW | packages/plitejs/src/dom/plugin/dom-coverage.ts | 65 | | { nodeKey?: NodeKey; type: 'placeholder' }; | CODE |
| LOW | packages/plitejs/src/dom/utils/weak-maps.ts | 130 | export const PLACEHOLDER_SYMBOL = Symbol('placeholder') as unknown as string; | CODE |
| LOW | packages/plitejs/src/react/viewport-boundary.tsx | 24 | anchor: { type: 'placeholder' as const }, | CODE |
| LOW | …/plitejs/src/react/components/editable-text-blocks.tsx | 708 | | 'placeholder' | CODE |
| LOW | …plitejs/src/react/components/dom-coverage-boundary.tsx | 75 | anchor: { type: 'placeholder' as const }, | CODE |
| LOW | …plitejs/src/react/components/dom-coverage-boundary.tsx | 178 | anchor: { type: 'placeholder' as const }, | CODE |
| LOW | …es/plitejs/src/react/editable/root-selector-sources.ts | 221 | profileId: 'placeholder', | CODE |
| LOW | packages/test/README.md | 176 | const editor = await openExample(page, 'placeholder', { | CODE |
| LOW | …s/platejs/src/internal/mergePlateRenderedAttributes.ts | 17 | if (name === 'className' || name === 'placeholder') { | CODE |
| LOW | packages/platejs/src/internal/plugin/resolvePlugins.ts | 851 | name === 'placeholder' || | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …emplate/src/app/api/ai/command/prompt/getEditPrompt.ts | 49 | Hey, here's how you can set things up quickly. | CODE |
| MEDIUM⚡ | apps/www/public/r/ai-api.json | 56 | "content": "import dedent from 'dedent';\nimport type { AIChatRequestRefs } from 'platejs/ai';\nimport type { Mark | CODE |
| MEDIUM | apps/www/public/r/toolbar-docs.json | 9 | "content": "---\ntitle: Toolbar\ndescription: Fixed and floating toolbars for your editor.\ndocs:\n - route: http | CODE |
| MEDIUM | apps/www/public/r/installation-docs-docs.json | 9 | "content": "---\ntitle: Local Docs\ndescription: Set up Plate's documentation locally for version-controlled, AI-e | CODE |
| MEDIUM | …rc/registry/app/api/ai/command/prompt/getEditPrompt.ts | 51 | Hey, here's how you can set things up quickly. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | apps/www/public/r/installation-node-docs.json | 9 | "content": "---\ntitle: Node.js\ndescription: Install and configure Plate for Node.js conversion and document work | CODE |
| MEDIUM | apps/www/public/r/yjs-docs.json | 9 | "content": "---\ntitle: Collaboration\ndescription: Real-time collaboration with Yjs\ntoc: true\n---\n\n<Component | CODE |
| MEDIUM | apps/www/public/r/api-editor-api-docs.json | 9 | "content": "---\ntitle: \"Editor\"\ndescription: \"Core editor runtime API for reads, transactions, roots, state, | CODE |
| MEDIUM | apps/www/public/r/combobox-docs.json | 9 | "content": "---\ntitle: Combobox\ndocs:\n - route: /docs/components/inline-combobox\n title: Inline Combobox\n | CODE |
| MEDIUM | apps/www/public/r/static-docs.json | 9 | "content": "---\ntitle: Static Rendering\ndescription: A minimal, memoized, read-only version of Plate with RSC/SS | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | apps/www/public/r/comment-docs.json | 9 | "content": "---\ntitle: Comments\ndescription: Add comments to text, reply in threads, and keep them attached as y | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/www/src/registry/examples/values/code-block-value.tsx | 55 | {` """Get a task by index, return None if not found."""`} | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | apps/www/public/r/editor-docs.json | 9 | "content": "---\ntitle: Editor Configuration\ndescription: Learn how to configure and customize the Plate editor.\ | CODE |
| MEDIUM | apps/www/public/r/editor-docs.json | 9 | "content": "---\ntitle: Editor Configuration\ndescription: Learn how to configure and customize the Plate editor.\ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tooling/scripts/brl.sh | 68 | # Check if the src/react directory exists and run barrelsby if it does and if index.tsx doesn't exist | COMMENT |
| LOW | tooling/scripts/brl.sh | 73 | # Check if the src/static directory exists and run barrelsby if it does and if index.tsx doesn't exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/www/public/r/installation-mcp-docs.json | 9 | "content": "---\ntitle: MCP Server\ndescription: Use the Model Context Protocol with Plate.\n---\n\nUse the shadcn | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/www/public/r/installation-mcp-docs.json | 9 | "content": "---\ntitle: MCP Server\ndescription: Use the Model Context Protocol with Plate.\n---\n\nUse the shadcn | CODE |