AI Slop Code RIsk Monitor

wasm-bindgen/wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript

19.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for wasm-bindgen/wasm-bindgen, a Rust project with 9,182 GitHub stars. SynthScan examined 435,948 lines of code across 3223 source files, recording 9365 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 19.3 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

19.3
Adjusted Signal
19.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
9.2K
Stars
Rust
Language
435.9K
Lines of Code
3.2K
Files
9.4K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 61.4/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 9325 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

Are imports declared and package/API names verified? 7 finding(s).

Agent Over-Engineering Ratio 1.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 38 finding(s).

PR Review Velocity Impact 66.1/100 · HIGH

Which changes need focused human review? 9365 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 35LOW 9330

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 9365 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block9307 hits · 8270 pts
SeverityFileLineSnippetContext
LOWpublish.rs1//! Helper script to publish the wasm-bindgen suite of cratesCOMMENT
LOWcrates/futures/src/lib.rs1//! Bridging the gap between Rust Futures and JavaScript Promises.COMMENT
LOWcrates/futures/src/tokio.rs1//! Tokio event loops for `#[wasm_bindgen(experimental_tokio)]` exports.COMMENT
LOWcrates/futures/src/tokio.rs101/// Schedules `future` as the root of a fresh event loop owned by this call,COMMENT
LOWcrates/futures/src/tokio.rs141 .enable_time()COMMENT
LOWcrates/test/src/lib.rs1//! Runtime support for the `#[wasm_bindgen_test]` attributeCOMMENT
LOWcrates/test/src/lib.rs41/// This macro is invoked as:COMMENT
LOWcrates/test/src/lib.rs121COMMENT
LOWcrates/test/src/rt/mod.rs1//! Internal-only runtime module used for the `wasm_bindgen_test` crate.COMMENT
LOWcrates/test/src/rt/mod.rs21// runs.COMMENT
LOWcrates/test/src/rt/mod.rs41// * The `wasm-bindgen-test-runner` binary takes over. It runs `wasm-bindgen`COMMENT
LOWcrates/test/src/rt/mod.rs61// This is used for test filters today.COMMENT
LOWcrates/test/src/rt/mod.rs121COMMENT
LOWcrates/test/src/rt/mod.rs461/// If a test is currently running it takes the `args` array and stringifiesCOMMENT
LOWcrates/test/src/rt/mod.rs801/// we've got Rust code running we'll be able to capture output.COMMENT
LOWcrates/test/src/rt/criterion/measurement.rs1//! This module defines a set of traits that can be used to plug different measurements (eg.COMMENT
LOWcrates/test/src/rt/criterion/measurement.rs41 /// The given typical value should be used to choose the unit. This function may be calledCOMMENT
LOWcrates/test/src/rt/criterion/measurement.rs61 /// Scale the values and return a unit string designed for machines.COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs1use super::measurement::Measurement;COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs21/// or [`iter_batched_ref`]. See [`BatchSize`] for a discussion of batch sizes.COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs41 /// Times a `routine` by executing it many times and timing the total elapsed time.COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs61 for _ in 0..self.iters {COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs81 ///COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs101 self.iterated = true;COMMENT
LOWcrates/test/src/rt/criterion/bencher.rs141 /// # ExampleCOMMENT
LOWcrates/test/src/rt/criterion/mod.rs1//! A statistics-driven micro-benchmarking library written in Rust.COMMENT
LOWcrates/test/src/rt/criterion/mod.rs61///COMMENT
LOWcrates/test/src/rt/criterion/mod.rs141 /// measurement time.COMMENT
LOWcrates/test/src/rt/criterion/mod.rs161 #[must_use]COMMENT
LOWcrates/test/src/rt/criterion/mod.rs181 assert!(dur.as_nanos() > 0);COMMENT
LOWcrates/test/src/rt/criterion/mod.rs201 if n <= 1000 {COMMENT
LOWcrates/test/src/rt/criterion/mod.rs241 console_error!(COMMENT
LOWcrates/test/src/rt/criterion/mod.rs281 M: Measurement + 'static,COMMENT
LOWcrates/test/src/rt/criterion/mod.rs341 /// Benchmarks a future.COMMENT
LOWcrates/test/src/rt/criterion/mod.rs381 /// an input string or `&[u8]`.COMMENT
LOWcrates/test/src/rt/criterion/mod.rs401/// This enum allows the user to control how Criterion.rs chooses the iteration count when sampling.COMMENT
LOW…st/src/rt/criterion/stats/univariate/outliers/tukey.rs1//! Tukey's methodCOMMENT
LOW…st/src/rt/criterion/stats/univariate/outliers/tukey.rs21//!COMMENT
LOW…test/src/rt/criterion/stats/univariate/outliers/mod.rs1//! Classification of outliersCOMMENT
LOWcrates/test/src/rt/web_time/instant.rs101 }COMMENT
LOWcrates/cli-support/src/externref.rs201COMMENT
LOWcrates/cli-support/src/intrinsic.rs1//! Definition of all wasm-bindgen intrinsics.COMMENT
LOWcrates/cli-support/src/lib.rs481 // sections.COMMENT
LOWcrates/cli-support/src/lib.rs521 if self.multi_value {COMMENT
LOWcrates/cli-support/src/lib.rs541 // under `wasm_bindgen_unstable_jspi` the fibers belong toCOMMENT
LOWcrates/cli-support/src/lib.rs1061 // ... and after we delete the `implements` directive we try toCOMMENT
LOWcrates/cli-support/src/suggest.rs1//! Suggestion helpers for "did you mean ...?" diagnostics.COMMENT
LOWcrates/cli-support/src/descriptor.rs1use std::char;COMMENT
LOWcrates/cli-support/src/wasm_conventions.rs101 match candidates.len() {COMMENT
LOWcrates/cli-support/src/wasm2es6js.rs201 }COMMENT
LOWcrates/cli-support/src/descriptors.rs1//! Management of wasm-bindgen descriptor functions.COMMENT
LOWcrates/cli-support/src/interpreter/mod.rs1//! A tiny and incomplete Wasm interpreterCOMMENT
LOWcrates/cli-support/src/interpreter/mod.rs41 // during descriptor execution.COMMENT
LOWcrates/cli-support/src/interpreter/mod.rs61COMMENT
LOWcrates/cli-support/src/interpreter/mod.rs241 }COMMENT
LOWcrates/cli-support/src/interpreter/mod.rs541 }COMMENT
LOWcrates/cli-support/src/js/mod.rs41}COMMENT
LOWcrates/cli-support/src/js/mod.rs161COMMENT
LOWcrates/cli-support/src/js/mod.rs181 /// emcc needs to keep alive).COMMENT
LOWcrates/cli-support/src/js/mod.rs201 emscripten_import_postsets: BTreeMap<ImportId, String>,COMMENT
9247 more matches not shown…
Decorative Section Separators33 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUMcrates/js-sys/src/futures/jspi.rs151// ─── Promising-entered task polls ────────────────────────────────────────────COMMENT
MEDIUMcrates/cli/tests/wasm-bindgen/main.rs4328// ─── JSPI (JS Promise Integration) runtime tests ─────────────────────────────COMMENT
MEDIUMcrates/cli/tests/reference/jspi.rs5// ── Suspending imports ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/cli/tests/reference/jspi.rs32// ── JSPI exports ─────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html207// ── Feature detection ────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html232// ── Load WASM ────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html248// ── Demo ①: fetch + response streaming ──────────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html259// ── Demo ②: read a JavaScript ReadableStream from Rust ───────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html291// ── Demo ③: request body streaming detection ────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html304// ── Demo ④: concurrent fibers ────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-fetch-streams/index.html328// ── Run all ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/index.html124><span class="cm">// ── write a file ─────────────────────────────────────</span>CODE
MEDIUMexamples/jspi-opfs/index.html134<span class="cm">// ── read a file ──────────────────────────────────────</span>CODE
MEDIUMexamples/jspi-opfs/index.html200// ── Feature detection ────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/index.html211// ── Load WASM ────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/index.html223// ── Button handlers ──────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/index.html303 // ── Concurrent reads (shadow-stack isolation test) ───────────────────────COMMENT
MEDIUMexamples/jspi-opfs/src/lib.rs33// ─── navigator.storage helper ────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/src/lib.rs58// ─── Path traversal ──────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi-opfs/src/lib.rs108// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/index.html49 // ── Feature detection ────────────────────────────────────────────────────COMMENT
MEDIUM⚡examples/jspi/index.html62 // ── Load WASM module ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡examples/jspi/index.html70 // ── Demo 1: non-async sleep ──────────────────────────────────────────────COMMENT
MEDIUM⚡examples/jspi/index.html79 // ── Demo 2: concurrent fibers ────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/index.html96 // ── Demo 3: large stack frames across a suspension ───────────────────────COMMENT
MEDIUMexamples/jspi/index.html111 // ── Demo 4: deep recursion + post-resume heap allocation ─────────────────COMMENT
MEDIUMexamples/jspi/index.html140 // ── Demo 5: concurrent deep-alloc fibers ─────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs40// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs42// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs66// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs68// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs113// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/jspi/src/lib.rs115// ─────────────────────────────────────────────────────────────────────────────COMMENT
Structural Annotation Overuse8 hits · 12 pts
SeverityFileLineSnippetContext
LOWguide/src/wasm-bindgen-test/benchmark.md20### Step 1 - Add Dependency to Cargo.toml ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md29### Step 2 - Add Benchmark ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md44### Step 3 - Run Benchmark ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md64### Step 4 - Optimize ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md105### Step 5 - Asynchronous function ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md125### Step 6 - Run benchmark in browser ###COMMENT
LOWguide/src/wasm-bindgen-test/benchmark.md129### Step 7 - Configuration ###COMMENT
LOWsrc/rt/mod.rs1023// NOTE: This method is used to encode u32 into a variable-length-integer during the compile-time .COMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWcrates/webidl/src/constants.rs1090 "placeholder",CODE
LOWcrates/webidl/src/constants.rs1286 "placeholder",CODE
LOWcrates/web-sys/src/features/gen_HtmlTextAreaElement.rs179 js_name = "placeholder"CODE
LOWcrates/web-sys/src/features/gen_HtmlTextAreaElement.rs191 js_name = "placeholder"CODE
LOWcrates/web-sys/src/features/gen_HtmlInputElement.rs408 #[wasm_bindgen(method, getter, js_class = "HTMLInputElement", js_name = "placeholder")]COMMENT
LOWcrates/web-sys/src/features/gen_HtmlInputElement.rs415 #[wasm_bindgen(method, setter, js_class = "HTMLInputElement", js_name = "placeholder")]COMMENT
LOWexamples/weather_report/src/lib.rs238 .set_attribute("placeholder", "Type city name here")CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcrates/js-sys/src/lib.rs5962 /// It is a more robust version of the original, global isNaN().COMMENT
MEDIUMsrc/cast.rs31 /// In general this is intended to be a more robust version ofCOMMENT
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcrates/cli-support/src/js/mod.rs4202 function GetOwnOrInheritedPropertyDescriptor(obj, id) {CODE
LOWcrates/js-sys/tests/wait_async_mock.js6export function installNotifyOnlyWaitAsyncMock() {CODE
LOWcrates/js-sys/tests/wasm/Promise.js86export async function testRustDoubleNumberPromise(rustModule) {CODE
LOWcrates/cli/tests/reference/generic-import.bg.js707function GetOwnOrInheritedPropertyDescriptor(obj, id) {CODE
LOWexamples/raytrace-parallel/server.py5class RequestHandler(SimpleHTTPRequestHandler):CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/cli-support/src/interpreter/mod.rs259 /// # Return valueCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/js-sys/tests/wasm/JsString.rs649 // TODO: Add test once we have optional parametersCOMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/cli-support/src/wit/mod.rs2816don't forget to recompile your Wasm file! Alternatively, you can update theCODE