Repository Analysis

DioxusLabs/dioxus

Fullstack app framework for web, desktop, and mobile.

5.1 Low AI signal View on GitHub
5.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-05-28
Last Push
36,170
Stars
Rust
Language
194,721
Lines of Code
1194
Files
835
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 12HIGH 1MEDIUM 21LOW 801

Pattern Findings

835 matches across 10 categories. Click a row to expand file-level details.

Over-Commented Block783 hits · 760 pts
SeverityFileLineSnippet
LOWnotes/architecture/11-NATIVE-PLUGIN-FFI.md41## Phase 1: The Macro
LOWexamples/01-app-demos/todomvc_store.rs1//! The typical TodoMVC app, implemented in Dioxus with stores. Stores let us
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs1// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs21
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs41 ///
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs81 /// Accuracy level of the latitude and longitude coordinates in meters.
LOW…p-demos/geolocation-native-plugin/src/plugin/models.rs101 pub coords: Coordinates,
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs1#![allow(non_snake_case)]
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs21// Note: Permissions are now declared in Dioxus.toml using the unified manifest system.
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs41///
LOW…-app-demos/geolocation-native-plugin/src/plugin/mod.rs141 // =========================================================================
LOW…rc/ios/widget/Sources/LocationActivityAttributes.swift1// Shared ActivityAttributes for Live Activities
LOW…rc/ios/plugin/Sources/LocationActivityAttributes.swift1// Shared ActivityAttributes for Live Activities
LOWexamples/08-apis/logging.rs1//! Dioxus ships out-of-the-box with tracing hooks that integrate with the Dioxus-CLI.
LOWexamples/09-reference/rsx_usage.rs1//! A tour of the rsx! macro
LOWexamples/09-reference/rsx_usage.rs21//!
LOWexamples/06-routing/hash_fragment_state.rs1//! This example shows how to use the hash segment to store state in the url.
LOWexamples/06-routing/router.rs21
LOWexamples/06-routing/router.rs41 #[route("/:name")]
LOWexamples/06-routing/query_segment_search.rs1//! This example shows how to access and use query segments present in an url on the web.
LOWexamples/07-fullstack/handling_errors.rs1//! An example of handling errors from server functions.
LOWexamples/07-fullstack/streaming_file_upload.rs21 // Dioxus provides the `FileStream` type for efficiently uploading files in a streaming fashion.
LOWexamples/07-fullstack/server_sent_events.rs1//! This example demonstrates server-sent events (SSE) using Dioxus Fullstack.
LOWexamples/07-fullstack/custom_axum_serve.rs1//! This example demonstrates how to use `dioxus::serve` with a custom Axum router.
LOWexamples/07-fullstack/websocket.rs1//! This example showcases the built-in websocket functionality in Dioxus Fullstack.
LOWexamples/07-fullstack/streaming.rs1//! This example shows how to use the `Streaming<T, E>` type to send streaming responses from the
LOWexamples/07-fullstack/server_functions.rs1//! This example is a simple showcase of Dioxus Server Functions.
LOWexamples/07-fullstack/server_functions.rs21//! RPC functions but also complex extractors for things like auth, sessions, cookies, and more.
LOWexamples/07-fullstack/server_functions.rs41//!
LOWexamples/07-fullstack/server_functions.rs61//!
LOWexamples/07-fullstack/server_functions.rs81//! #[post("/api/authenticate", auth: AuthCookie)]
LOWexamples/07-fullstack/server_functions.rs101//! Middleware will be applied in the order they are specified, and will be applied before any
LOWexamples/07-fullstack/server_functions.rs201 room_id.map_or("None".to_string(), |id| id.to_string()),
LOWexamples/07-fullstack/auth/src/main.rs1//! This example showcases how to use the `axum-session-auth` crate with Dioxus fullstack.
LOWexamples/07-fullstack/hello-world/src/main.rs1//! A simple hello world example for Dioxus fullstack
LOWexamples/07-fullstack/ssr-only/src/main.rs1//! This example showcases how to use Fullstack in a server-side rendering only context.
LOWexamples/03-assets-styling/fonts.rs1//! Loading fonts — from a CDN and bundled with the app.
LOWpackages/interpreter/src/ts/native.ts561// This function sends the event to the virtualdom and then waits for the virtualdom to process it
LOWpackages/stores-macro/src/lib.rs1use proc_macro::TokenStream;
LOWpackages/stores-macro/src/lib.rs21/// ### Structs
LOWpackages/stores-macro/src/lib.rs41/// // that returns a store scoped to that field.
LOWpackages/stores-macro/src/lib.rs61///
LOWpackages/stores-macro/src/lib.rs81/// // The store macro creates an extension trait with methods for each variant to check
LOWpackages/stores-macro/src/lib.rs121}
LOWpackages/stores-macro/src/lib.rs141///
LOWpackages/stores-macro/src/lib.rs161/// // with ReadStore<TodoItem>
LOWpackages/asset-resolver/src/native.rs141/// Get the asset directory, following tauri/cargo-bundles directory discovery approach
LOWpackages/asset-resolver/src/lib.rs1#![warn(missing_docs)]
LOWpackages/asset-resolver/src/lib.rs21//! // Bundle the static JSON asset into the application
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,
LOWpackages/asset-resolver/src/lib.rs61///
LOWpackages/asset-resolver/src/lib.rs81/// // Deserialize the JSON data
LOWpackages/asset-resolver/src/lib.rs101/// // Read the bytes of the JSON asset
LOWpackages/asset-resolver/src/lib.rs121#[non_exhaustive]
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 error
LOWpackages/asset-resolver/src/lib.rs161///
LOWpackages/fullstack-server/src/redirect.rs1use std::sync::OnceLock;
LOWpackages/fullstack-server/src/index_html.rs1use anyhow::Context;
LOWpackages/fullstack-server/src/config.rs101 /// use dioxus::prelude::*;
LOWpackages/fullstack-server/src/config.rs121 ///
723 more matches not shown…
Hallucination Indicators12 hits · 135 pts
SeverityFileLineSnippet
CRITICALpackages/cli/src/serve/server.rs473 for proxy_config in build.build.config.web.proxy.iter() {
CRITICALpackages/cli/src/serve/runner.rs197 client.build.config.application.tailwind_input.clone(),
CRITICALpackages/cli/src/serve/runner.rs198 client.build.config.application.tailwind_output.clone(),
CRITICALpackages/cli/src/serve/runner.rs1714 self.client.build.config.application.tailwind_input.clone(),
CRITICALpackages/cli/src/serve/runner.rs1715 self.client.build.config.application.tailwind_output.clone(),
CRITICALpackages/cli/src/bundler/mod.rs233 self.build.config.bundle.publisher.as_deref()
CRITICALpackages/cli/src/bundler/mod.rs254 self.build.config.bundle.long_description.as_deref()
CRITICALpackages/cli/src/bundler/mod.rs259 self.build.config.bundle.copyright.as_deref()
CRITICALpackages/cli/src/bundler/mod.rs294 self.build.config.bundle.category.as_deref()
CRITICALpackages/cli/src/bundler/mod.rs415 self.build.config.bundle.deb.clone().unwrap_or_default()
CRITICALpackages/cli/src/bundler/mod.rs420 self.build.config.bundle.macos.clone().unwrap_or_default()
CRITICALpackages/cli/src/bundler/mod.rs425 self.build.config.bundle.windows.clone().unwrap_or_default()
AI Slop Vocabulary12 hits · 37 pts
SeverityFileLineSnippet
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh4# To hack on harness you need the `wasm-tools` CLI installed
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`
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh11# build the harness
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh36# copy the output wasm file to the harness dir
MEDIUMpackages/playwright-tests/wasm-split-harness/run.sh57 # wasm-tools strip data/harness/split/$path -o data/harness/split/$path --all
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 --all
MEDIUMpackages/desktop/Cargo.toml125# These tests need to be run on the main thread, so they cannot use rust's test harness.
MEDIUMpackages/cli/src/test_harnesses.rs211 .asrt(r#"dx build @client --package harness-simple-dedicated-client @server --package harness-simple-dedicat
MEDIUMpackages/cli/src/test_harnesses.rs219 .asrt(r#"dx build @client --package harness-simple-dedicated-client @server --package harness-simple-dedicat
MEDIUMpackages/cli/src/config/inline_config.rs75 // more robust, but this handles the common case)
MEDIUMpackages/rsx/src/component.rs3//! Uses the regular robust RsxBlock parser and then validates the component, emitting errors as
LOW.github/workflows/publish.yml133 # Todo: we want `cargo install dx` to actually just use a prebuilt binary instead of building it
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMpackages/subsecond/subsecond/src/lib.rs597 // ── HOST-STATE-MUTATING SECTION ───────────────────────────────
MEDIUM.github/workflows/main.yml30 # ---------------------------------------------------------------------------
MEDIUM.github/workflows/main.yml35 # ---------------------------------------------------------------------------
MEDIUM.github/workflows/main.yml62 # ---------------------------------------------------------------------------
MEDIUM.github/workflows/main.yml64 # ---------------------------------------------------------------------------
MEDIUM.github/workflows/main.yml92 # ---------------------------------------------------------------------------
MEDIUM.github/workflows/main.yml94 # ---------------------------------------------------------------------------
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippet
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 pool
LOWpackages/core/src/diff/component.rs49 // If there are suspended scopes, we need to check if the scope is suspended before we diff it
LOWpackages/core/src/diff/component.rs75 // If there are suspended scopes, we need to check if the scope is suspended before we diff it
LOWpackages/stores/src/impls/btreemap.rs138 // to mark only the existing value as dirty. Instead we need to check if the value already exists
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 it
LOWpackages/cli/src/serve/runner.rs377 // If the build is ready, we need to check if we need to pre-render with ssg
LOWpackages/hooks/src/use_after_suspense_resolved.rs8 // If this is under a suspense boundary, we need to check if it is resolved
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHpackages/desktop/src/hooks.rs90/// The callback takes a path as requested by the web view, and it should return `Some(response)`
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMexamples/07-fullstack/login_form.rs70/// A static session ID for demonstration purposes. This forces all previous logins to be invalidated
MEDIUMpackages/html/src/attribute_groups.rs219 #[deprecated(note = "This attribute does nothing. For most renderers, you should prefer calling [`dioxus_core::Event
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippet
LOWpackages/interpreter/src/js/native.js1function serializeEvent(event,target){let contents={},extend=(obj)=>contents={...contents,...obj};if(event instanceof Wh
LOWpackages/interpreter/src/ts/native.ts566function handleVirtualdomEventSync(
LOWpackages/interpreter/src/ts/serialize.ts120function toSerializableResizeObserverSize(
LOWpackages/interpreter/src/ts/serialize.ts130export function serializeResizeEventDetail(
LOWpackages/interpreter/src/ts/serialize.ts161export function serializeIntersectionEventDetail(
LOWpackages/interpreter/src/ts/serialize.ts472export function extractSerializedFormValues(event: Event, target: HTMLElement): SerializedFormData {
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippet
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 involved
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWexamples/06-routing/flat_router.rs59 p { "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolo
LOWexamples/06-routing/flat_router.rs59 p { "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolo
LOWexamples/07-fullstack/through_reqwest.rs45 name: "John Doe".into(),
LOWexamples/07-fullstack/websocket.rs31 let mut name = use_signal(|| "John Doe".to_string());