Repository Analysis

motiondivision/motion

A modern animation library for React and JavaScript

4.6 Likely human-written View on GitHub

Analysis Overview

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

4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-28
Last Push
33.0K
Stars
TypeScript
Language
169.7K
Lines of Code
1.7K
Files
504
Pattern Hits
2026-08-02
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 1LOW 503

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

Structural Annotation Overuse430 hits · 694 pts
SeverityFileLineSnippetContext
LOWplans/024-hover-double-start-during-press.md106### Step 1: Write the failing testCOMMENT
LOWplans/024-hover-double-start-during-press.md121### Step 2: Guard re-entry while a hover is activeCOMMENT
LOWplans/024-hover-double-start-during-press.md143### Step 3: LintCOMMENT
LOWplans/008-correct-box-shadow-single-parse.md85### Step 1: Export `buildTransformer` from the complex value moduleCOMMENT
LOWplans/008-correct-box-shadow-single-parse.md91### Step 2: Refactor `correctBoxShadow` to a single parseCOMMENT
LOWplans/008-correct-box-shadow-single-parse.md117### Step 3: Add one regression testCOMMENT
LOWplans/008-correct-box-shadow-single-parse.md123### Step 4: Full gatesCOMMENT
LOWplans/033-findspring-closed-form.md107### Step 1: Pin current behavior with a tolerance-based equivalence testCOMMENT
LOWplans/033-findspring-closed-form.md139### Step 2: Replace the solverCOMMENT
LOWplans/033-findspring-closed-form.md197### Step 3: Handle the exact-string toString testCOMMENT
LOWplans/033-findspring-closed-form.md205### Step 4: Full verification + size measurementCOMMENT
LOWplans/023-press-keyboard-listener-lifecycle.md112### Step 1: Write the failing testsCOMMENT
LOWplans/023-press-keyboard-listener-lifecycle.md122### Step 2: Remove keyup/blur listeners once the press resolvesCOMMENT
LOWplans/023-press-keyboard-listener-lifecycle.md158### Step 3: Register the focus listener with the gesture's optionsCOMMENT
LOWplans/026-inview-feature-stale-once.md96### Step 1: Write the failing testCOMMENT
LOWplans/026-inview-feature-stale-once.md111### Step 2: Read `once` fresh in the callbackCOMMENT
LOWplans/026-inview-feature-stale-once.md133### Step 3: Regression sweepCOMMENT
LOWplans/002-view-transition-target-resolution.md97### Step 1: Investigate and write the design note (no code yet)COMMENT
LOWplans/002-view-transition-target-resolution.md107### Step 2: Implement name assignment and resolutionCOMMENT
LOWplans/002-view-transition-target-resolution.md118### Step 3: Unit testsCOMMENT
LOWplans/002-view-transition-target-resolution.md124### Step 4: Playwright E2ECOMMENT
LOWplans/002-view-transition-target-resolution.md136### Step 5: Remove the TODOs and full gatesCOMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md108### Step 1: Extract the shared projection tree into `layout/layout-tree.ts`COMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md138### Step 2: Define `DragOptions` and the options adapterCOMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md192### Step 3: Implement `drag()`COMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md251### Step 4: Unit tests for the pure partsCOMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md267### Step 5: Cypress HTML fixtures + specsCOMMENT
LOWplans/020-vanilla-drag-on-shared-projection-tree.md281### Step 6: Full gateCOMMENT
LOWplans/007-ci-lint-gate-and-monorepo-lint-coverage.md73### Step 1: Add lint scriptsCOMMENT
LOWplans/007-ci-lint-gate-and-monorepo-lint-coverage.md83### Step 2: Fix surfaced violationsCOMMENT
LOWplans/007-ci-lint-gate-and-monorepo-lint-coverage.md96### Step 3: Add the CI lint jobCOMMENT
LOWplans/007-ci-lint-gate-and-monorepo-lint-coverage.md123### Step 4: Full-repo lint passCOMMENT
LOWplans/034-move-inview-to-motion-dom.md112### Step 1: Create the motion-dom module (verbatim move)COMMENT
LOWplans/034-move-inview-to-motion-dom.md142### Step 2: Unit-test the moved function in motion-domCOMMENT
LOWplans/034-move-inview-to-motion-dom.md157### Step 3: Repoint framer-motion and delete the old fileCOMMENT
LOWplans/034-move-inview-to-motion-dom.md165### Step 4: Confirm the public surface is intactCOMMENT
LOWplans/034-move-inview-to-motion-dom.md172### Step 5: Dedupe the threshold table in the React featureCOMMENT
LOWplans/034-move-inview-to-motion-dom.md178### Step 6: Full gatesCOMMENT
LOWplans/028-frameloop-same-step-cancel.md114### Step 1: Record baselinesCOMMENT
LOWplans/028-frameloop-same-step-cancel.md124### Step 2: Write the failing testsCOMMENT
LOWplans/028-frameloop-same-step-cancel.md162### Step 3: Fix `cancel`COMMENT
LOWplans/028-frameloop-same-step-cancel.md182### Step 4: Blast-radius verificationCOMMENT
LOWplans/032-spring-complex-value-nan-investigation.md80### Step 1: Obtain the reproductionCOMMENT
LOWplans/032-spring-complex-value-nan-investigation.md86### Step 2: Reproduce at the lowest layer that failsCOMMENT
LOWplans/032-spring-complex-value-nan-investigation.md96### Step 3: DiagnoseCOMMENT
LOWplans/032-spring-complex-value-nan-investigation.md100### Step 4: FixCOMMENT
LOWplans/032-spring-complex-value-nan-investigation.md106### Step 5: E2E confirmation (if the repro was unit-level)COMMENT
LOWplans/027-frameloop-exception-recovery.md219### Step 1: Record the baselineCOMMENT
LOWplans/027-frameloop-exception-recovery.md227### Step 2: Write the failing testsCOMMENT
LOWplans/027-frameloop-exception-recovery.md288### Step 3: Fix `render-step.ts` — step-level try/finallyCOMMENT
LOWplans/027-frameloop-exception-recovery.md329### Step 4: Fix `batcher.ts` — batch-level try/finally + flag gatingCOMMENT
LOWplans/027-frameloop-exception-recovery.md384### Step 5: Full verificationCOMMENT
LOWplans/037-scale-correctors-tree-shake-leak.md165### Step 1: Empty the eager registryCOMMENT
LOWplans/037-scale-correctors-tree-shake-leak.md176### Step 2: Create `default-scale-correctors.ts`COMMENT
LOWplans/037-scale-correctors-tree-shake-leak.md196### Step 3: Register from the projection nodeCOMMENT
LOWplans/037-scale-correctors-tree-shake-leak.md212### Step 4: Prove the leak is gone and behavior is intactCOMMENT
LOWplans/019-port-drag-pan-engine-to-motion-dom.md117### Step 1: Move the leaf helpers into motion-domCOMMENT
LOWplans/019-port-drag-pan-engine-to-motion-dom.md143### Step 2: Move constraints.tsCOMMENT
LOWplans/019-port-drag-pan-engine-to-motion-dom.md149### Step 3: Move PanSessionCOMMENT
LOWplans/019-port-drag-pan-engine-to-motion-dom.md155### Step 4: Move VisualElementDragControls with the options-resolver seamCOMMENT
370 more matches not shown…
Over-Commented Block36 hits · 36 pts
SeverityFileLineSnippetContext
LOWpackages/motion/src/react.ts1// Re-export everything from framer-motion.COMMENT
LOW…/src/projection/geometry/__tests__/delta-apply.test.ts81// }COMMENT
LOW…/src/projection/geometry/__tests__/delta-apply.test.ts101// })COMMENT
LOWpackages/framer-motion/cypress/plugins/index.js1/// <reference types="cypress" />COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts121})COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts141// height: 50,COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts161// .get("#item-child")COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts181// width: 600,COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts201// .should(([$box]: any) => {COMMENT
LOW…ypress/integration/layout-shared-lightbox-crossfade.ts221// })COMMENT
LOW…ges/framer-motion/cypress/integration/layout-shared.ts581 // width: 100,COMMENT
LOWpackages/framer-motion/cypress/integration/drag.ts141 // .trigger("pointerdown", 5, 5, { force: true })COMMENT
LOWpackages/framer-motion/cypress/integration/drag.ts501 // .wait(100)COMMENT
LOWpackages/framer-motion/cypress/integration/drag-svg.ts61 const draggable = $draggable[0] as HTMLDivElementCOMMENT
LOWpackages/framer-motion/cypress/integration/drag-svg.ts81 // // .trigger("pointermove", 200, 200, { force: true })COMMENT
LOWpackages/framer-motion/cypress/integration/drag-svg.ts101 // .wait(50)COMMENT
LOWpackages/framer-motion/cypress/integration/drag-svg.ts221 expect(top).to.equal(290)COMMENT
LOWpackages/framer-motion/cypress/integration/drag-svg.ts241 // const draggable = $draggable[0] as HTMLDivElementCOMMENT
LOW…tion/cypress/integration/use-scroll-target-late-ref.ts1describe("useScroll with target ref hydrated after useScroll's own effects", () => {COMMENT
LOW…er-motion/cypress/integration/layout-percent-x-flex.ts21 // animate={{ x: 0 }}, latestValues.x = "100%"COMMENT
LOWpackages/framer-motion/cypress/support/commands.js1// ***********************************************COMMENT
LOWpackages/framer-motion/cypress/support/commands.js21// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })COMMENT
LOW…on/src/animation/animators/waapi/__tests__/polyfill.js1// Copyright 2014 Google Inc. All rights reserved.COMMENT
LOW.github/workflows/claude.yml41 actions: readCOMMENT
LOWdev/next/next-env.d.ts1/// <reference types="next" />COMMENT
LOWdev/html/public/benchmarks/warm-start-gsap.html61 gsap.to(box, {COMMENT
LOW…ublic/projection/shared-promote-new-mix-interrupt.html81 // matchVisibility(newBox, "visible")COMMENT
LOW…ublic/projection/shared-promote-new-mix-interrupt.html101 // matchVisibility(box, "visible")COMMENT
LOWdev/html/public/projection/animate-relative.html81 parent.classList.add("b")COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html301 // openControls.time = 0.5COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html321 // const midImage = {COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html341 // const actualModalTitle = modalTitleContainer.getBoundingClientRect()COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html361 // top: actualModalImage.top,COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html381 // // Check at t=1 (end)COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html401 // width: endModalImageContainer.width,COMMENT
LOW…lic/animate-layout/shared-element-nested-children.html421 // right: finalCardContentBox.right,COMMENT
Hyper-Verbose Identifiers33 hits · 33 pts
SeverityFileLineSnippetContext
LOW…otion-dom/src/render/svg/utils/scrape-motion-values.ts7export function scrapeMotionValuesFromProps(CODE
LOWpackages/motion-dom/src/render/utils/motion-values.ts10export function updateMotionValuesFromProps(CODE
LOWpackages/motion-dom/src/render/utils/setters.ts28function resolveFinalValueInKeyframes(CODE
LOW…tion-dom/src/render/html/utils/scrape-motion-values.ts6export function scrapeMotionValuesFromProps(CODE
LOW…n-dom/src/animation/keyframes/utils/unit-conversion.ts25export function removeNonTranslationalTransform(visualElement: WithRender) {CODE
LOW…/src/animation/keyframes/utils/make-none-animatable.ts14export function makeNoneKeyframesAnimatable(CODE
LOW…ion-dom/src/animation/__tests__/GroupAnimation.test.ts5function createTestAnimationControls(CODE
LOW…dom/src/gestures/press/utils/is-keyboard-accessible.ts13export function isElementKeyboardAccessible(element: Element) {CODE
LOWpackages/motion-dom/src/view/utils/assign-names.ts78export function assignViewTransitionNames(CODE
LOWpackages/motion-dom/src/view/utils/assign-names.ts177export function releaseViewTransitionNames(CODE
LOWpackages/motion-dom/src/view/utils/get-layer-info.ts1export function getViewAnimationLayerInfo(pseudoElement: string) {CODE
LOWpackages/motion-dom/src/resize/handle-window.ts7function createWindowResizeHandler() {CODE
LOW…tion-dom/src/projection/node/create-projection-node.ts111function cancelTreeOptimisedTransformAnimations(CODE
LOW…tion-dom/src/projection/node/create-projection-node.ts2353function ensureDraggedNodesSnapshotted(node: IProjectionNode) {CODE
LOW…tion-dom/src/projection/node/create-projection-node.ts2445function shouldAnimatePositionOnly(CODE
LOW…kages/framer-motion/cypress/integration/drag-nested.ts168function testNestedDragConstraints(CODE
LOW…kages/framer-motion/cypress/integration/drag-nested.ts276function testNestedDragConstraintsAndAnimation(CODE
LOW…ages/framer-motion/src/context/MotionContext/create.ts22function variantLabelsAsDependency(CODE
LOW…-motion/src/render/dom/scroll/utils/offset-to-range.ts69export function offsetToViewTimelineRange(CODE
LOW…er-motion/src/animation/utils/create-visual-element.ts35export function createObjectVisualElement(subject: Object) {CODE
LOW…/framer-motion/src/animation/optimized-appear/start.ts37function resumeSuspendedAnimations() {CODE
LOW…/framer-motion/src/animation/optimized-appear/start.ts45export function startOptimizedAppearAnimation(CODE
LOW…ramer-motion/src/animation/optimized-appear/handoff.ts5export function handoffOptimizedAppearAnimation(CODE
LOWpackages/framer-motion/src/animation/sequence/create.ts43export function createAnimationsFromSequence(CODE
LOW…ages/framer-motion/src/utils/use-instant-transition.ts43export function disableInstantTransitions() {CODE
LOWpackages/framer-motion/src/motion/index.tsx204function getProjectionFunctionality(props: MotionProps) {CODE
LOW…kages/framer-motion/src/motion/features/definitions.ts55export function getInitializedFeatureDefinitions(): Partial<FeatureDefinitions> {CODE
LOW…amer-motion/src/motion/utils/should-inherit-variant.ts3export function checkShouldInheritVariant({CODE
LOW…-motion/src/gestures/drag/VisualElementDragControls.ts849export function expectsResolvedDragConstraints({CODE
LOW…s/framer-motion/src/gestures/drag/utils/constraints.ts62export function calcRelativeAxisConstraints(CODE
LOW…s/framer-motion/src/gestures/drag/utils/constraints.ts93export function calcViewportAxisConstraints(CODE
LOW…s/framer-motion/src/gestures/drag/utils/constraints.ts148export function calcProgressWithinConstraints(CODE
LOW…motion/src/projection/use-instant-layout-transition.ts3export function useInstantLayoutTransition(): (CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…nts/AnimatePresence/__tests__/AnimatePresence.test.tsx1839 // Step 1: trigger exit. Child still renders motion.div, soCOMMENT
LOW…nts/AnimatePresence/__tests__/AnimatePresence.test.tsx1844 // Step 2: child internally re-renders without the motionCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/motion-dom/src/node/types.ts688 * See {@link https://motion.dev/docs/react-motion-component#dragtransition | Inertia} for all properties you can usCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdev/react/src/examples/Layout-Projection-scale-size.tsx5It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layCODE
LOW…eact/src/examples/Layout-Projection-scale-position.tsx5It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layCODE