Repository Analysis

leptos-rs/leptos

Build fast web applications with Rust.

3.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of leptos-rs/leptos, a Rust project with 21,071 GitHub stars. SynthScan v2.0 examined 149,010 lines of code across 1222 source files, recording 583 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 3.8 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).

3.8
Adjusted Score
3.8
Raw Score
100%
Time Factor
2026-07-10
Last Push
21.1K
Stars
Rust
Language
149.0K
Lines of Code
1.2K
Files
583
Pattern Hits
2026-07-14
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 582

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 583 distinct pattern matches across 4 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.

Over-Commented Block574 hits · 556 pts
SeverityFileLineSnippetContext
LOWreactive_stores_macro/src/lib.rs21#[proc_macro_error]COMMENT
LOWreactive_stores_macro/src/lib.rs41/// whereCOMMENT
LOWreactive_stores_macro/src/lib.rs61/// T2: PatchField,COMMENT
LOWreactive_stores_macro/src/lib.rs81/// T3,COMMENT
LOW.config/nextest.toml1experimental = ["setup-scripts"]COMMENT
LOW.config/nextest.toml21# filter = "binary_id(leptos_axum::axum_integration)"COMMENT
LOWrouter_macro/tests/path.rs181 );COMMENT
LOWrouter_macro/tests/path.rs201// let _ = path!("/home/any*");COMMENT
LOWrouter_macro/src/lib.rs21/// is equivalent.COMMENT
LOWrouter_macro/src/lib.rs201/// ```rustCOMMENT
LOWrouter_macro/src/lib.rs221/// // this function will be lazy-loaded, concurrently with data()COMMENT
LOWleptos_hot_reload/src/parsing.rs1use rstml::node::{CustomNode, NodeElement, NodeName};COMMENT
LOWleptos_dom/.cargo/config.toml1# [build]COMMENT
LOWleptos_dom/examples/test-bench/src/main.rs121}COMMENT
LOWleptos_dom/examples/test-bench/src/main.rs141// }COMMENT
LOWleptos_dom/src/helpers.rs121#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]COMMENT
LOWleptos_dom/src/helpers.rs161}COMMENT
LOWleptos_dom/src/helpers.rs201 pub fn cancel(&self) {COMMENT
LOWleptos_dom/src/helpers.rs341/// fn DebouncedButton() -> impl IntoView {COMMENT
LOWleptos_dom/src/helpers.rs421/// Repeatedly calls the given function, with a delay of the given duration between calls.COMMENT
LOWleptos_dom/src/helpers.rs541/// ev, leptos_dom::helpers::window_event_listener, logging::log,COMMENT
LOWprojects/ory-kratos/Cargo.toml101# Optional. Can be over-ridden with the command line parameter --bin-featuresCOMMENT
LOWprojects/sitemap_axum/Cargo.toml101# The features to use when compiling the bin targetCOMMENT
LOWprojects/sitemap_axum/Cargo.toml121# The profile to use for the lib target when compiling for releaseCOMMENT
LOWprojects/hexagonal-architecture/Cargo.toml81COMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json1{COMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory funcCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json41 // "customConditions": [], /* Conditions to set in addition to the resolver-specific defauCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json61 // "importHelpers": true, /* Allow importing helper functions from tslib once per projectCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json81 // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlateCOMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts61 {COMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts81COMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts101 // webServer: {COMMENT
LOWprojects/session_auth_axum/Cargo.toml81# The port to use for automatic reload monitoringCOMMENT
LOWprojects/session_auth_axum/Cargo.toml101# The features to use when compiling the lib targetCOMMENT
LOWprojects/nginx-mpmc/app-1/Cargo.toml101# If the --no-default-features flag should be used when compiling the bin targetCOMMENT
LOWprojects/nginx-mpmc/shared-server-2/src/main.rs21#[cfg(not(feature = "ssr"))]COMMENT
LOWprojects/nginx-mpmc/app-2/Cargo.toml61COMMENT
LOWprojects/nginx-mpmc/app-2/Cargo.toml101bin-features = ["ssr"]COMMENT
LOWprojects/sso_auth_axum/Cargo.toml81# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.COMMENT
LOWprojects/openapi-openai-api-swagger-ui/Cargo.toml101# Optional. Defaults to false.COMMENT
LOW…api-openai-api-swagger-ui/end2end/playwright.config.ts61 {COMMENT
LOW…api-openai-api-swagger-ui/end2end/playwright.config.ts81COMMENT
LOWmeta/src/html.rs21/// This component takes no props, but can take any number of spread attributesCOMMENT
LOWmeta/src/meta_tags.rs1use crate::register;COMMENT
LOWmeta/src/meta_tags.rs21/// view! {COMMENT
LOWmeta/src/body.rs21/// This component takes no props, but can take any number of spread attributesCOMMENT
LOWmeta/src/lib.rs1#![deny(missing_docs)]COMMENT
LOWmeta/src/lib.rs21//! let (name, set_name) = create_signal("Alice".to_string());COMMENT
LOWmeta/src/style.rs1use crate::{register, OrDefaultNonce};COMMENT
LOWmeta/src/style.rs21/// </Style>COMMENT
LOWmeta/src/link.rs1use crate::register;COMMENT
LOWmeta/src/link.rs21/// href="myFont.woff2"COMMENT
LOWmeta/src/link.rs41 /// The [`fetchpriority`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-fetchpriority) attribuCOMMENT
LOWmeta/src/link.rs61 media: Option<Oco<'static, str>>,COMMENT
LOWmeta/src/title.rs181 #[inline(always)]COMMENT
LOWmeta/src/title.rs201/// view! {COMMENT
LOWmeta/src/title.rs221/// <main>COMMENT
LOWmeta/src/stylesheet.rs1use crate::register;COMMENT
LOWmeta/src/stylesheet.rs21/// view! {COMMENT
514 more matches not shown…
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWreactive_stores/src/lib.rs449 /// ## Return valueCOMMENT
LOWscripts/bump.sh23 # Check if any file in the package directory changed since the member's release commit or latest tag releaseCOMMENT
LOWscripts/update_nightly.sh16# Check if a date is provided as an argumentCOMMENT
LOW.github/workflows/run-cargo-make-task.yml253 # Check if the counter_isomorphic can be built with leptos_debuginfo cfg flag in release modeCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtachys/src/html/attribute/key.rs369 placeholder "placeholder",CODE
LOWexamples/parent_child/src/lib.rs38 "Lorem ipsum sit dolor amet."CODE
LOWexamples/router/src/lib.rs207 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
LOWexamples/router/src/lib.rs207 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMintegrations/axum/tests/axum_integration.rs241 // to not require using cargo-nextest setup scripts to prepare this. Essentially if this is doneCOMMENT