Repository Analysis

DioxusLabs/dioxus

Fullstack app framework for web, desktop, and mobile.

5.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of DioxusLabs/dioxus, a Rust project with 36,712 GitHub stars. SynthScan v2.0 examined 196,339 lines of code across 1200 source files, recording 853 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 5.2 places this repository in the Low AI signal 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).

5.2
Adjusted Score
5.2
Raw Score
100%
Time Factor
2026-07-11
Last Push
36.7K
Stars
Rust
Language
196.3K
Lines of Code
1.2K
Files
853
Pattern Hits
2026-07-14
Scan Date
0.01
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 12HIGH 1MEDIUM 21LOW 819

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 853 distinct pattern matches across 12 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 Block788 hits · 764 pts
SeverityFileLineSnippetContext
LOWnotes/architecture/11-NATIVE-PLUGIN-FFI.md41## Phase 1: The MacroCOMMENT
LOWexamples/01-app-demos/todomvc_store.rs1//! The typical TodoMVC app, implemented in Dioxus with stores. Stores let usCOMMENT
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs1// Copyright 2019-2023 Tauri Programme within The Commons ConservancyCOMMENT
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs21COMMENT
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs41 ///COMMENT
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs81 /// Accuracy level of the latitude and longitude coordinates in meters.COMMENT
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs101 pub coords: Coordinates,COMMENT
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs1#![allow(non_snake_case)]COMMENT
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs21// Note: Permissions are now declared in Dioxus.toml using the unified manifest system.COMMENT
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs41///COMMENT
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs141 // =========================================================================COMMENT
LOW…rc/ios/widget/Sources/LocationActivityAttributes.swift1// Shared ActivityAttributes for Live ActivitiesCOMMENT
LOW…rc/ios/plugin/Sources/LocationActivityAttributes.swift1// Shared ActivityAttributes for Live ActivitiesCOMMENT
LOWexamples/08-apis/logging.rs1//! Dioxus ships out-of-the-box with tracing hooks that integrate with the Dioxus-CLI.COMMENT
LOWexamples/09-reference/rsx_usage.rs1//! A tour of the rsx! macroCOMMENT
LOWexamples/09-reference/rsx_usage.rs21//!COMMENT
LOWexamples/06-routing/hash_fragment_state.rs1//! This example shows how to use the hash segment to store state in the url.COMMENT
LOWexamples/06-routing/router.rs21COMMENT
LOWexamples/06-routing/router.rs41 #[route("/:name")]COMMENT
LOWexamples/06-routing/query_segment_search.rs1//! This example shows how to access and use query segments present in an url on the web.COMMENT
LOWexamples/07-fullstack/handling_errors.rs1//! An example of handling errors from server functions.COMMENT
LOWexamples/07-fullstack/streaming_file_upload.rs21 // Dioxus provides the `FileStream` type for efficiently uploading files in a streaming fashion.COMMENT
LOWexamples/07-fullstack/server_sent_events.rs1//! This example demonstrates server-sent events (SSE) using Dioxus Fullstack.COMMENT
LOWexamples/07-fullstack/custom_axum_serve.rs1//! This example demonstrates how to use `dioxus::serve` with a custom Axum router.COMMENT
LOWexamples/07-fullstack/websocket.rs1//! This example showcases the built-in websocket functionality in Dioxus Fullstack.COMMENT
LOWexamples/07-fullstack/streaming.rs1//! This example shows how to use the `Streaming<T, E>` type to send streaming responses from theCOMMENT
LOWexamples/07-fullstack/server_functions.rs1//! This example is a simple showcase of Dioxus Server Functions.COMMENT
LOWexamples/07-fullstack/server_functions.rs21//! RPC functions but also complex extractors for things like auth, sessions, cookies, and more.COMMENT
LOWexamples/07-fullstack/server_functions.rs41//!COMMENT
LOWexamples/07-fullstack/server_functions.rs61//!COMMENT
LOWexamples/07-fullstack/server_functions.rs81//! #[post("/api/authenticate", auth: AuthCookie)]COMMENT
LOWexamples/07-fullstack/server_functions.rs101//! Middleware will be applied in the order they are specified, and will be applied before anyCOMMENT
LOWexamples/07-fullstack/server_functions.rs201 room_id.map_or("None".to_string(), |id| id.to_string()),COMMENT
LOWexamples/07-fullstack/auth/src/main.rs1//! This example showcases how to use the `axum-session-auth` crate with Dioxus fullstack.COMMENT
LOWexamples/07-fullstack/hello-world/src/main.rs1//! A simple hello world example for Dioxus fullstackCOMMENT
LOWexamples/07-fullstack/ssr-only/src/main.rs1//! This example showcases how to use Fullstack in a server-side rendering only context.COMMENT
LOWexamples/03-assets-styling/fonts.rs1//! Loading fonts — from a CDN and bundled with the app.COMMENT
LOWpackages/interpreter/src/ts/native.ts561// This function sends the event to the virtualdom and then waits for the virtualdom to process itCOMMENT
LOWpackages/stores-macro/src/lib.rs1use proc_macro::TokenStream;COMMENT
LOWpackages/stores-macro/src/lib.rs21/// ### StructsCOMMENT
LOWpackages/stores-macro/src/lib.rs41/// // that returns a store scoped to that field.COMMENT
LOWpackages/stores-macro/src/lib.rs61///COMMENT
LOWpackages/stores-macro/src/lib.rs81/// // The store macro creates an extension trait with methods for each variant to checkCOMMENT
LOWpackages/stores-macro/src/lib.rs121}COMMENT
LOWpackages/stores-macro/src/lib.rs141///COMMENT
LOWpackages/stores-macro/src/lib.rs161/// // with ReadStore<TodoItem>COMMENT
LOWpackages/asset-resolver/src/native.rs141/// Get the asset directory, following tauri/cargo-bundles directory discovery approachCOMMENT
LOWpackages/asset-resolver/src/lib.rs1#![warn(missing_docs)]COMMENT
LOWpackages/asset-resolver/src/lib.rs21//! // Bundle the static JSON asset into the applicationCOMMENT
LOWpackages/asset-resolver/src/lib.rs41/// An error that can occur when resolving an asset to a path. Not all platforms can represent assets as paths,COMMENT
LOWpackages/asset-resolver/src/lib.rs61///COMMENT
LOWpackages/asset-resolver/src/lib.rs81/// // Deserialize the JSON dataCOMMENT
LOWpackages/asset-resolver/src/lib.rs101/// // Read the bytes of the JSON assetCOMMENT
LOWpackages/asset-resolver/src/lib.rs121#[non_exhaustive]COMMENT
LOWpackages/asset-resolver/src/lib.rs141/// This function will return an error if the asset cannot be found or if it fails to read which may be due to I/O errorCOMMENT
LOWpackages/asset-resolver/src/lib.rs161///COMMENT
LOWpackages/fullstack-server/src/redirect.rs1use std::sync::OnceLock;COMMENT
LOWpackages/fullstack-server/src/index_html.rs1use anyhow::Context;COMMENT
LOWpackages/fullstack-server/src/config.rs101 /// use dioxus::prelude::*;COMMENT
LOWpackages/fullstack-server/src/config.rs121 ///COMMENT
728 more matches not shown…
Hallucination Indicators12 hits · 135 pts
SeverityFileLineSnippetContext
CRITICALpackages/cli/src/serve/server.rs473 for proxy_config in build.build.config.web.proxy.iter() {CODE
CRITICALpackages/cli/src/serve/runner.rs197 client.build.config.application.tailwind_input.clone(),CODE
CRITICALpackages/cli/src/serve/runner.rs198 client.build.config.application.tailwind_output.clone(),CODE
CRITICALpackages/cli/src/serve/runner.rs1714 self.client.build.config.application.tailwind_input.clone(),CODE
CRITICALpackages/cli/src/serve/runner.rs1715 self.client.build.config.application.tailwind_output.clone(),CODE
CRITICALpackages/cli/src/bundler/mod.rs233 self.build.config.bundle.publisher.as_deref()CODE
CRITICALpackages/cli/src/bundler/mod.rs254 self.build.config.bundle.long_description.as_deref()CODE
CRITICALpackages/cli/src/bundler/mod.rs259 self.build.config.bundle.copyright.as_deref()CODE
CRITICALpackages/cli/src/bundler/mod.rs294 self.build.config.bundle.category.as_deref()CODE
CRITICALpackages/cli/src/bundler/mod.rs415 self.build.config.bundle.deb.clone().unwrap_or_default()CODE
CRITICALpackages/cli/src/bundler/mod.rs420 self.build.config.bundle.macos.clone().unwrap_or_default()CODE
CRITICALpackages/cli/src/bundler/mod.rs425 self.build.config.bundle.windows.clone().unwrap_or_default()CODE
AI Slop Vocabulary12 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh4# To hack on harness you need the `wasm-tools` CLI installedCOMMENT
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh7# This script is also sensitive to where it's run from, so you *need* to be in the harness folder (running as `./run.sh`COMMENT
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh11# build the harnessCOMMENT
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh36# copy the output wasm file to the harness dirCOMMENT
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh57 # wasm-tools strip data/harness/split/$path -o data/harness/split/$path --allCOMMENT
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh73# wasm-tools strip data/harness/split/$path -o strip data/harness/split_not/main_bg_opt.wasm --allCOMMENT
MEDIUMpackages/desktop/Cargo.toml125# These tests need to be run on the main thread, so they cannot use rust's test harness.COMMENT
MEDIUMpackages/cli/src/test_harnesses.rs211 .asrt(r#"dx build @client --package harness-simple-dedicated-client @server --package harness-simple-dedicatCODE
MEDIUMpackages/cli/src/test_harnesses.rs219 .asrt(r#"dx build @client --package harness-simple-dedicated-client @server --package harness-simple-dedicatCODE
MEDIUMpackages/cli/src/config/inline_config.rs75 // more robust, but this handles the common case)COMMENT
MEDIUMpackages/rsx/src/component.rs3//! Uses the regular robust RsxBlock parser and then validates the component, emitting errors asCOMMENT
LOW.github/workflows/publish.yml133 # Todo: we want `cargo install dx` to actually just use a prebuilt binary instead of building itCOMMENT
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMpackages/subsecond/subsecond/src/lib.rs597 // ── HOST-STATE-MUTATING SECTION ───────────────────────────────COMMENT
MEDIUM.github/workflows/main.yml30 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/main.yml35 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/main.yml62 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/main.yml64 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/main.yml92 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/main.yml94 # ---------------------------------------------------------------------------COMMENT
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOWexamples/06-routing/flat_router.rs59 p { "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloCODE
LOWexamples/06-routing/flat_router.rs59 p { "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloCODE
LOWexamples/07-fullstack/through_reqwest.rs45 name: "John Doe".into(),CODE
LOWexamples/07-fullstack/websocket.rs31 let mut name = use_signal(|| "John Doe".to_string());CODE
LOWpackages/interpreter/src/unified_bindings.rs75 "{let node = document.createComment('placeholder'); this.stack.push(node); this.nodes[$id$] = node;}"CODE
LOWpackages/interpreter/src/unified_bindings.rs152 "{let node = document.createComment('placeholder'); this.stack.push(node);}"CODE
LOWpackages/interpreter/src/js/core.js1function setAttributeInner(node,field,value,ns){if(ns==="style"){node.style.setProperty(field,value);return}if(ns){node.CODE
LOWpackages/interpreter/src/ts/core.ts262 const placeholderSplit = id.split("placeholder");CODE
LOWpackages/web/src/mutations.rs47 let placeholder = self.document.create_comment("placeholder");CODE
LOW…t-tests/cli-optimization/assets/sweetalert2.all.min.js5!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/rsx-hotreload/src/last_build_state.rs146 } // If it is a dynamic segment, we need to check if it exists in the formatted segments poolCODE
LOWpackages/core/src/diff/component.rs49 // If there are suspended scopes, we need to check if the scope is suspended before we diff itCOMMENT
LOWpackages/core/src/diff/component.rs75 // If there are suspended scopes, we need to check if the scope is suspended before we diff itCOMMENT
LOWpackages/stores/src/impls/btreemap.rs138 // to mark only the existing value as dirty. Instead we need to check if the value already existsCOMMENT
LOWpackages/core-macro/src/props/mod.rs698 // If this is an optional event handler, we need to check if it's None before we try to update itCOMMENT
LOWpackages/cli/src/serve/runner.rs377 // If the build is ready, we need to check if we need to pre-render with ssgCOMMENT
LOWpackages/hooks/src/use_after_suspense_resolved.rs8 // If this is under a suspense boundary, we need to check if it is resolvedCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWpackages/signals/src/write.rs46 /// NOTE: This method is completely safe because borrow checking is done at runtime.COMMENT
LOWpackages/signals/src/write.rs285 /// NOTE: This method is completely safe because borrow checking is done at runtime.COMMENT
LOWpackages/signals/src/read.rs50 /// NOTE: This method is completely safe because borrow checking is done at runtime.COMMENT
LOWpackages/signals/src/read.rs60 /// NOTE: This method is completely safe because borrow checking is done at runtime.COMMENT
LOWpackages/signals/src/read.rs98 /// NOTE: This method is completely safe because borrow checking is done at runtime.COMMENT
LOWpackages/router/src/routable.rs633 /// NOTE: This method must parse the output of `ToRouteSegments::display_route_segments` into the type `Self`.COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpackages/desktop/src/hooks.rs90/// The callback takes a path as requested by the web view, and it should return `Some(response)`COMMENT
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/07-fullstack/login_form.rs70/// A static session ID for demonstration purposes. This forces all previous logins to be invalidatedCOMMENT
MEDIUMpackages/html/src/attribute_groups.rs219 #[deprecated(note = "This attribute does nothing. For most renderers, you should prefer calling [`dioxus_core::EventCOMMENT
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpackages/interpreter/src/js/native.js1function serializeEvent(event,target){let contents={},extend=(obj)=>contents={...contents,...obj};if(event instanceof WhCODE
LOWpackages/interpreter/src/ts/native.ts566function handleVirtualdomEventSync(CODE
LOWpackages/interpreter/src/ts/serialize.ts131function toSerializableResizeObserverSize(CODE
LOWpackages/interpreter/src/ts/serialize.ts141export function serializeResizeEventDetail(CODE
LOWpackages/interpreter/src/ts/serialize.ts172export function serializeIntersectionEventDetail(CODE
LOWpackages/interpreter/src/ts/serialize.ts495export function extractSerializedFormValues(event: Event, target: HTMLElement): SerializedFormData {CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh1# This file is a simple shell script that runs the bundle split process manually without the CLI involvedCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/native-dom/src/events.rs411 // TODO: implement these fields with real valuesCOMMENT