AI Slop Code Risk Monitor

mlc-ai/web-llm

SlopCodeMonitor badge for mlc-ai/web-llm Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

High-performance In-browser LLM Inference Engine

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for mlc-ai/web-llm, a TypeScript project with 19,340 GitHub stars. SynthScan examined 52,124 lines of code across 263 source files, recording 55 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low 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.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
19.3K
Stars
TypeScript
Language
52.1K
Lines of Code
263
Files
55
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 4.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 4.2/100 · LOW

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

PR Review Velocity Impact 5.1/100 · LOW

Which changes need focused human review? 55 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 0LOW 55

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 55 distinct pattern matches across 3 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.

Hyper-Verbose Identifiers42 hits · 45 pts
SeverityFileLineSnippetContext
LOWtests/embedding_stats.test.ts39function createEmbeddingPipelineBase(): EmbeddingLike {CODE
LOWtests/resumable_engine_integration.test.ts80function setNavigatorStorageEstimate(estimate: {CODE
LOWtests/browser/harness.js103export async function runFirstTokenReplayRegression() {CODE
LOWtests/browser/harness.js155export async function runKnownTokenForwardingRegression() {CODE
LOWtests/browser/rollup.config.js9function stubNodePerformanceImport() {CODE
LOWtests/helpers/engine_fixture.ts553export function createEngineWithMultiplePipelines() {CODE
LOWtests/helpers/engine_fixture.ts597export function createEngineWithEmbeddingPipeline() {CODE
LOWexamples/simple-chat-js/index.js17function updateEngineInitProgressCallback(report) {CODE
LOWexamples/resumable-generation/src/main.ts450async function startInterruptedValidationSession(CODE
LOWexamples/resumable-generation/src/main.ts564async function validateWorkerStreamingResume(): Promise<unknown> {CODE
LOWexamples/resumable-generation/src/main.ts653async function validateWorkerLockExclusion(): Promise<unknown> {CODE
LOWexamples/json-schema/src/json_schema.ts12async function simpleStructuredTextExample() {CODE
LOWsrc/service_worker.ts191export async function CreateServiceWorkerMLCEngine(CODE
LOWsrc/artifact_manifest.ts278function parseAudioDecodeProcessor(CODE
LOWsrc/artifact_manifest.ts335function parseImageDecodeProcessor(CODE
LOWsrc/artifact_manifest.ts489export function parseModelPackageManifest(CODE
LOWsrc/artifact_manifest.ts546export function resolveModelPackageResourceURLs(CODE
LOWsrc/artifact_manifest.ts565export function parseCompiledProgramArtifact(CODE
LOWsrc/artifact_manifest.ts664export function resolveChatCompletionArtifact(CODE
LOWsrc/engine.ts107function countTrailingReplacementChar(value: string): number {CODE
LOWsrc/conversation.ts545export function compareConversationObject(CODE
LOWsrc/conversation.ts663export function getConversationFromChatCompletionRequest(CODE
LOW⚡src/cache_util.ts30export function getTensorCacheAccessOptions(CODE
LOW⚡src/cache_util.ts40function createScopedArtifactCache(CODE
LOW⚡src/cache_util.ts47async function maybeVerifyTokenizerIntegrity(CODE
LOWsrc/cache_util.ts84export async function deleteModelAllInfoInCache(CODE
LOWsrc/config.ts169export function postInitAndCheckGenerationConfigValues(CODE
LOWsrc/support.ts78export function getTokenTableFromTokenizer(tokenizer: Tokenizer): string[] {CODE
LOW⚡src/support.ts132export function getToolCallFromOutputMessage(CODE
LOW⚡src/support.ts136export function getToolCallFromOutputMessage(CODE
LOW⚡src/support.ts140export function getToolCallFromOutputMessage(CODE
LOWsrc/support.ts286export function getChunkedPrefillInputData(CODE
LOWsrc/support.ts487export async function getResizedRGBArrayFromURL(CODE
LOWsrc/extension_service_worker.ts118export async function CreateServiceWorkerMLCEngine(CODE
LOWsrc/openai_api_protocols/completion.ts341export function rejectCompletionResumable(CODE
LOWsrc/resumable/checkpoint_writer.ts295export async function readResumableCheckpointPayload(CODE
LOWsrc/resumable/replay.ts110export function getResumableGenerationConfig(CODE
LOWsrc/resumable/replay.ts123export function hasUnsupportedGrammarReplay(CODE
LOWsrc/resumable/generation.ts80export function normalizeResumableGenerationConfig(CODE
LOWsrc/resumable/coordinator.ts257function normalizeCheckpointInterval(CODE
LOWsrc/resumable/coordinator.ts267function shouldCaptureDecodeCheckpoint(CODE
LOWsrc/resumable/coordinator.ts299function isChatCompletionReplayRequest(CODE
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/simple-chat-js/index.js80 .setAttribute("placeholder", "Generating...");CODE
LOWexamples/simple-chat-ts/src/simple_chat.ts279 this.uiChatInput.setAttribute("placeholder", "Generating...");CODE
LOWexamples/simple-chat-ts/src/simple_chat.ts324 this.uiChatInput.setAttribute("placeholder", "Enter your message...");CODE
LOWexamples/simple-chat-upload/src/simple_chat.ts279 this.uiChatInput.setAttribute("placeholder", "Generating...");CODE
LOWexamples/simple-chat-upload/src/simple_chat.ts318 this.uiChatInput.setAttribute("placeholder", "Enter your message...");CODE
LOWexamples/next-simple-chat/src/utils/chat_ui.ts110 // this.uiChatInput.setAttribute("placeholder", "Generating...");COMMENT
LOWexamples/next-simple-chat/src/pages/api/hello.ts12 res.status(200).json({ name: "John Doe" });CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/subgroups-usage/src/subgroups_usage.ts81 // const appConfig: webllm.AppConfig = {COMMENT
LOWexamples/subgroups-usage/src/subgroups_usage.ts101 // const engine: webllm.MLCEngineInterface = await webllm.CreateMLCEngine(COMMENT
LOWexamples/get-started/src/get_started.ts21 logLevel: "INFO", // specify the log levelCOMMENT
LOWexamples/get-started/src/get_started.ts41 // overrides: {COMMENT
LOWsrc/llm_chat.ts301 // be reinitialized since `this.tokenizer` does not change throughout the lifetime of LLMChatPipeline.COMMENT
LOWsrc/config.ts501 // model_id: "DeepSeek-R1-Distill-Qwen-1.5B-q4f16_1-MLC",COMMENT