Rich Haines ba72745043 Add AI agent detection via @vercel/agent-readability (#77)
* Add @vercel/agent-readability dependency

* Add AI agent detection via @vercel/agent-readability

* Fix md-tracking types, add Vary header and discovery options

- Update TrackMdRequestParams to include 'agent-rewrite' requestType and detectionMethod
- Import DetectionMethod type from @vercel/agent-readability
- Include detectionMethod in tracking fetch body
- Add Vary: Accept header on agent-rewrite responses
- Add discovery options (sitemapUrl, indexUrl) to generateNotFoundMarkdown

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update pnpm-lock.yaml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 14:24:03 +02:00
2025-09-09 13:20:16 -07:00
2026-02-04 00:16:22 -08:00
2025-10-26 13:26:33 -07:00
2026-02-12 11:31:07 -08:00
2026-02-11 17:04:12 -08:00
2026-02-04 00:16:22 -08:00
2025-10-26 13:27:23 -07:00
2025-09-09 13:13:02 -07:00
2026-02-11 09:10:08 -08:00
2025-10-08 11:57:29 -07:00
2026-02-11 09:22:04 -08:00
2025-10-26 13:26:33 -07:00
2025-10-08 11:57:29 -07:00
2026-02-11 17:01:37 -08:00

components.build

An open-source standard for building modern, composable, and accessible UI components.

About

components.build is a formal specification that establishes best practices and guidelines for building open-source UI components for the modern web. Co-authored by Hayden Bleasel and shadcn, this specification aims to help open-source maintainers and senior front-end engineers create components that are:

  • Composable - Built with composition over inheritance, easily combined to create complex UIs
  • Accessible - WCAG-compliant with proper ARIA attributes and keyboard navigation
  • Customizable - Easy to theme and style for any design system
  • Performant - Lightweight with minimal dependencies
  • Transparent - Full code visibility and ownership
  • Well-documented - Clear examples and developer-friendly

While examples use React/TypeScript, the core principles are framework-agnostic and applicable to Vue, Svelte, Angular, and other modern frameworks.

Contributing

Contributions are welcome! This specification is informed by the open-source community and real-world component libraries.

To contribute, please read the contributing guide.

License

This project is open source and available under the MIT License.

S
Description
Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs,…
Readme 2 MiB
Languages
MDX 90.9%
TypeScript 8.9%
CSS 0.2%