{"repo":"spatie/laravel-markdown-response","free":true,"listed":false,"github":"https://github.com/spatie/laravel-markdown-response","clone":"git clone https://github.com/spatie/laravel-markdown-response.git","description":"Serve markdown versions of your HTML pages to AI agents and bots","language":"PHP","stars":79,"topics":["ai","laravel","markdown","php"],"license":"MIT","category":"ai-agents","readme_excerpt":"Serve markdown versions of your HTML pages to AI agents and bots AI agents increasingly consume web content. This package lets your Laravel app serve markdown versions of HTML pages. Markdown requests are detected via Accept: text/markdown header, known AI user agent patterns, or .md URL suffix. The conversion is driver-based (local PHP or Cloudflare Workers AI), results are cached, and HTML can be preprocessed before conversion. Here's a quick example: Now when an AI agent visits /about or a user visits /about.md , they receive a clean markdown version of the page. You can also convert HTML to markdown directly: And test your conversions: Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Documentation All documentation is available on our documentation site. Testing You can run the tests with: Changelog Please see CHANGELOG for more information on what has changed recently. Contributing Please see CONTRIBUTING for details. Security Vulnerabilities Please review our security policy on how to report security vulnerabilities. Credits - Freek Van der Herten - All Contributors License The MIT License (MIT). Please see License File for more information.","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-markdown-response/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}