Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives

401 points · 132 comments on HN · read original →

Points and comments are a snapshot, not live.

A cross-browser project provides CLI tools to steer coding agents toward modern web APIs instead of legacy JavaScript patterns.

Modern Web Guidance, stewarded by Google Chrome, Microsoft Edge, Mozilla Firefox, and MDN, packages 250 modern web features into token-efficient guides for coding agents. The CLI offers search, retrieval, and legacy-scanning commands. Covered disciplines include CSS layout, performance, accessibility, forms/UI, and built-in AI APIs. The project aims to reduce bloated legacy code generated by LLMs trained on outdated examples, instead directing agents toward native browser primitives with better performance and accessibility.

The guides, designed to fit context windows, include 140 CSS and layout features, plus disciplines like View Transitions, container queries, Anchor Positioning, and scheduler.yield. The project emphasizes responsible fallbacks over heavy polyfills.

What commenters are saying

Opinions split on the value and neutrality of this project. Supporters welcome the shift from bloated legacy patterns to modern primitives, with one commenter saying "This is exactly what I need" and praising the reduced code complexity. Skeptics argue best practices are dead in the AI era, warning that not reading AI-generated code leads to unmaintainable codebases. A significant concern involves browser dominance: several commenters worry that Chrome and its proxies (Edge) concentrate too much power over web standards, despite Mozilla's involvement. Counter-arguments note that Firefox is a genuinely independent engine and that the stewardship includes cross-browser baseline agreement. Practical suggestions include distributing guides as plain markdown on GitHub Pages for agent retrieval without installation, rather than requiring npm.