Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives ...
HN Best 30 @best30
Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives github.com · 323 points · 99 comments · HN thread
TL;DR Chrome, with Firefox, Edge and MDN, released Modern Web Guidance 1.0: a set of 200+ curated web-platform best-practice guides (about 1.7MB) packaged as an agent skill and a local search/CLI, so coding agents prefer native browser APIs over legacy div-and-JS patterns. The team reports agent pass rates on its evals rising from about 55% unguided to 92% guided, and adds a 'legacy-scan' command to find outdated patterns in existing code.
- Guides cover native features such as CSS.highlights, dialog/showModal, field-sizing, popover, View Transitions, Temporal, passkeys, and built-in AI APIs, each with code patterns, gotchas and fallbacks.
- Delivered as an npm CLI (install, search, retrieve, legacy-scan) plus plugins for Claude Code, Codex, Copilot, Antigravity and others; the search runs offline with a local embedding model and BM25.
- Eval harness runs about 200 tasks through Claude Code, Codex and Antigravity with and without the skill, using about 1,700 Playwright/AST assertions; reported uplift is roughly +27 to +36 points per model.
- Version 1.0 adds a static-analysis modernization workflow that flags legacy patterns in HTML, CSS, JS and package.json; the first release covers a narrow set of patterns, and the team says it catches only about 20% of guide topics so far.
- Experimental Origin Trial and volatile features are discoverable but gated behind an explicit .mwgrc opt-in.
- Telemetry is on by default and collects install counts, agent names, guide IDs and search queries; users can opt out with DISABLE_TELEMETRY=1.
Links in the post
- Modern Web Guidance v1.0 announcement: Chrome blog post announcing the 1.0 release, the cross-browser partnership, the modernization workflow, and customer case studies from Pensionbazaar, WeTV, note and MetaMask.
Discussion The thread is skeptical and mixed rather than hostile. Many commenters welcome a curated source of current web platform knowledge and share tips, but a large group worries that a Chrome-led project will steer the web toward Chrome-only APIs and make a Chrome monoculture worse. The maintainers (Paul Irish and Philip Walton) reply often, stressing the Firefox and Edge involvement, the Baseline-based fallback guidance, and the fetchLater rationale. Other threads cover whether agents will read generated code, token cost versus a simpler llms.txt, requests for a React equivalent, and jokes about the jargon in the 'receipts' and 'hill-climb' wording.
- Concern that Chrome steers web standards and monoculture (many): Several commenters see the project as Chrome using its influence to push its APIs onto all developers, and they compare it to IE6. Others reply that Firefox, Edge and Baseline are co-stewards and that the guides avoid the most Chrome-only APIs.
- Guides include too many non-baseline features (many): A commenter listed roughly 45 features that are stable in Chrome but missing from Firefox or Safari. The maintainers answer that each guide includes a support table and a documented fallback, but commenters argue agents will adopt them anyway, and that the default should be Widely Available only.
- Useful, a good resource for humans and agents (some): Several developers say they will use the guides, value them as a learning resource, and have already been reviewing PRs with similar checks. Some ask for a plain markdown index or llms.txt so agents can fetch it without installing anything.
- Wants automatic filtering by browser support (some): A commenter wants the tool to load only guides matching their target browsers without spending tokens on reasoning, and argues that deterministic filtering beats prose instructions. The maintainers say that most sites accept some progressive enhancement, so a config option may be considered later.
- Skeptical that the legacy scan is useful (a few): People who ran legacy-scan on their projects found only two or three issues. Maintainers say it is tuned for low false positives and will expand coverage.
- Best practices matter more as AI writes code (a few): One camp argues that maintainability and UX quality matter more when nobody reads the generated code. Others dispute the framing and say the tool is mainly about user-facing quality, not developer ergonomics.
Links from the comments
- Write-up on beaconing in practice, cited to explain why fetchLater is used for analytics.
- WebKit standards discussion on the fetchLater design, including questions raised by Apple.
- Source repo where maintainers say issues about incorrect or outdated guides should be filed.
- Post arguing for not using React, offered as an alternative for a commenter who asked about React guidance.
- Plain-text version of the full guide index, suggested by a maintainer as a way to fetch guides without installing anything.
#webPlatform #aiAgents #browserCompatibility #webDevelopment #chrome