spatie

Serve markdown versions of your HTML pages to AI agents and bots

45
3
100% credibility
Found Feb 18, 2026 at 31 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

A tool for website projects that turns regular pages into clean, simple text versions for AI bots and special requests.

How It Works

1
๐ŸŒ Own a website

You run a website packed with great content that smart AI visitors want to explore.

2
๐Ÿค– AI visitors arrive

AI bots and assistants visit your site but find the fancy layout hard to read.

3
๐Ÿ“ฆ Add the helper tool

You bring in this friendly tool to create simple text versions just for them.

4
โš™๏ธ Choose your style

Pick how the tool spots text requests, like special endings on web addresses or bot signals.

5
๐Ÿ”— Tag your pages

Add easy markers to the pages you want to share as clean text.

6
๐Ÿงช Try a text link

Visit yourpage with a text ending and watch it turn into neat, readable lines.

โœ… Bots love it

Your site now delights AI visitors with perfect text copies, making your info easy to grasp and share.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 31 to 45 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is laravel-markdown-response?

This Laravel package lets you serve clean markdown versions of your HTML pages to AI agents and bots, detecting requests via Accept: text/markdown headers, .md URL suffixes like github serve d, or user agents from GPTBot and ClaudeBot. It converts rendered HTML on-the-fly, strips scripts, navs, and footers for better readability, then caches results to avoid recomputing. Built in PHP for Laravel apps, it handles serve markdown files seamlessly alongside regular HTML pages.

Why is it gaining traction?

Unlike manual duplication or nginx serve markdown hacks, it auto-detects bot traffic and middleware-wraps routes for instant markdown responses, with options for local processing, Cloudflare AI, or free markdown.new service like nextjs serve markdown but server-side. Caching ignores utm params for efficiency, plus a CLI command clears the store and testing fakes verify conversions without hitting APIs. Developers love the zero-config start for agent-friendly sites, solving para que serve markdown optimization without extra endpoints.

Who should use this?

Laravel backend devs running public docs sites, blogs, or APIs crawled by PerplexityBot and similar, who want to serve markdown as html alternatives to boost AI training data quality. Docs teams tired of static github serve static files setups needing dynamic content. Full-stack teams building bot-optimized pages without separate markdown generators.

Verdict

Promising for Laravel sites targeting agents and bots, with solid docs and tests despite only 10 stars and 1.0% credibility score signaling early maturity. Try it on low-traffic routes first; pair with caching for production.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.