A modern animation library for React and JavaScript
This report presents the forensic synthetic code analysis of motiondivision/motion, a TypeScript project with 33,042 GitHub stars. SynthScan v2.0 examined 169,721 lines of code across 1682 source files, recording 504 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 4.6 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 504 distinct pattern matches across 6 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 |
|---|---|---|---|---|
| LOW | plans/024-hover-double-start-during-press.md | 106 | ### Step 1: Write the failing test | COMMENT |
| LOW | plans/024-hover-double-start-during-press.md | 121 | ### Step 2: Guard re-entry while a hover is active | COMMENT |
| LOW | plans/024-hover-double-start-during-press.md | 143 | ### Step 3: Lint | COMMENT |
| LOW | plans/008-correct-box-shadow-single-parse.md | 85 | ### Step 1: Export `buildTransformer` from the complex value module | COMMENT |
| LOW | plans/008-correct-box-shadow-single-parse.md | 91 | ### Step 2: Refactor `correctBoxShadow` to a single parse | COMMENT |
| LOW | plans/008-correct-box-shadow-single-parse.md | 117 | ### Step 3: Add one regression test | COMMENT |
| LOW | plans/008-correct-box-shadow-single-parse.md | 123 | ### Step 4: Full gates | COMMENT |
| LOW | plans/033-findspring-closed-form.md | 107 | ### Step 1: Pin current behavior with a tolerance-based equivalence test | COMMENT |
| LOW | plans/033-findspring-closed-form.md | 139 | ### Step 2: Replace the solver | COMMENT |
| LOW | plans/033-findspring-closed-form.md | 197 | ### Step 3: Handle the exact-string toString test | COMMENT |
| LOW | plans/033-findspring-closed-form.md | 205 | ### Step 4: Full verification + size measurement | COMMENT |
| LOW | plans/023-press-keyboard-listener-lifecycle.md | 112 | ### Step 1: Write the failing tests | COMMENT |
| LOW | plans/023-press-keyboard-listener-lifecycle.md | 122 | ### Step 2: Remove keyup/blur listeners once the press resolves | COMMENT |
| LOW | plans/023-press-keyboard-listener-lifecycle.md | 158 | ### Step 3: Register the focus listener with the gesture's options | COMMENT |
| LOW | plans/026-inview-feature-stale-once.md | 96 | ### Step 1: Write the failing test | COMMENT |
| LOW | plans/026-inview-feature-stale-once.md | 111 | ### Step 2: Read `once` fresh in the callback | COMMENT |
| LOW | plans/026-inview-feature-stale-once.md | 133 | ### Step 3: Regression sweep | COMMENT |
| LOW | plans/002-view-transition-target-resolution.md | 97 | ### Step 1: Investigate and write the design note (no code yet) | COMMENT |
| LOW | plans/002-view-transition-target-resolution.md | 107 | ### Step 2: Implement name assignment and resolution | COMMENT |
| LOW | plans/002-view-transition-target-resolution.md | 118 | ### Step 3: Unit tests | COMMENT |
| LOW | plans/002-view-transition-target-resolution.md | 124 | ### Step 4: Playwright E2E | COMMENT |
| LOW | plans/002-view-transition-target-resolution.md | 136 | ### Step 5: Remove the TODOs and full gates | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 108 | ### Step 1: Extract the shared projection tree into `layout/layout-tree.ts` | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 138 | ### Step 2: Define `DragOptions` and the options adapter | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 192 | ### Step 3: Implement `drag()` | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 251 | ### Step 4: Unit tests for the pure parts | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 267 | ### Step 5: Cypress HTML fixtures + specs | COMMENT |
| LOW | plans/020-vanilla-drag-on-shared-projection-tree.md | 281 | ### Step 6: Full gate | COMMENT |
| LOW | plans/007-ci-lint-gate-and-monorepo-lint-coverage.md | 73 | ### Step 1: Add lint scripts | COMMENT |
| LOW | plans/007-ci-lint-gate-and-monorepo-lint-coverage.md | 83 | ### Step 2: Fix surfaced violations | COMMENT |
| LOW | plans/007-ci-lint-gate-and-monorepo-lint-coverage.md | 96 | ### Step 3: Add the CI lint job | COMMENT |
| LOW | plans/007-ci-lint-gate-and-monorepo-lint-coverage.md | 123 | ### Step 4: Full-repo lint pass | COMMENT |
| LOW | plans/034-move-inview-to-motion-dom.md | 112 | ### Step 1: Create the motion-dom module (verbatim move) | COMMENT |
| LOW | plans/034-move-inview-to-motion-dom.md | 142 | ### Step 2: Unit-test the moved function in motion-dom | COMMENT |
| LOW⚡ | plans/034-move-inview-to-motion-dom.md | 157 | ### Step 3: Repoint framer-motion and delete the old file | COMMENT |
| LOW⚡ | plans/034-move-inview-to-motion-dom.md | 165 | ### Step 4: Confirm the public surface is intact | COMMENT |
| LOW⚡ | plans/034-move-inview-to-motion-dom.md | 172 | ### Step 5: Dedupe the threshold table in the React feature | COMMENT |
| LOW⚡ | plans/034-move-inview-to-motion-dom.md | 178 | ### Step 6: Full gates | COMMENT |
| LOW | plans/028-frameloop-same-step-cancel.md | 114 | ### Step 1: Record baselines | COMMENT |
| LOW | plans/028-frameloop-same-step-cancel.md | 124 | ### Step 2: Write the failing tests | COMMENT |
| LOW | plans/028-frameloop-same-step-cancel.md | 162 | ### Step 3: Fix `cancel` | COMMENT |
| LOW | plans/028-frameloop-same-step-cancel.md | 182 | ### Step 4: Blast-radius verification | COMMENT |
| LOW⚡ | plans/032-spring-complex-value-nan-investigation.md | 80 | ### Step 1: Obtain the reproduction | COMMENT |
| LOW⚡ | plans/032-spring-complex-value-nan-investigation.md | 86 | ### Step 2: Reproduce at the lowest layer that fails | COMMENT |
| LOW⚡ | plans/032-spring-complex-value-nan-investigation.md | 96 | ### Step 3: Diagnose | COMMENT |
| LOW⚡ | plans/032-spring-complex-value-nan-investigation.md | 100 | ### Step 4: Fix | COMMENT |
| LOW⚡ | plans/032-spring-complex-value-nan-investigation.md | 106 | ### Step 5: E2E confirmation (if the repro was unit-level) | COMMENT |
| LOW | plans/027-frameloop-exception-recovery.md | 219 | ### Step 1: Record the baseline | COMMENT |
| LOW | plans/027-frameloop-exception-recovery.md | 227 | ### Step 2: Write the failing tests | COMMENT |
| LOW | plans/027-frameloop-exception-recovery.md | 288 | ### Step 3: Fix `render-step.ts` — step-level try/finally | COMMENT |
| LOW | plans/027-frameloop-exception-recovery.md | 329 | ### Step 4: Fix `batcher.ts` — batch-level try/finally + flag gating | COMMENT |
| LOW | plans/027-frameloop-exception-recovery.md | 384 | ### Step 5: Full verification | COMMENT |
| LOW | plans/037-scale-correctors-tree-shake-leak.md | 165 | ### Step 1: Empty the eager registry | COMMENT |
| LOW | plans/037-scale-correctors-tree-shake-leak.md | 176 | ### Step 2: Create `default-scale-correctors.ts` | COMMENT |
| LOW | plans/037-scale-correctors-tree-shake-leak.md | 196 | ### Step 3: Register from the projection node | COMMENT |
| LOW | plans/037-scale-correctors-tree-shake-leak.md | 212 | ### Step 4: Prove the leak is gone and behavior is intact | COMMENT |
| LOW | plans/019-port-drag-pan-engine-to-motion-dom.md | 117 | ### Step 1: Move the leaf helpers into motion-dom | COMMENT |
| LOW⚡ | plans/019-port-drag-pan-engine-to-motion-dom.md | 143 | ### Step 2: Move constraints.ts | COMMENT |
| LOW⚡ | plans/019-port-drag-pan-engine-to-motion-dom.md | 149 | ### Step 3: Move PanSession | COMMENT |
| LOW⚡ | plans/019-port-drag-pan-engine-to-motion-dom.md | 155 | ### Step 4: Move VisualElementDragControls with the options-resolver seam | COMMENT |
| 370 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/motion/src/react.ts | 1 | // Re-export everything from framer-motion. | COMMENT |
| LOW | …/src/projection/geometry/__tests__/delta-apply.test.ts | 81 | // } | COMMENT |
| LOW | …/src/projection/geometry/__tests__/delta-apply.test.ts | 101 | // }) | COMMENT |
| LOW | packages/framer-motion/cypress/plugins/index.js | 1 | /// <reference types="cypress" /> | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 121 | }) | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 141 | // height: 50, | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 161 | // .get("#item-child") | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 181 | // width: 600, | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 201 | // .should(([$box]: any) => { | COMMENT |
| LOW | …ypress/integration/layout-shared-lightbox-crossfade.ts | 221 | // }) | COMMENT |
| LOW | …ges/framer-motion/cypress/integration/layout-shared.ts | 581 | // width: 100, | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag.ts | 141 | // .trigger("pointerdown", 5, 5, { force: true }) | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag.ts | 501 | // .wait(100) | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag-svg.ts | 61 | const draggable = $draggable[0] as HTMLDivElement | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag-svg.ts | 81 | // // .trigger("pointermove", 200, 200, { force: true }) | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag-svg.ts | 101 | // .wait(50) | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag-svg.ts | 221 | expect(top).to.equal(290) | COMMENT |
| LOW | packages/framer-motion/cypress/integration/drag-svg.ts | 241 | // const draggable = $draggable[0] as HTMLDivElement | COMMENT |
| LOW | …tion/cypress/integration/use-scroll-target-late-ref.ts | 1 | describe("useScroll with target ref hydrated after useScroll's own effects", () => { | COMMENT |
| LOW | …er-motion/cypress/integration/layout-percent-x-flex.ts | 21 | // animate={{ x: 0 }}, latestValues.x = "100%" | COMMENT |
| LOW | packages/framer-motion/cypress/support/commands.js | 1 | // *********************************************** | COMMENT |
| LOW | packages/framer-motion/cypress/support/commands.js | 21 | // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) | COMMENT |
| LOW | …on/src/animation/animators/waapi/__tests__/polyfill.js | 1 | // Copyright 2014 Google Inc. All rights reserved. | COMMENT |
| LOW | .github/workflows/claude.yml | 41 | actions: read | COMMENT |
| LOW | dev/next/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | dev/html/public/benchmarks/warm-start-gsap.html | 61 | gsap.to(box, { | COMMENT |
| LOW | …ublic/projection/shared-promote-new-mix-interrupt.html | 81 | // matchVisibility(newBox, "visible") | COMMENT |
| LOW | …ublic/projection/shared-promote-new-mix-interrupt.html | 101 | // matchVisibility(box, "visible") | COMMENT |
| LOW | dev/html/public/projection/animate-relative.html | 81 | parent.classList.add("b") | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 301 | // openControls.time = 0.5 | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 321 | // const midImage = { | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 341 | // const actualModalTitle = modalTitleContainer.getBoundingClientRect() | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 361 | // top: actualModalImage.top, | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 381 | // // Check at t=1 (end) | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 401 | // width: endModalImageContainer.width, | COMMENT |
| LOW | …lic/animate-layout/shared-element-nested-children.html | 421 | // right: finalCardContentBox.right, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …otion-dom/src/render/svg/utils/scrape-motion-values.ts | 7 | export function scrapeMotionValuesFromProps( | CODE |
| LOW | packages/motion-dom/src/render/utils/motion-values.ts | 10 | export function updateMotionValuesFromProps( | CODE |
| LOW | packages/motion-dom/src/render/utils/setters.ts | 28 | function resolveFinalValueInKeyframes( | CODE |
| LOW | …tion-dom/src/render/html/utils/scrape-motion-values.ts | 6 | export function scrapeMotionValuesFromProps( | CODE |
| LOW | …n-dom/src/animation/keyframes/utils/unit-conversion.ts | 25 | export function removeNonTranslationalTransform(visualElement: WithRender) { | CODE |
| LOW | …/src/animation/keyframes/utils/make-none-animatable.ts | 14 | export function makeNoneKeyframesAnimatable( | CODE |
| LOW | …ion-dom/src/animation/__tests__/GroupAnimation.test.ts | 5 | function createTestAnimationControls( | CODE |
| LOW | …dom/src/gestures/press/utils/is-keyboard-accessible.ts | 13 | export function isElementKeyboardAccessible(element: Element) { | CODE |
| LOW | packages/motion-dom/src/view/utils/assign-names.ts | 78 | export function assignViewTransitionNames( | CODE |
| LOW | packages/motion-dom/src/view/utils/assign-names.ts | 177 | export function releaseViewTransitionNames( | CODE |
| LOW | packages/motion-dom/src/view/utils/get-layer-info.ts | 1 | export function getViewAnimationLayerInfo(pseudoElement: string) { | CODE |
| LOW | packages/motion-dom/src/resize/handle-window.ts | 7 | function createWindowResizeHandler() { | CODE |
| LOW | …tion-dom/src/projection/node/create-projection-node.ts | 111 | function cancelTreeOptimisedTransformAnimations( | CODE |
| LOW | …tion-dom/src/projection/node/create-projection-node.ts | 2353 | function ensureDraggedNodesSnapshotted(node: IProjectionNode) { | CODE |
| LOW | …tion-dom/src/projection/node/create-projection-node.ts | 2445 | function shouldAnimatePositionOnly( | CODE |
| LOW | …kages/framer-motion/cypress/integration/drag-nested.ts | 168 | function testNestedDragConstraints( | CODE |
| LOW | …kages/framer-motion/cypress/integration/drag-nested.ts | 276 | function testNestedDragConstraintsAndAnimation( | CODE |
| LOW | …ages/framer-motion/src/context/MotionContext/create.ts | 22 | function variantLabelsAsDependency( | CODE |
| LOW | …-motion/src/render/dom/scroll/utils/offset-to-range.ts | 69 | export function offsetToViewTimelineRange( | CODE |
| LOW | …er-motion/src/animation/utils/create-visual-element.ts | 35 | export function createObjectVisualElement(subject: Object) { | CODE |
| LOW | …/framer-motion/src/animation/optimized-appear/start.ts | 37 | function resumeSuspendedAnimations() { | CODE |
| LOW | …/framer-motion/src/animation/optimized-appear/start.ts | 45 | export function startOptimizedAppearAnimation( | CODE |
| LOW | …ramer-motion/src/animation/optimized-appear/handoff.ts | 5 | export function handoffOptimizedAppearAnimation( | CODE |
| LOW | packages/framer-motion/src/animation/sequence/create.ts | 43 | export function createAnimationsFromSequence( | CODE |
| LOW | …ages/framer-motion/src/utils/use-instant-transition.ts | 43 | export function disableInstantTransitions() { | CODE |
| LOW | packages/framer-motion/src/motion/index.tsx | 204 | function getProjectionFunctionality(props: MotionProps) { | CODE |
| LOW | …kages/framer-motion/src/motion/features/definitions.ts | 55 | export function getInitializedFeatureDefinitions(): Partial<FeatureDefinitions> { | CODE |
| LOW | …amer-motion/src/motion/utils/should-inherit-variant.ts | 3 | export function checkShouldInheritVariant({ | CODE |
| LOW | …-motion/src/gestures/drag/VisualElementDragControls.ts | 849 | export function expectsResolvedDragConstraints({ | CODE |
| LOW | …s/framer-motion/src/gestures/drag/utils/constraints.ts | 62 | export function calcRelativeAxisConstraints( | CODE |
| LOW | …s/framer-motion/src/gestures/drag/utils/constraints.ts | 93 | export function calcViewportAxisConstraints( | CODE |
| LOW | …s/framer-motion/src/gestures/drag/utils/constraints.ts | 148 | export function calcProgressWithinConstraints( | CODE |
| LOW | …motion/src/projection/use-instant-layout-transition.ts | 3 | export function useInstantLayoutTransition(): ( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …nts/AnimatePresence/__tests__/AnimatePresence.test.tsx | 1839 | // Step 1: trigger exit. Child still renders motion.div, so | COMMENT |
| LOW⚡ | …nts/AnimatePresence/__tests__/AnimatePresence.test.tsx | 1844 | // Step 2: child internally re-renders without the motion | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/motion-dom/src/node/types.ts | 688 | * See {@link https://motion.dev/docs/react-motion-component#dragtransition | Inertia} for all properties you can us | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev/react/src/examples/Layout-Projection-scale-size.tsx | 5 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its lay | CODE |
| LOW | …eact/src/examples/Layout-Projection-scale-position.tsx | 5 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its lay | CODE |