jdevalk/specification.website
关于
网站规范——HTML、无障碍、安全性、SEO 和智能体适配性。与平台无关,有来源依据,采用 MIT 许可证。
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文The Website Specification
The website specification — from <title> to /.well-known/security.txt, from WCAG contrast to llms.txt. Platform-agnostic, sourced on every page, written for humans and agents. MIT licensed, open for pull requests.
Live site: https://specification.website MCP server: https://mcp.specification.website/mcp
What this is
The web is a layer cake of standards: WHATWG defines HTML, W3C ratifies WCAG, the IETF publishes the RFCs behind security headers and /.well-known/ URIs, IANA registers the namespaces, search engines publish their own rules, browsers add quirks. Almost nobody carries the whole picture.
This site collects the slices into one platform-agnostic specification — sources cited on every page.
It is not a framework. It is not a tutorial. It is a spec, in the same way the HTML Living Standard is a spec: outcomes, requirements, references.
What this is not
- Not platform-specific. No "use this Next.js plugin" advice — the spec describes the outcome, you choose the implementation.
- Not opinion. Where there is no settled standard, the spec says so.
- Not a marketing site. No newsletter capture. No cookies. Aggregate Plausible analytics; that's it.
Categories
- Foundations — HTML, head, document basics.
- SEO — search visibility.
- Accessibility — WCAG-aligned rules.
- Security — headers, transport, policies.
- Well-Known URIs — agreed paths under
/.well-known/. - Agent Readiness — making a site legible to AI agents.
- Performance — Core Web Vitals, caching, fonts.
- Privacy — consent, signals, respecting choice.
- Resilience — graceful failure.
- Internationalisation — language, locale, direction.
Development
Requirements: Node.js 22.22.3+, npm. Cloudflare Pages uses the version pinned in .node-version.
npm install
npm run dev # http://localhost:31337
npm run build # static output in ./dist
npm run preview # serve ./dist on port 31337
The dev server runs on port 31337 by convention (because of course it does).
Adding or changing a spec page
- Find the right category under
src/content/spec/<category>/. - Copy an existing
.mdfile — for example,src/content/spec/foundations/title.md. - Fill in the front matter (see schema in
src/content.config.ts). At minimum:title,summary,category,status,order, andsources. - Write the body. Sections:
## What it is,## Why it matters,## How to implement,## Common mistakes,## Verification. - Open a PR.
The build will fail if the schema is invalid — that is intentional.
Everything derived from the spec content updates automatically: /spec/, /checklist/, /llms.txt, /llms-full.txt, /sitemap-index.xml, /rss.xml, per-page .md endpoints, the Pagefind search index, and the MCP server's bundled data. Never hand-edit those; edit the source markdown.
Status levels
- Required — the web platform contract breaks without it.
- Recommended — modern sites should do it.
- Optional — depends on context.
- Avoid — outdated, harmful, or actively superseded.
Sources
Every page cites at least one source. The site draws on:
- WHATWG HTML Living Standard
- MDN Web Docs
- WCAG 2.2 and the Understanding documents
- IETF RFCs for protocol-level items
- sitemaps.org, schema.org, llmstxt.org
- Google Search Central, web.dev
- Yoast Developer Portal
- Equalize Digital Accessibility Checker docs
- WP Accessibility Knowledge Base
- Is It Agent Ready?
- Overlay Fact Sheet
MCP server
A separate Cloudflare Worker in mcp/ exposes the spec to MCP-aware agents. See mcp/README.md for tools, the connection config, and how to deploy.
Licence
Content is licensed under CC BY 4.0. Code is licensed under MIT. Use it, fork it, ship it.
Contributing
See CONTRIBUTING.md. Three rules: cite your sources, stay platform-agnostic, be honest about status.
Security
See SECURITY.md or /.well-known/security.txt.
探索相关项目
加载中…