Laravel Markdown Response is a package that allows Laravel applications to serve Markdown versions of HTML pages, primarily intended for AI agents and bots. It is created by Spatie, a company known for its open-source Laravel packages. The package enhances accessibility to AI crawlers and tools by delivering clean, structured content.
Key features of Laravel Markdown Response include the automatic detection of Markdown requests via Accept headers, URL suffixes (.md), or known AI bot user agents. It offers driver-based HTML-to-Markdown conversion, utilizing local PHP, Cloudflare Workers AI, or markdown.new. Converted responses are cached to improve performance. The package also allows HTML preprocessing before conversion and Markdown post-processing for cleaning up content.
While specific pricing information isn't available, Spatie encourages users to support their work through purchasing their products. The package itself is open-source, suggesting it may be available for free. Laravel Markdown Response is currently available and can be integrated into Laravel projects to provide AI-friendly content.