Keep your coding agent up to date with the latest web best practices
This report summarizes scanner evidence for GoogleChrome/modern-web-guidance with 27,037 GitHub stars. SynthScan examined 42,110 lines of code across 250 source files, recording 49 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.
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-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 42 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 14 finding(s).
Which changes need focused human review? 49 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
The scanner identified 49 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …web-guidance/guides/security/verify-email-ownership.md | 86 | ### Step 1: Parse the SD-JWT claims and validate the email address | COMMENT |
| LOW | …web-guidance/guides/security/verify-email-ownership.md | 113 | ### Step 2: Validate DNS TXT delegation and load the issuer JWKS | COMMENT |
| LOW | …web-guidance/guides/security/verify-email-ownership.md | 138 | ### Step 3: Verify the EVT signature and Key Binding JWT (`KB-JWT`) | COMMENT |
| LOW | …/ui-behaviors/consistent-cross-document-transitions.md | 21 | ### Step 1: Opt in to Cross-Document View Transitions | COMMENT |
| LOW | …/ui-behaviors/consistent-cross-document-transitions.md | 44 | ### Step 2: Block Rendering Until Critical Scripts Execute | COMMENT |
| LOW | …/ui-behaviors/consistent-cross-document-transitions.md | 62 | ### Step 3: Block Rendering Until Key DOM Elements Are Parsed | COMMENT |
| LOW | …/ui-behaviors/consistent-cross-document-transitions.md | 151 | ### Step 4: Use Media Queries for Responsive Render Blocking | COMMENT |
| LOW | …/ui-behaviors/consistent-cross-document-transitions.md | 178 | ### Step 5: Use pagereveal for Context-Dependent Transitions (Optional) | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-reveal.md | 11 | ### Step 1: Mark up the swipe wrapper, content, and revealed panel | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-reveal.md | 45 | ### Step 2: Configure the horizontal snap container and `overscroll-behavior: chain` | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-reveal.md | 112 | ### Step 3: Reveal controls when trigger button is activated | COMMENT |
| LOW | …dance/guides/ui-behaviors/same-document-transitions.md | 13 | ### Step 1: Wrap State Changes in `startViewTransition` | COMMENT |
| LOW | …dance/guides/ui-behaviors/same-document-transitions.md | 24 | ### Step 2: Assign Shared Transition Names | COMMENT |
| LOW | …dance/guides/ui-behaviors/same-document-transitions.md | 118 | ### Step 3: Fix Aspect Ratio "Stretching" | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 13 | ### Step 1: Mark up the list with track and content | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 47 | ### Step 2: Configure the track as a horizontal snap container with three snap points | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 148 | ### Step 3: Add the action icons to the list item | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 240 | ### Step 4: Detect the commit gesture with `IntersectionObserver` | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 465 | ### Step 5: Use the action and label that fits your use case | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ern-web-guidance/guides/security/digital-signatures.md | 141 | export function supportsPostQuantumSignatures() { | CODE |
| LOW | …/modern-web-guidance/guides/security/quick-sign-ins.md | 79 | async function authenticateWithImmediateUi() { | CODE |
| LOW | …/modern-web-guidance/guides/security/quick-sign-ins.md | 197 | async function authenticateWithImmediateUi() { | CODE |
| LOW | …web-guidance/guides/security/client-side-encryption.md | 198 | export function supportsPostQuantumEnvelope() { | CODE |
| LOW | …web-guidance/guides/security/passkey-authentication.md | 98 | async function initializeConditionalAutofill() { | CODE |
| LOW | …web-guidance/guides/security/passkey-authentication.md | 136 | async function triggerButtonAuthentication() { | CODE |
| LOW | …odern-web-guidance/guides/security/validate-origins.md | 101 | export function handleSandboxedWidgetMessage(event, expectedWidgetWindow) { | CODE |
| LOW | …odern-web-guidance/guides/security/validate-origins.md | 167 | export function checkSameOriginWithFallback(candidate) { | CODE |
| LOW | …odern-web-guidance/guides/security/validate-origins.md | 180 | export function checkSameSiteWithFallback(candidate) { | CODE |
| LOW | …dance/guides/security/restrict-outbound-connections.md | 28 | export function normalizeAllowlistPattern(rawPattern) { | CODE |
| LOW | …dance/guides/security/restrict-outbound-connections.md | 43 | export function buildConnectionAllowlistHeader({ | CODE |
| LOW | …dance/guides/security/restrict-outbound-connections.md | 72 | export function setConnectionAllowlistHeaders(res, options = {}) { | CODE |
| LOW | …web-guidance/guides/performance/break-up-long-tasks.md | 44 | async function processLargeArrayWithFallback(items) { | CODE |
| LOW | …/guides/performance/detect-initial-visibility-state.md | 61 | function getFallbackVisibilityInfo() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n-web-guidance/guides/forms/select-menu-interaction.md | 19 | The "placeholder" option is key here. | CODE |
| LOW | …n-web-guidance/guides/security/passkey-registration.md | 50 | name: "user@example.com", | CODE |
| LOW | …n-web-guidance/guides/security/passkey-registration.md | 51 | displayName: "Jane Doe", | CODE |
| LOW | …/modern-web-guidance/guides/ui-components/accordion.md | 11 | <summary>Lorem ipsum dolor sit amet?</summary> | CODE |
| LOW | …/modern-web-guidance/guides/ui-components/accordion.md | 11 | <summary>Lorem ipsum dolor sit amet?</summary> | CODE |
| LOW | …/modern-web-guidance/guides/ui-components/accordion.md | 41 | <summary>Lorem ipsum dolor sit amet?</summary> | CODE |
| LOW | …/modern-web-guidance/guides/ui-components/accordion.md | 41 | <summary>Lorem ipsum dolor sit amet?</summary> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-web-guidance/guides/ui-components/stack-drill-down.md | 221 | // Tracks which element to restore focus to when the user swipes back | COMMENT |
| LOW | …-web-guidance/guides/ui-components/stack-drill-down.md | 241 | ```js | COMMENT |
| LOW | …-web-guidance/guides/ui-components/stack-drill-down.md | 361 | // If the URL isn't handled by this section of the app (resolveUrl | COMMENT |
| LOW | …-web-guidance/guides/ui-components/stack-drill-down.md | 461 | // can bail if they're already aligned. This is reached when the | COMMENT |
| LOW | …-web-guidance/guides/ui-components/stack-drill-down.md | 501 | COMMENT | |
| LOW | …web-guidance/guides/ui-components/navigation-drawer.md | 221 | // ::after spacer) places the initial scroll position at the closed | COMMENT |
| LOW | …rn-web-guidance/guides/ui-behaviors/swipe-to-remove.md | 281 | // Upgrade the row into "swipeable" mode. This is the gate for all the CSS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 453 | - **[agentic-forms](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/webm | CODE |
| MEDIUM | README.md | 454 | - **[agentic-javascript-tools](https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/ | CODE |