AI Slop Code Risk Monitor

web-infra-dev/modern.js

SlopCodeMonitor badge for web-infra-dev/modern.js Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A progressive web framework based on React and Rsbuild.

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for web-infra-dev/modern.js, a TypeScript project with 5,050 GitHub stars. SynthScan examined 194,304 lines of code across 2477 source files, recording 138 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.

0.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.0K
Stars
TypeScript
Language
194.3K
Lines of Code
2.5K
Files
138
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 3.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 2.6/100 · LOW

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

PR Review Velocity Impact 3.7/100 · LOW

Which changes need focused human review? 138 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 1MEDIUM 1LOW 136

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 138 distinct pattern matches across 5 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 Identifiers101 hits · 102 pts
SeverityFileLineSnippetContext
LOWtests/integration/styled-components/tests/index.test.ts14async function checkStyledComponentsInHtml(page: Page) {CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts154async function suppportRouteAsClientComponentAndNavigation({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts184async function supportRouteAsServerComponent({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts196async function supportDirectRedirectNavigation({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts219async function supportRedirectOnFirstScreenLoad({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts272async function shouldRenderWithFetchCorrectly({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts299async function supportInjectCssFirstScreen({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts359async function supportComponentRedirectOnFirstScreenLoad({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts386async function supportComponentRedirectOnNavigation({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts421async function skipRscFetchForClientOnlyRoute({CODE
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts467async function requestRscPayloadForClientOnlyRouteWithLoader({CODE
LOWtests/integration/rsc-csr-app/tests/index.test.ts94async function renderServerRootPageCorrectly({CODE
LOWtests/integration/rsc-csr-app/tests/index.test.ts146async function supportCustomEntryBeforeRender({CODE
LOWtests/integration/rsc-csr-app/tests/index.test.ts163async function supportInjectCssFirstScreen({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts150async function suppportRouteAsClientComponentAndNavigation({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts201async function supportRouteAsServerComponent({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts213async function supportDirectRedirectNavigation({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts236async function supportRedirectOnFirstScreenLoad({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts253async function shouldRenderWithFetchCorrectly({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts280async function supportInjectCssFirstScreen({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts340async function supportComponentRedirectOnFirstScreenLoad({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts367async function supportComponentRedirectOnNavigation({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts402async function skipRscFetchForClientOnlyRoute({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts447async function loadCssForClientOnlyRoute({CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts477async function requestRscPayloadForClientOnlyRouteWithLoader({CODE
LOWtests/integration/ssr/tests/base.test.ts38async function errorThrownInClientNavigation(page: Page, appPort: number) {CODE
LOWtests/integration/ssr/tests/base.test.ts60async function checkIsPassChunkLoadingGlobal() {CODE
LOWtests/integration/ssr/tests/rsc-closing-tags.test.ts15function expectFlightScriptsBeforeClosingTags(html: string) {CODE
LOWtests/integration/ssr/tests/base-json.test.ts28async function errorThrownInClientNavigation(page: Page, appPort: number) {CODE
LOWtests/integration/rsc-ssr-app/tests/index.test.ts101async function renderClientRootPageCorrectly({CODE
LOWtests/integration/rsc-ssr-app/tests/index.test.ts110async function renderServerRootPageCorrectly({CODE
LOWtests/integration/rsc-ssr-app/tests/index.test.ts153async function supportResponseAPIForServerRoot({CODE
LOWtests/integration/rsc-ssr-app/tests/index.test.ts185async function supportResponseAPIForClientRoot({CODE
LOWtests/integration/rsc-ssr-app/tests/index.test.ts217async function supportInjectCssFirstScreen({CODE
LOWtests/utils/rstestPuppeteer.ts15export async function expectPageToMatchTextContent(CODE
LOWscripts/release-note/src/rsbuild.ts46export async function getPublishedRsbuildVersion(CODE
LOWscripts/release-note/src/rsbuild.ts159function getPrereleaseVersionsBetween(CODE
LOWscripts/check-changeset/src/index.ts34function validatePackagePeerDependencies(packages: Package[]) {CODE
LOW…ackage-json/src/rules/noCyclicWorkspaceDependencies.ts32export function noCyclicWorkspaceDependencies(packageJSONs: PackageJSON[]) {CODE
LOW…gin-i18n/src/runtime/i18n/backend/middleware.common.ts21function buildChainedBackendConfig(CODE
LOW…/runtime/plugin-i18n/src/runtime/i18n/backend/index.ts76function buildChainedBackendConfig(CODE
LOW…/runtime/plugin-i18n/src/runtime/i18n/backend/index.ts124function buildSdkOnlyBackendConfig(CODE
LOWpackages/runtime/plugin-i18n/src/shared/utils.ts26export function getLocaleDetectionOptions(CODE
LOWpackages/runtime/plugin-i18n/src/shared/detection.ts11export function detectLanguageFromRequest(CODE
LOWpackages/runtime/plugin-i18n/src/cli/locales.ts57function buildDetectedLocalesDirectory(CODE
LOWpackages/runtime/plugin-i18n/src/cli/locales.ts153export function applyDetectedBackendPaths(CODE
LOWpackages/runtime/render/react-server-dom-rspack.d.ts139 export function setActionBoundArgsEncryption(CODE
LOW…plugin-runtime/tests/ssr/createReadableStream.test.tsx91async function recordMarkerSearchLengths(fn: () => Promise<unknown>) {CODE
LOW…kages/runtime/plugin-runtime/src/core/context/index.ts84export function setGlobalInternalRuntimeContext(CODE
LOW…kages/runtime/plugin-runtime/src/core/context/index.ts90export function getGlobalInternalRuntimeContext() {CODE
LOW…ntime/plugin-runtime/src/core/server/stream/shared.tsx59export function createShellEndMarkSplitter() {CODE
LOW…ntime/plugin-runtime/src/core/server/stream/shared.tsx147export function getReadableStreamFromString(content: string): ReadableStream {CODE
LOW…runtime/plugin-runtime/src/core/server/string/index.ts187function createReplaceSSRDataScript(data: string): BuildHtmlCb {CODE
LOW…ages/runtime/plugin-runtime/src/core/react/wrapper.tsx9export function wrapRuntimeContextProvider(CODE
LOWpackages/runtime/plugin-runtime/src/document/Html.tsx20function findTargetChildByComponent(CODE
LOWpackages/runtime/plugin-runtime/src/document/Html.tsx33function findTargetElementByComponent(CODE
LOW…runtime/plugin-runtime/src/router/runtime/constants.ts37 * function preResolvedDeferredPromise(data, error) {COMMENT
LOW…ntime/plugin-runtime/src/router/runtime/rsc-router.tsx46function collectCssFilesFromRoutes(CODE
LOW…ntime/plugin-runtime/src/router/runtime/rsc-router.tsx444async function resolveClientOnlyNavigation(CODE
LOW…es/runtime/plugin-runtime/src/router/runtime/utils.tsx163export function createRouteObjectsFromConfig({CODE
41 more matches not shown…
Over-Commented Block29 hits · 29 pts
SeverityFileLineSnippetContext
LOW…sts/integration/rsc-ssr-routes/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWtests/integration/rsc-csr-app/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…sts/integration/rsc-csr-routes/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…s-project/bff-indep-client-app/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…tion/bff-corss-project/bff-api-app/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…f-corss-project/bff-client-app/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…-ssr-app/src/server-component-root/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/modern-js-deploy-csr/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/sse/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/deploy/self-built-node/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…ule-federation/app-export/host/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…e-federation/app-export/remote/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…es/module-federation/base/host/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…/module-federation/base/remote/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/test-playwright/playwright.config.ts41 // {COMMENT
LOWexamples/test-playwright/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/basic-withZephyr/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/modern-js-deploy-ssr/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/test-vitest/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOWexamples/react-compiler/src/modern-app-env.d.ts1/// <reference types='@modern-js/app-tools/types' />COMMENT
LOW…utions/app-tools/src/builder/shared/lazyCompilation.ts1import {COMMENT
LOWpackages/server/server/tests/watcher.test.ts41COMMENT
LOWpackages/server/server/tests/watcher.test.ts61 // });COMMENT
LOWpackages/server/server/tests/watcher.test.ts81 // callback();COMMENT
LOWpackages/server/server/tests/watcher.test.ts101 // const filepath = path.join(watchDir, 'index.js');COMMENT
LOWpackages/toolkit/utils/compiled/lodash/index.d.ts1// Type definitions for Lo-Dash 4.14COMMENT
LOWpackages/toolkit/utils/compiled/fs-extra/index.d.ts1// Type definitions for fs-extra 9.0COMMENT
LOWpackages/toolkit/utils/compiled/semver/index.d.ts1// Type definitions for semver 7.3COMMENT
LOWpackages/toolkit/utils/compiled/inquirer/index.d.ts1// Type definitions for inquirer 8.2COMMENT
Cross-Language Confusion (JS/TS)1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…s/toolkit/utils/compiled/lodash/common/collection.d.ts1005 * @return True if the target element is found, else false.COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/integration/rsc-ssr-routes/tests/index.test.ts31 { name: 'John Doe', selector: '.user-layout' },CODE
LOW…/rsc-ssr-routes/src/loader/routes/user/layout.data.tsx7 setTimeout(() => resolve('John Doe'), 500),CODE
LOWtests/integration/rsc-csr-routes/tests/index.test.ts134 { name: 'John Doe', selector: '.user-layout' },CODE
LOW…/rsc-csr-routes/src/loader/routes/user/layout.data.tsx7 setTimeout(() => resolve('John Doe'), 500),CODE
LOWpackages/toolkit/utils/compiled/gzip-size/index.d.ts65 const text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.CODE
LOWpackages/toolkit/utils/compiled/gzip-size/index.d.ts65 const text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/toolkit/utils/compiled/mime-types/index.js14 */var n=i(692);var s=i(17).extname;var o=/^\s*([^;\s]*)(?:;|\s|$)/;var c=/^text\//i;e.charset=charset;e.charsets={lookuCOMMENT