Repository Analysis

tauri-apps/tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tauri-apps/tauri, a Rust project with 109,027 GitHub stars. SynthScan v2.0 examined 167,587 lines of code across 759 source files, recording 625 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.5 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.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
109.0K
Stars
Rust
Language
167.6K
Lines of Code
759
Files
625
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 5HIGH 2MEDIUM 3LOW 615

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 625 distinct pattern matches across 7 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 Block599 hits · 498 pts
SeverityFileLineSnippetContext
LOWbench/src/utils.rs1// Copyright 2019-2024 Tauri Programme within The Commons ConservancyCOMMENT
LOWcrates/tauri-codegen/src/embedded_assets.rs61COMMENT
LOWcrates/tauri-runtime-wry/src/lib.rs941 }COMMENT
LOWcrates/tauri-runtime-wry/src/window/mod.rs21pub trait WindowExt {COMMENT
LOWcrates/tauri-runtime/src/monitor.rs1// Copyright 2019-2024 Tauri Programme within The Commons ConservancyCOMMENT
LOWcrates/tauri-runtime/src/lib.rs81#[serde(tag = "type")]COMMENT
LOWcrates/tauri-runtime/src/lib.rs121 /// Failed to create webview.COMMENT
LOWcrates/tauri-runtime/src/lib.rs141 #[error("invalid icon: {0}")]COMMENT
LOWcrates/tauri-runtime/src/lib.rs221 /// Emitted when all of the event loop's input events have been processed and redraw processing is about to begin.COMMENT
LOWcrates/tauri-runtime/src/lib.rs341 /// Change the device event filter mode.COMMENT
LOWcrates/tauri-runtime/src/lib.rs481 #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]COMMENT
LOWcrates/tauri-runtime/src/lib.rs601 ) -> Result<()>;COMMENT
LOWcrates/tauri-runtime/src/lib.rs621 /// Set a cookie for the webview.COMMENT
LOWcrates/tauri-runtime/src/lib.rs701 /// Gets the window's native maximize button state.COMMENT
LOWcrates/tauri-runtime/src/lib.rs721COMMENT
LOWcrates/tauri-runtime/src/lib.rs821 fn set_enabled(&self, enabled: bool) -> Result<()>;COMMENT
LOWcrates/tauri-runtime/src/lib.rs941COMMENT
LOWcrates/tauri-runtime/src/lib.rs961 /// - **iOS:** iOS expects i32, if the value is larger than i32::MAX, it will be clamped to i32::MAX.COMMENT
LOWcrates/tauri-runtime/src/lib.rs981 ///COMMENT
LOWcrates/tauri-runtime/src/window.rs41 Destroyed,COMMENT
LOWcrates/tauri-runtime/src/window.rs61 /// The system window theme has changed.COMMENT
LOWcrates/tauri-runtime/src/window.rs81 /// - **iOS**: This is triggered by `applicationWillEnterForeground` method of the UIApplicationDelegate.COMMENT
LOWcrates/tauri-runtime/src/window.rs121/// Describes the appearance of the mouse cursor.COMMENT
LOWcrates/tauri-runtime/src/window.rs241 ///COMMENT
LOWcrates/tauri-runtime/src/window.rs281COMMENT
LOWcrates/tauri-runtime/src/window.rs301 /// ## Platform-specificCOMMENT
LOWcrates/tauri-runtime/src/window.rs321COMMENT
LOWcrates/tauri-runtime/src/window.rs361 #[must_use]COMMENT
LOWcrates/tauri-runtime/src/window.rs401 #[must_use]COMMENT
LOWcrates/tauri-runtime/src/window.rs421 ///COMMENT
LOWcrates/tauri-runtime/src/window.rs461 #[cfg(windows)]COMMENT
LOWcrates/tauri-runtime/src/window.rs481COMMENT
LOWcrates/tauri-runtime/src/window.rs501 #[must_use]COMMENT
LOWcrates/tauri-runtime/src/webview.rs101 target_os = "netbsd",COMMENT
LOWcrates/tauri-runtime/src/webview.rs161/// Response for the new window request handler.COMMENT
LOWcrates/tauri-runtime/src/webview.rs181/// - **Windows**: This option must be given the same value for all webviews that target the same data directory.COMMENT
LOWcrates/tauri-runtime/src/webview.rs381 ///COMMENT
LOWcrates/tauri-runtime/src/webview.rs561 }COMMENT
LOWcrates/tauri-runtime/src/webview.rs581 pub fn initialization_script(mut self, script: impl Into<String>) -> Self {COMMENT
LOWcrates/tauri-runtime/src/webview.rs701 /// - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,COMMENT
LOWcrates/tauri-runtime/src/webview.rs721 }COMMENT
LOWcrates/tauri-runtime/src/webview.rs741 ///COMMENT
LOWcrates/tauri-runtime/src/webview.rs761 selfCOMMENT
LOWcrates/tauri-runtime/src/webview.rs781 /// See https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreviewCOMMENT
LOWcrates/tauri-runtime/src/webview.rs801 /// - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.COMMENT
LOWcrates/tauri-runtime/src/webview.rs821 /// and does nothing on older versions.COMMENT
LOWcrates/tauri-runtime/src/webview.rs841 /// ## Platform-specificCOMMENT
LOWcrates/tauri-build/src/lib.rs221 ///COMMENT
LOWcrates/tauri-build/src/lib.rs301 /// ```textCOMMENT
LOWcrates/tauri-build/src/lib.rs321 /// ```COMMENT
LOWcrates/tauri-build/src/lib.rs341 /// let attrs = tauri_build::Attributes::new().windows_attributes(windows);COMMENT
LOWcrates/tauri-build/src/lib.rs441 == "true"COMMENT
LOWcrates/tauri-build/src/codegen/context.rs41 /// Set the path to the `tauri.conf.json` (relative to the package's directory).COMMENT
LOWcrates/tauri-plugin/src/runtime.rs1// Copyright 2019-2024 Tauri Programme within The Commons ConservancyCOMMENT
LOWcrates/tauri-plugin/src/lib.rs21#[cfg(feature = "runtime")]COMMENT
LOWcrates/tauri/src/error.rs41 #[error("a webview with label `{0}` already exists")]COMMENT
LOWcrates/tauri/src/error.rs61 /// Encountered an error in the setup hook,COMMENT
LOWcrates/tauri/src/error.rs81 /// Invalid glob pattern.COMMENT
LOWcrates/tauri/src/error.rs101 Menu(#[from] muda::Error),COMMENT
LOWcrates/tauri/src/error.rs121 NoExtension,COMMENT
539 more matches not shown…
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALcrates/tauri/src/protocol/tauri.rs168 .add_configured_headers(manager.config.app.security.headers.as_ref())CODE
CRITICALcrates/tauri/src/protocol/isolation.rs59 .add_configured_headers(manager.config.app.security.headers.as_ref())CODE
CRITICALcrates/tauri/src/tray/mod.rs644 let mut icons = self.app_handle.manager.tray.icons.lock().unwrap();CODE
CRITICALcrates/tauri/src/manager/mod.rs371 self.config.app.security.csp.clone()CODE
CRITICALcrates/tauri/src/manager/mod.rs379 .or_else(|| self.config.app.security.csp.clone())CODE
Slop Phrases12 hits · 15 pts
SeverityFileLineSnippetContext
LOWcrates/tauri/src/ipc/format_callback.rs212 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''CODE
LOWcrates/tauri/src/ipc/format_callback.rs212 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''CODE
LOWcrates/tauri/src/ipc/format_callback.rs296 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''CODE
LOWcrates/tauri/src/ipc/format_callback.rs296 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''CODE
MEDIUMcrates/tauri-cli/config.schema.json173 "description": "The app windows configuration.\n\n ## Example:\n\n To create a window at app startup\n\n ```jsCODE
LOWcrates/tauri-cli/config.schema.json2251 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n NoCODE
LOWcrates/tauri-cli/tauri.config.schema.json1698 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n NoCODE
LOWcrates/tauri-cli/schema.json1693 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n NoCODE
LOWcrates/tauri-utils/src/config.rs1684 /// so don't forget to provide binaries for all targeted platforms.COMMENT
LOWcrates/tauri-utils/src/config_v1/mod.rs760 /// so don't forget to provide binaries for all targeted platforms.COMMENT
MEDIUM…ates/tauri-schema-generator/schemas/config.schema.json173 "description": "The app windows configuration.\n\n ## Example:\n\n To create a window at app startup\n\n ```jsCODE
LOW…ates/tauri-schema-generator/schemas/config.schema.json2251 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n NoCODE
AI Response Leakage2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcrates/tauri-cli/config.schema.json1671 "description": "A struct, where the keys are some specific http header names.\n\n If the values to those keys are CODE
HIGH…ates/tauri-schema-generator/schemas/config.schema.json1671 "description": "A struct, where the keys are some specific http header names.\n\n If the values to those keys are CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/tauri-cli/src/interface/rust.rs800 // to add more modes, we need to check if the updater relaunch makes senseCOMMENT
LOWcrates/tauri-cli/src/interface/rust/cargo_config.rs107/// The purpose of this function is to aid in the transition to usingCOMMENT
LOWcrates/tauri-utils/src/config_v1/mod.rs2481 // to add more modes, we need to check if the updater relaunch makes senseCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/tauri-utils/src/assets.rs46 // TODO: change this to utilize `Cow` to prevent allocating an intermediate `PathBuf` when not necessaryCOMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/api/src/views/Menu.svelte26 async function createSubmenuWithNativeIcon(): Promise<Submenu> {CODE
LOWexamples/api/src/views/Menu.svelte35 async function createSubmenuWithImageIcon(): Promise<Submenu> {CODE
LOWpackages/api/src/app.ts160async function fetchDataStoreIdentifiers(): Promise<DataStoreIdentifier[]> {CODE