spatie/laravel-markdown-response
Serve markdown versions of your Laravel HTML pages for AI agents and bots. Detect markdown requests via Accept: text/markdown, known user agents, or .md URLs. Driver-based conversion (local PHP or Cloudflare Workers AI), with caching and HTML preprocessing.
html2text).For Executives: "This package lets us serve our web content in two formats simultaneously—HTML for users and Markdown for AI agents—without extra engineering work. It’s a low-risk way to improve how our product interacts with AI tools (e.g., chatbots, search, or internal analytics), reducing costs and improving data quality. Think of it as a ‘universal translator’ for content, enabling us to leverage AI more effectively while keeping our existing web infrastructure intact."
For Engineering:
*"Spatie’s laravel-markdown-response is a lightweight, well-documented Laravel package that adds a single HTTP header (Accept: text/markdown) to serve Markdown versions of your HTML responses. It’s ideal for:
How can I help you explore Laravel packages today?