Build fast web applications with Rust.
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | reactive_stores_macro/src/lib.rs | 21 | #[proc_macro_error] | COMMENT |
| LOW | reactive_stores_macro/src/lib.rs | 41 | /// where | COMMENT |
| LOW | reactive_stores_macro/src/lib.rs | 61 | /// T2: PatchField, | COMMENT |
| LOW | reactive_stores_macro/src/lib.rs | 81 | /// T3, | COMMENT |
| LOW | .config/nextest.toml | 1 | experimental = ["setup-scripts"] | COMMENT |
| LOW | .config/nextest.toml | 21 | # filter = "binary_id(leptos_axum::axum_integration)" | COMMENT |
| LOW | router_macro/tests/path.rs | 181 | ); | COMMENT |
| LOW | router_macro/tests/path.rs | 201 | // let _ = path!("/home/any*"); | COMMENT |
| LOW | router_macro/src/lib.rs | 21 | /// is equivalent. | COMMENT |
| LOW | router_macro/src/lib.rs | 201 | /// ```rust | COMMENT |
| LOW | router_macro/src/lib.rs | 221 | /// // this function will be lazy-loaded, concurrently with data() | COMMENT |
| LOW | leptos_hot_reload/src/parsing.rs | 1 | use rstml::node::{CustomNode, NodeElement, NodeName}; | COMMENT |
| LOW | leptos_dom/.cargo/config.toml | 1 | # [build] | COMMENT |
| LOW | leptos_dom/examples/test-bench/src/main.rs | 121 | } | COMMENT |
| LOW | leptos_dom/examples/test-bench/src/main.rs | 141 | // } | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 121 | #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 161 | } | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 201 | pub fn cancel(&self) { | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 341 | /// fn DebouncedButton() -> impl IntoView { | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 421 | /// Repeatedly calls the given function, with a delay of the given duration between calls. | COMMENT |
| LOW | leptos_dom/src/helpers.rs | 541 | /// ev, leptos_dom::helpers::window_event_listener, logging::log, | COMMENT |
| LOW | projects/ory-kratos/Cargo.toml | 101 | # Optional. Can be over-ridden with the command line parameter --bin-features | COMMENT |
| LOW | projects/sitemap_axum/Cargo.toml | 101 | # The features to use when compiling the bin target | COMMENT |
| LOW | projects/sitemap_axum/Cargo.toml | 121 | # The profile to use for the lib target when compiling for release | COMMENT |
| LOW | projects/hexagonal-architecture/Cargo.toml | 81 | COMMENT | |
| LOW | projects/hexagonal-architecture/end2end/tsconfig.json | 1 | { | COMMENT |
| LOW | projects/hexagonal-architecture/end2end/tsconfig.json | 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory func | COMMENT |
| LOW | projects/hexagonal-architecture/end2end/tsconfig.json | 41 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defau | COMMENT |
| LOW | projects/hexagonal-architecture/end2end/tsconfig.json | 61 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project | COMMENT |
| LOW | projects/hexagonal-architecture/end2end/tsconfig.json | 81 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlate | COMMENT |
| LOW | …ts/hexagonal-architecture/end2end/playwright.config.ts | 61 | { | COMMENT |
| LOW | …ts/hexagonal-architecture/end2end/playwright.config.ts | 81 | COMMENT | |
| LOW | …ts/hexagonal-architecture/end2end/playwright.config.ts | 101 | // webServer: { | COMMENT |
| LOW | projects/session_auth_axum/Cargo.toml | 81 | # The port to use for automatic reload monitoring | COMMENT |
| LOW | projects/session_auth_axum/Cargo.toml | 101 | # The features to use when compiling the lib target | COMMENT |
| LOW | projects/nginx-mpmc/app-1/Cargo.toml | 101 | # If the --no-default-features flag should be used when compiling the bin target | COMMENT |
| LOW | projects/nginx-mpmc/shared-server-2/src/main.rs | 21 | #[cfg(not(feature = "ssr"))] | COMMENT |
| LOW | projects/nginx-mpmc/app-2/Cargo.toml | 61 | COMMENT | |
| LOW | projects/nginx-mpmc/app-2/Cargo.toml | 101 | bin-features = ["ssr"] | COMMENT |
| LOW | projects/sso_auth_axum/Cargo.toml | 81 | # The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. | COMMENT |
| LOW | projects/openapi-openai-api-swagger-ui/Cargo.toml | 101 | # Optional. Defaults to false. | COMMENT |
| LOW | …api-openai-api-swagger-ui/end2end/playwright.config.ts | 61 | { | COMMENT |
| LOW | …api-openai-api-swagger-ui/end2end/playwright.config.ts | 81 | COMMENT | |
| LOW | meta/src/html.rs | 21 | /// This component takes no props, but can take any number of spread attributes | COMMENT |
| LOW | meta/src/meta_tags.rs | 1 | use crate::register; | COMMENT |
| LOW | meta/src/meta_tags.rs | 21 | /// view! { | COMMENT |
| LOW | meta/src/body.rs | 21 | /// This component takes no props, but can take any number of spread attributes | COMMENT |
| LOW | meta/src/lib.rs | 1 | #![deny(missing_docs)] | COMMENT |
| LOW | meta/src/lib.rs | 21 | //! let (name, set_name) = create_signal("Alice".to_string()); | COMMENT |
| LOW | meta/src/style.rs | 1 | use crate::{register, OrDefaultNonce}; | COMMENT |
| LOW | meta/src/style.rs | 21 | /// </Style> | COMMENT |
| LOW | meta/src/link.rs | 1 | use crate::register; | COMMENT |
| LOW | meta/src/link.rs | 21 | /// href="myFont.woff2" | COMMENT |
| LOW | meta/src/link.rs | 41 | /// The [`fetchpriority`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-fetchpriority) attribu | COMMENT |
| LOW | meta/src/link.rs | 61 | media: Option<Oco<'static, str>>, | COMMENT |
| LOW | meta/src/title.rs | 181 | #[inline(always)] | COMMENT |
| LOW | meta/src/title.rs | 201 | /// view! { | COMMENT |
| LOW | meta/src/title.rs | 221 | /// <main> | COMMENT |
| LOW | meta/src/stylesheet.rs | 1 | use crate::register; | COMMENT |
| LOW | meta/src/stylesheet.rs | 21 | /// view! { | COMMENT |
| 514 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | reactive_stores/src/lib.rs | 449 | /// ## Return value | COMMENT |
| LOW | scripts/bump.sh | 23 | # Check if any file in the package directory changed since the member's release commit or latest tag release | COMMENT |
| LOW | scripts/update_nightly.sh | 16 | # Check if a date is provided as an argument | COMMENT |
| LOW | .github/workflows/run-cargo-make-task.yml | 253 | # Check if the counter_isomorphic can be built with leptos_debuginfo cfg flag in release mode | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tachys/src/html/attribute/key.rs | 369 | placeholder "placeholder", | CODE |
| LOW | examples/parent_child/src/lib.rs | 38 | "Lorem ipsum sit dolor amet." | CODE |
| LOW | examples/router/src/lib.rs | 207 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW | examples/router/src/lib.rs | 207 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | integrations/axum/tests/axum_integration.rs | 241 | // to not require using cargo-nextest setup scripts to prepare this. Essentially if this is done | COMMENT |