GoogleChrome/modern-web-guidance-src

▲ 3,575 stars today★ 9,068⑂ 751

Keep your coding agent up to date with the latest web best practices

About GoogleChrome/modern-web-guidance-src

GoogleChrome/modern-web-guidance-src is an open-source project on GitHub, mainly written in TypeScript. Keep your coding agent up to date with the latest web best practices It currently holds 9,068 stars and 751 forks with 395 open issues, and was last pushed on 2026-11-19 (repository created 2026-01-27).

Project Overview

AI Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository GoogleChrome/modern-web-guidance-src · default branch main · size 177891 KB · watchers 56 · source: GitHub REST API and repository README

README

https://github.com/GoogleChrome/modern-web-guidance-src/blob/HEAD/Modern Web Guidance Modern Web Guidance (Source)

This repo is the source repository for GoogleChrome/modern-web-guidance and includes the code and documentation for authoring, calibrating, and evaluating its contents.

Modern Web Guidance is a set of skills that embed web platform expertise, best practices, and browser compatibility data directly into your coding agents. It helps to steer your coding agents away from legacy patterns, and instead toward solutions that harness the power and capabilities of the modern web platform.

See CONTRIBUTING.md and GOVERNANCE.md for how we work on the project and orientation of the codebase.

---

Stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox, and MDN teams, alongside the web development community.

Documentation · Eval Dashboard · Source Code · Report an Issue

Image from the project README Quickstart

npx modern-web-guidance@latest install

This command runs an interactive wizard to install Modern Web Guidance. See Alternative Installation Methods below. Requires Node.js 22 or later.

Try it out (without installing)

# Search for relevant guides
npx modern-web-guidance@latest search "animate a dialog modal backdrop"

Retrieve a guide by ID

npx modern-web-guidance@latest retrieve "animate-to-from-top-layer"

Scan a codebase for legacy patterns to modernize

npx modern-web-guidance@latest legacy-scan .

Image from the project README Why?

Coding agents often default to older patterns because LLM training data contains vast amounts of legacy code. This often leads them to generate bloated JavaScript for tasks that now have native, high-performance web platform solutions.

Even if a model knows an API exists, it often lacks the density of real-world, modern implementation patterns required for production-ready code.

Modern Web Guidance bridges this gap. Our skill's CLI returns targeted, expert-curated guidelines directly into your agent's context window, focusing on:

Image from the project README What's Included?

We cover the past several years of the web platform's new features, all the way up to the cutting edge. The guides are designed to be token-efficient; we run evals enabling us to prune lowest-common-denominator content that models already know.

Core Disciplines

🎨 User Experience

Smooth visual states (View Transitions, entry/exit animations, parallax scroll, CSS scrollbar-color).

📐 CSS Layout

Modern layout systems (container queries, subgrid, modern color spaces like oklch, text-wrap tuning, and line-height trimming).

⚡ Performance

Speed optimizations (instant preloading, Interaction to Next Paint (INP) diagnostics, and scheduling tasks via scheduler.yield).

📝 Forms & UI

Native components (Anchor Positioning for tooltips, Popover API, dialogs, :user-invalid validation, and auto-sizing fields).

♿ Accessibility

Important considerations (screen reader and keyboard operability, content navigation and discoverability).

🤖 Built-in AI

Local client models (native translation, summarization, and language detection APIs).

_View an example:_ the navigation-drawer guide.

The full list

262 modern web features

CSS & Layout (140 features)

| | | | | :--- | :--- | :--- | | ::backdrop | content-visibility | progress() | | ::details-content | contrast-color() | reading-flow | | ::file-selector-button | Cross-document view transitions | Relative colors | | ::placeholder | currentColor | rem | | ::selection | Custom highlights | resize (CSS property) | | :dir() | Custom properties | revert | | :focus-visible | display animation | revert-rule | | :focus-within | Element-scoped view transitions | Safe area inset environment variables | | :has() | em unit | Scroll marker target pseudo-classes | | :host-context() | field-sizing | Scroll method promises | | :is() | filter | Scroll snap | | :modal | flex-wrap: balance | Scroll snap events | | :not() | Flexbox | scroll-axis-lock | | :nth-child() of <selector> | font-size | scroll-behavior | | :placeholder-shown | font-size-adjust | Scroll-driven animations | | :user-valid and :user-invalid | Forced colors | scroll-initial-target | | :where() | Gradient interpolation | scroll-target-group | | @function | Gradients | scrollbar-color | | @scope | Grid | scrollbar-gutter | | @starting-style | Grid lanes | scrollbar-width | | @supports | Hyphenation | scrollend | | abs() and sign() | image-set() | scrollIntoView() | | accent-color | Individual transform properties | Shadow parts | | Active view transition | inherit | sibling-count() and sibling-index() | | Alt text for generated content | initial | Sticky positioning | | Anchor position container queries | Interaction media queries | Subgrid | | Anchor positioning | interpolate-size | System colors | | Animations (CSS) | isolation | Text overflow | | appearance | Lab and LCH | Text stroke and fill (compatibility prefixes) | | aspect-ratio | light-dark() | text-box | | at-rule() | line-clamp | text-decoration | | attr() | line-height | text-decoration-skip-ink | | background-blend-mode | linear() easing | text-decoration-skip-ink: all | | background-clip: border-area | Logical properties | text-decoration-skip-spaces | | border-radius | Masks | text-wrap | | box-shadow | min(), max(), and clamp() | text-wrap: balance | | calc-size() | mix-blend-mode | text-wrap: pretty | | Cascade layers | Nesting | transition-behavior | | ch unit | Oklab and OkLCh | Transitions (CSS) | | clip-path | overflow-clip-margin | Trigonometric functions (CSS) | | color-mix() | overflow-wrap | unset | | color-scheme | overflow: clip | user-select | | Conic gradients | overlay | View transitions | | Container queries (size) | overscroll-behavior | view-transition-class | | Container scroll-state queries | prefers-color-scheme media query | Viewport units | | Container style queries | prefers-contrast media query | Web animations | | Content | prefers-reduced-motion media query | |

HTML & DOM (37 features)

| | | | | :--- | :--- | :--- | | :autofill | <video> | HTML-in-canvas | | :indeterminate | Autonomous custom elements | inert | | <audio> | blocking="render" | Interest invokers | | <details> | Customizable <select> | Invoker commands | | <dialog closedby> | Declarative shadow DOM | Lazy-loading media | | <dialog> | DOM | moveBefore() | | <input type="checkbox" switch> | Email, telephone, and URL <input> types | MutationObserver | | <input type="range"> | Fetch priority | Mutually exclusive <details> elements | | <input> | focusgroup | Popover | | <link rel="expect"> | Form-associated custom elements | popover="hint" | | <link rel="preload"> | hidden="until-found" | Shadow DOM | | <progress> | [HTML setter methods](https://web-platform-dx.github

GitHub Stars & Activity

9,068Stars
751Forks
395Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars9,068
Forks751
Open issues395
Primary languageTypeScript
LicenseApache-2.0
Stars gained today3,575
Created2026-01-27
Last pushed2026-11-19

Trending History

Weekly boardrank #12 · ▲ 3,575 stars

Related AI Projects

1

anomalyco / opencode

TypeScript★ 228,782⑂ 31,108▲ 256 stars
→
2

firecrawl / firecrawl

TypeScript★ 207,735⑂ 10,859▲ 920 stars
→
3

earendil-works / pi

TypeScript★ 123,506⑂ 15,955▲ 200 stars
→
4

colbymchenry / codegraph

TypeScript★ 78,502⑂ 5,227▲ 121 stars
→
5

Fission-AI / OpenSpec

TypeScript★ 75,560⑂ 5,164▲ 105 stars
→
6

twentyhq / twenty

TypeScript★ 61,374⑂ 10,155▲ 50 stars
→
7

appwrite / appwrite

TypeScript★ 58,542⑂ 5,916▲ 77 stars
→
8

mastra-ai / mastra

TypeScript★ 29,764⑂ 3,131▲ 28 stars
→

More AI Rankings