High-performance engine for capturing, modifying, and converting DOM elements into any format.
This report presents the forensic synthetic code analysis of zumerlab/snapdom, a JavaScript project with 8,051 GitHub stars. SynthScan v2.0 examined 57,181 lines of code across 273 source files, recording 135 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 135 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | __tests__/module.fonts.more.more.test.js | 248 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/module.fonts.more.more.test.js | 251 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 674 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 676 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 694 | // ── #277 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 694 | // ── #277 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 731 | // ── #365 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 731 | // ── #365 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 761 | // ── NEW-7 ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 783 | // ── #315 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 783 | // ── #315 ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 806 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 808 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 876 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 878 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 914 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 916 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 972 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.clone.more.test.js | 974 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/snapdom.benchmark.js | 150 | // ── Image-heavy scenario (rasterized PNG) ─────────────────────────────────── | COMMENT |
| MEDIUM⚡ | __tests__/core.capture.more.test.js | 550 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | __tests__/core.capture.more.test.js | 551 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | __tests__/core.capture.more.test.js | 553 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 35 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 37 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 62 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 64 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 129 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 131 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 152 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 154 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 203 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 205 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 221 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 223 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 248 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 250 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 282 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 284 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 314 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 316 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 344 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 346 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 370 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 374 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 394 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 396 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 415 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 417 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 457 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 459 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 482 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 484 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 501 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 504 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 590 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __tests__/core.capture.more.test.js | 593 | // ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/scripts/classify-issues.js | 18 | // ─── Classification rules ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/scripts/classify-issues.js | 96 | // ─── GitHub API helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/scripts/classify-issues.js | 147 | // ─── Main ───────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | FEATURES_CN.md | 164 | - `data-capture="placeholder"` + `data-placeholder-text` — 用占位框替代该节点。 | CODE |
| LOW | FEATURES.md | 164 | - `data-capture="placeholder"` + `data-placeholder-text` — render a placeholder box instead of the node. | CODE |
| LOW | docs/plugins.html | 1282 | for (const name of ['href', 'type', 'name', 'placeholder', 'alt', 'title', 'role', 'aria-label']) { | CODE |
| LOW | docs/llms.txt | 117 | Also read from the source DOM: `data-capture="exclude"`, `data-capture="placeholder"` with `data-placeholder-text`. | CODE |
| LOW | docs/llms-full.txt | 214 | | data-capture="placeholder" | Clones the box but replaces its content with centered placeholder text | | CODE |
| LOW | docs/llms-full.txt | 215 | | data-placeholder-text | The text used by data-capture="placeholder" | | CODE |
| LOW | docs/showcase/index.html | 1016 | <input id="name" type="text" placeholder="John Doe" value="Ada Lovelace" /> | CODE |
| LOW | __tests__/snapdom.complex.benchmark.js | 78 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' | CODE |
| LOW | __tests__/snapdom.complex.benchmark.js | 78 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' | CODE |
| LOW | __tests__/snapdom.precache.perf.test.js | 52 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' | CODE |
| LOW | __tests__/snapdom.precache.perf.test.js | 52 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' | CODE |
| LOW | __tests__/snapdom.attributes.test.js | 30 | it('should replace elements with data-capture="placeholder" and show placeholder text', async () => { | CODE |
| LOW | __tests__/snapdom.attributes.test.js | 32 | placeholder.setAttribute('data-capture', 'placeholder') | CODE |
| LOW | __tests__/snapdom.benchmark.js | 96 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; | CODE |
| LOW | __tests__/snapdom.benchmark.js | 96 | text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; | CODE |
| LOW | __tests__/core.clone.test.js | 65 | it('deepClone handles data-capture="placeholder"', async () => { | CODE |
| LOW | __tests__/core.clone.test.js | 67 | el.setAttribute('data-capture', 'placeholder') | CODE |
| LOW | __tests__/clip.benchmark.js | 17 | html += `<div style="background:#f1f5f9;border-radius:6px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.2)"><b>Card | CODE |
| LOW | __tests__/clip.benchmark.js | 17 | html += `<div style="background:#f1f5f9;border-radius:6px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.2)"><b>Card | CODE |
| LOW | __tests__/module.lineClamp.test.js | 46 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore | CODE |
| LOW | __tests__/module.lineClamp.test.js | 46 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore | CODE |
| LOW | __tests__/module.lineClamp.test.js | 91 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore | CODE |
| LOW | __tests__/module.lineClamp.test.js | 91 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore | CODE |
| LOW | __tests__/module.lineClamp.test.js | 108 | div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 108 | div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 119 | div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 119 | div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 139 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 139 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.' | CODE |
| LOW | __tests__/module.lineClamp.test.js | 160 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore. | CODE |
| LOW | __tests__/module.lineClamp.test.js | 160 | const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore. | CODE |
| LOW | packages/plugins/agent-map.js | 328 | for (const name of ['href', 'type', 'name', 'placeholder', 'alt', 'title', 'role', 'aria-label']) { | CODE |
| LOW | src/core/clone.js | 38 | /** Tags dispatched BEFORE the data-capture="placeholder" branch (an <iframe> placeholder | COMMENT |
| LOW | src/core/clone.js | 274 | if (node.getAttribute('data-capture') === 'placeholder') { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/exporters/toCanvas.js | 186 | function rewriteSvgBoxShadowToDropShadow(svgText) { | CODE |
| LOW | src/utils/transforms.helpers.js | 407 | export function hasBBoxAffectingTransform(el) { | CODE |
| LOW | src/utils/image.js | 15 | export async function inlineSingleBackgroundEntry(entry, options = {}) { | CODE |
| LOW | src/utils/clone.helpers.js | 211 | export function collectCustomPropsFromCSS(cssText) { | CODE |
| LOW | src/utils/clone.helpers.js | 286 | export async function getAccessibleIframeDocument(iframe, attempts = 3) { | CODE |
| LOW | src/utils/clone.helpers.js | 527 | export function createCheckboxRadioReplacement(node) { | CODE |
| LOW | src/utils/capture.helpers.js | 335 | export function neutralizeRootMarginCollapse(originalEl, cloneRoot, nodeMap) { | CODE |
| LOW | src/utils/capture.helpers.js | 385 | export function sanitizeAttributesForXHTML(root, opts = {}) { | CODE |
| LOW | src/utils/capture.helpers.js | 588 | function contributesToParentHeight(el) { | CODE |
| LOW | src/utils/capture.helpers.js | 825 | function collectScrollbarRulesFromRules(rules, seen = new Set()) { | CODE |
| LOW | src/modules/pseudo.js | 340 | function deriveCounterCtxForPseudo(node, pseudoStyle, baseCtx) { | CODE |
| LOW | src/modules/pseudo.js | 415 | function resolvePseudoContentAndIncs(node, pseudo, baseCtx, siblingCounters) { | CODE |
| LOW | src/modules/pictureResolver.js | 32 | export function quickProbeMayNeedPictureResolver(root, resolveLazySrc) { | CODE |
| LOW | src/modules/pictureResolver.js | 150 | export async function runPictureResolverBeforeClone(root, options = {}) { | CODE |
| LOW | src/modules/pictureResolver.js | 247 | return async function undoPictureResolverMutations() { | CODE |
| LOW | src/modules/svgDefs.js | 13 | export function inlineExternalDefsAndSymbols(element, lookupRoot) { | CODE |
| LOW | src/modules/styles.js | 87 | function snapshotComputedStyleFull(style, options = {}) { | CODE |
| LOW | src/modules/styles.js | 313 | function usedWidthDiffersFromAvailable(el, cs) { | CODE |
| LOW | src/modules/styles.js | 391 | function normalizeInlineStyleToComputed(source, clone, computed) { | CODE |
| LOW | src/modules/compress.js | 174 | export async function compressClonedBackgrounds(clone, options, nodeMap = cache.session.nodeMap) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/sitemap.xml | 119 | <url><loc>https://snapdom.dev/labs/webgl-seamless-dom/</loc><lastmod>2026-07-21</lastmod></url> | CODE |
| MEDIUM⚡ | docs/labs/webgl-seamless-dom/index.html | 9 | <link rel="canonical" href="https://snapdom.dev/labs/webgl-seamless-dom/" /> | CODE |
| MEDIUM⚡ | docs/labs/webgl-seamless-dom/index.html | 15 | <meta property="og:url" content="https://snapdom.dev/labs/webgl-seamless-dom/" /> | CODE |
| MEDIUM⚡ | docs/labs/webgl-seamless-dom/index.html | 20 | <script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Seamless DOM to | CODE |
| MEDIUM⚡ | docs/labs/webgl-seamless-dom/index.html | 21 | <script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@typ | CODE |
| MEDIUM | src/modules/snapFetch.js | 270 | // Final URL (with robust proxying) & credentials | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | __tests__/visual.demos.shared.js | 1 | // Visual regression suite for snapdom demos. Shared by the visual.demos.N.test.js | COMMENT |
| LOW | __tests__/visual.demos.shared.js | 21 | // points off-origin". Force a mode with `NETWORK_GATE=off|serial|skip`. | COMMENT |
| LOW | __tests__/visual.demos.shared.js | 41 | // when tests are registered, which is why this reading comes from the pre-run probe in the | COMMENT |
| LOW | __tests__/visual.demos.shared.js | 61 | // Demos finish asynchronously in ways a fixed `wait` cannot cover: MathJax and KaTeX | COMMENT |
| LOW | __tests__/visual.demos.shared.js | 121 | // because snapdom regressed, they fail because the payload never arrived, and the failure | COMMENT |
| LOW | __tests__/snapdom.issue484.test.js | 1 | // #484 — `<span>` with `display:block` and an authored width lost that width. | COMMENT |
| LOW | __tests__/snapdom.issue486.test.js | 1 | // #486 — "the canvas animation cannot be captured". | COMMENT |
| LOW | __tests__/helpers/network-gate.js | 1 | // Browser side of the network gate: keeps a test from failing for a reason that has | COMMENT |
| LOW | __tests__/helpers/network-gate.js | 21 | // ... | COMMENT |
| LOW | packages/plugin-template/index.js | 21 | // Clone-phase hooks read options from ctx.options; export-phase hooks get them flattened on ctx. | COMMENT |
| LOW | packages/plugin-template/index.js | 41 | COMMENT | |
| LOW | src/core/clone.js | 621 | return false | COMMENT |
| LOW | src/exporters/toCanvas.js | 361 | * }} options | COMMENT |
| LOW | src/modules/styles.js | 421 | try { computed = getComputedStyle(source) } catch { /* detached / cross-origin */ } | COMMENT |
| LOW | src/modules/styles.js | 641 | COMMENT |