Section 01
[Introduction] site-md: A Dual-Mode Content Delivery Solution for the AI Era
site-md is a lightweight middleware solution for Next.js applications, addressing the core conflict of traditional websites in the AI era: humans need aesthetic HTML interfaces, while AI agents excel at parsing structured Markdown. It intelligently detects the source of requests and automatically returns the corresponding format—HTML for humans, Markdown for AI—enabling dual presentation of the same content with no invasiveness (no need to refactor existing code), balancing user experience and machine readability.