Repository Analysis

zumerlab/snapdom

High-performance engine for capturing, modifying, and converting DOM elements into any format.

4.3 Likely human-written View on GitHub

Analysis Overview

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).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
8.1K
Stars
JavaScript
Language
57.2K
Lines of Code
273
Files
135
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 66LOW 69

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators60 hits · 159 pts
SeverityFileLineSnippetContext
MEDIUM__tests__/module.fonts.more.more.test.js248// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/module.fonts.more.more.test.js251// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js674// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js676// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js694 // ── #277 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js694 // ── #277 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js731 // ── #365 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js731 // ── #365 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js761 // ── NEW-7 ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js783 // ── #315 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js783 // ── #315 ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js806// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js808// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js876// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js878// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js914// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js916// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js972// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.clone.more.test.js974// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/snapdom.benchmark.js150// ── Image-heavy scenario (rasterized PNG) ───────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js550// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js551// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js553// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js35// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js37// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js62// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js64// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js129// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js131// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js152// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js154// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js203// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js205// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js221// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js223// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js248// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js250// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js282// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js284// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js314// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js316// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js344// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js346// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js370// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js374// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js394// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js396// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js415// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js417// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js457// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js459// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js482// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js484// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js501// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js504// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js590// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM__tests__/core.capture.more.test.js593// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js18// ─── Classification rules ────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js96// ─── GitHub API helpers ───────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/classify-issues.js147// ─── Main ─────────────────────────────────────────────────────────────────────COMMENT
Fake / Example Data34 hits · 34 pts
SeverityFileLineSnippetContext
LOWFEATURES_CN.md164- `data-capture="placeholder"` + `data-placeholder-text` — 用占位框替代该节点。CODE
LOWFEATURES.md164- `data-capture="placeholder"` + `data-placeholder-text` — render a placeholder box instead of the node.CODE
LOWdocs/plugins.html1282 for (const name of ['href', 'type', 'name', 'placeholder', 'alt', 'title', 'role', 'aria-label']) {CODE
LOWdocs/llms.txt117Also read from the source DOM: `data-capture="exclude"`, `data-capture="placeholder"` with `data-placeholder-text`.CODE
LOWdocs/llms-full.txt214| data-capture="placeholder" | Clones the box but replaces its content with centered placeholder text |CODE
LOWdocs/llms-full.txt215| data-placeholder-text | The text used by data-capture="placeholder" |CODE
LOWdocs/showcase/index.html1016 <input id="name" type="text" placeholder="John Doe" value="Ada Lovelace" />CODE
LOW__tests__/snapdom.complex.benchmark.js78 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.complex.benchmark.js78 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.precache.perf.test.js52 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.precache.perf.test.js52 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW__tests__/snapdom.attributes.test.js30 it('should replace elements with data-capture="placeholder" and show placeholder text', async () => {CODE
LOW__tests__/snapdom.attributes.test.js32 placeholder.setAttribute('data-capture', 'placeholder')CODE
LOW__tests__/snapdom.benchmark.js96 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';CODE
LOW__tests__/snapdom.benchmark.js96 text.textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';CODE
LOW__tests__/core.clone.test.js65 it('deepClone handles data-capture="placeholder"', async () => {CODE
LOW__tests__/core.clone.test.js67 el.setAttribute('data-capture', 'placeholder')CODE
LOW__tests__/clip.benchmark.js17 html += `<div style="background:#f1f5f9;border-radius:6px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.2)"><b>CardCODE
LOW__tests__/clip.benchmark.js17 html += `<div style="background:#f1f5f9;border-radius:6px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.2)"><b>CardCODE
LOW__tests__/module.lineClamp.test.js46 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js46 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js91 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js91 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore CODE
LOW__tests__/module.lineClamp.test.js108 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js108 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js119 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js119 div.textContent = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor.'CODE
LOW__tests__/module.lineClamp.test.js139 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.'CODE
LOW__tests__/module.lineClamp.test.js139 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt.'CODE
LOW__tests__/module.lineClamp.test.js160 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore.CODE
LOW__tests__/module.lineClamp.test.js160 const longText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore.CODE
LOWpackages/plugins/agent-map.js328 for (const name of ['href', 'type', 'name', 'placeholder', 'alt', 'title', 'role', 'aria-label']) {CODE
LOWsrc/core/clone.js38/** Tags dispatched BEFORE the data-capture="placeholder" branch (an <iframe> placeholderCOMMENT
LOWsrc/core/clone.js274 if (node.getAttribute('data-capture') === 'placeholder') {CODE
Hyper-Verbose Identifiers20 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/exporters/toCanvas.js186function rewriteSvgBoxShadowToDropShadow(svgText) {CODE
LOWsrc/utils/transforms.helpers.js407export function hasBBoxAffectingTransform(el) {CODE
LOWsrc/utils/image.js15export async function inlineSingleBackgroundEntry(entry, options = {}) {CODE
LOWsrc/utils/clone.helpers.js211export function collectCustomPropsFromCSS(cssText) {CODE
LOWsrc/utils/clone.helpers.js286export async function getAccessibleIframeDocument(iframe, attempts = 3) {CODE
LOWsrc/utils/clone.helpers.js527export function createCheckboxRadioReplacement(node) {CODE
LOWsrc/utils/capture.helpers.js335export function neutralizeRootMarginCollapse(originalEl, cloneRoot, nodeMap) {CODE
LOWsrc/utils/capture.helpers.js385export function sanitizeAttributesForXHTML(root, opts = {}) {CODE
LOWsrc/utils/capture.helpers.js588function contributesToParentHeight(el) {CODE
LOWsrc/utils/capture.helpers.js825function collectScrollbarRulesFromRules(rules, seen = new Set()) {CODE
LOWsrc/modules/pseudo.js340function deriveCounterCtxForPseudo(node, pseudoStyle, baseCtx) {CODE
LOWsrc/modules/pseudo.js415function resolvePseudoContentAndIncs(node, pseudo, baseCtx, siblingCounters) {CODE
LOWsrc/modules/pictureResolver.js32export function quickProbeMayNeedPictureResolver(root, resolveLazySrc) {CODE
LOWsrc/modules/pictureResolver.js150export async function runPictureResolverBeforeClone(root, options = {}) {CODE
LOWsrc/modules/pictureResolver.js247 return async function undoPictureResolverMutations() {CODE
LOWsrc/modules/svgDefs.js13export function inlineExternalDefsAndSymbols(element, lookupRoot) {CODE
LOWsrc/modules/styles.js87function snapshotComputedStyleFull(style, options = {}) {CODE
LOWsrc/modules/styles.js313function usedWidthDiffersFromAvailable(el, cs) {CODE
LOWsrc/modules/styles.js391function normalizeInlineStyleToComputed(source, clone, computed) {CODE
LOWsrc/modules/compress.js174export async function compressClonedBackgrounds(clone, options, nodeMap = cache.session.nodeMap) {CODE
AI Slop Vocabulary6 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMdocs/sitemap.xml119 <url><loc>https://snapdom.dev/labs/webgl-seamless-dom/</loc><lastmod>2026-07-21</lastmod></url>CODE
MEDIUMdocs/labs/webgl-seamless-dom/index.html9 <link rel="canonical" href="https://snapdom.dev/labs/webgl-seamless-dom/" />CODE
MEDIUMdocs/labs/webgl-seamless-dom/index.html15 <meta property="og:url" content="https://snapdom.dev/labs/webgl-seamless-dom/" />CODE
MEDIUMdocs/labs/webgl-seamless-dom/index.html20 <script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Seamless DOM to CODE
MEDIUMdocs/labs/webgl-seamless-dom/index.html21 <script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@typCODE
MEDIUMsrc/modules/snapFetch.js270 // Final URL (with robust proxying) & credentialsCOMMENT
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOW__tests__/visual.demos.shared.js1// Visual regression suite for snapdom demos. Shared by the visual.demos.N.test.jsCOMMENT
LOW__tests__/visual.demos.shared.js21// points off-origin". Force a mode with `NETWORK_GATE=off|serial|skip`.COMMENT
LOW__tests__/visual.demos.shared.js41// when tests are registered, which is why this reading comes from the pre-run probe in theCOMMENT
LOW__tests__/visual.demos.shared.js61// Demos finish asynchronously in ways a fixed `wait` cannot cover: MathJax and KaTeXCOMMENT
LOW__tests__/visual.demos.shared.js121// because snapdom regressed, they fail because the payload never arrived, and the failureCOMMENT
LOW__tests__/snapdom.issue484.test.js1// #484 — `<span>` with `display:block` and an authored width lost that width.COMMENT
LOW__tests__/snapdom.issue486.test.js1// #486 — "the canvas animation cannot be captured".COMMENT
LOW__tests__/helpers/network-gate.js1// Browser side of the network gate: keeps a test from failing for a reason that hasCOMMENT
LOW__tests__/helpers/network-gate.js21// ...COMMENT
LOWpackages/plugin-template/index.js21 // Clone-phase hooks read options from ctx.options; export-phase hooks get them flattened on ctx.COMMENT
LOWpackages/plugin-template/index.js41COMMENT
LOWsrc/core/clone.js621 return falseCOMMENT
LOWsrc/exporters/toCanvas.js361 * }} optionsCOMMENT
LOWsrc/modules/styles.js421 try { computed = getComputedStyle(source) } catch { /* detached / cross-origin */ }COMMENT
LOWsrc/modules/styles.js641COMMENT