Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives
Google, Microsoft, Mozilla, and MDN released Modern Web Guidance, a CLI tool that injects modern web platform patterns into coding agent context windows.
summary is enough The project provides a useful CLI and modern web guidelines for AI agents, though the core concept and caveats are easily grasped from the summary and discussion.
summary
Modern Web Guidance is a collaborative initiative by major browser vendors and MDN that offers a CLI tool to inject modern web platform best practices into LLM coding agents. It aims to prevent models from generating bloated legacy JavaScript by steering them toward native browser features like container queries, the Temporal API, and view transitions. While praised for reducing framework boilerplate, the community heavily debates its heavy reliance on features that lack cross-browser parity.
key points
- The package installs via npx and provides interactive wizards, searches, and a legacy pattern scanner for local codebases.
- It covers over 200 real-world use cases including modern CSS layouts, native components, and advanced JavaScript APIs.
- Commenters raised alarms that many recommended APIs are currently stable only in Chrome, risking browser compatibility friction.
who should read it
Frontend engineers and developers building applications with AI coding assistants.
discussion mixed
consensus
Commenters widely praise the utility of steering AI away from legacy patterns, but closely scrutinize the cross-browser compatibility of the suggested APIs.
pushback
Critics argue the guidance leans too heavily on Chrome-only or bleeding-edge features, potentially worsening browser monoculture.
Here's a list of browser features the skills will tell your agent to use that are stable in Chrome but not supported by Firefox and Safari:
CSS @function CSS calc-size() CSS interpolate-size CSS corner-shape CSS border-shape CSS flex-wrap: balance CSS text-fit CSS text-decoration-skip-spaces CSS scroll-axis-lock CSS scroll-target-group CSS :target-current CSS scroll-initial-target CSS container scroll-state queries scrollsnapchange event scrollsnapchanging event HTML focusgroup Element.startViewTransition() CSS view-transition-scope Interest Invokers (interestfor) LanguageModel (Prompt …
It compiles a specific, useful list of recommended browser features that are currently stable in Chrome but lack support in Firefox and Safari.
Generated by an LLM from the article and thread. Check the sources before relying on it.