{"repo":"JakubKontra/next-markdown-mirror","free":true,"listed":false,"github":"https://github.com/JakubKontra/next-markdown-mirror","clone":"git clone https://github.com/JakubKontra/next-markdown-mirror.git","description":"Self-hosted Markdown for AI agents — serve Markdown instead of HTML when AI agents request it","language":"TypeScript","stars":12,"topics":["ai","crawler","llms-txt","markdown","nextjs","seo","ssr","ai-agents","html-to-markdown","llm"],"license":"MIT","category":"ai-agents","readme_excerpt":"next-markdown-mirror Self-hosted Markdown for AI agents — serve clean Markdown instead of HTML when AI agents request your pages. Full docs The Problem AI agents waste tokens parsing your nav bars, footers, cookie banners, and ad scripts as \"content.\" HTML boilerplate can 2-5x the token count vs clean Markdown — and AI tools citing your site produce lower-quality responses because of the noise. Why not Cloudflare? Cloudflare offers automatic Markdown conversion — but it requires their Pro plan at $20/month per domain ($240/year). For 5 domains, that's $1,200/year. next-markdown-mirror is free and open source : next-markdown-mirror Cloudflare Pro - --------------------- ---------------- 1 domain $0 $240/year 5 domains $0 $1,200/year 10 domains $0 $2,400/year Plus: self-hosted (deploy anywhere), full control over filtering and frontmatter, built-in JSON-LD extraction and llms.txt support. Quick Start Install: App Router setup (Next.js 16+, 3 files) 1. Proxy — intercepts markdown requests and rewrites to the handler: 2. Route handler — fetches your HTML internally and converts to Markdown: 3. llms.txt — AI discovery file: Pages Router setup (3 files) 1. Middleware — intercepts markdown requests and rewrites to the API route: 2. API route handler — fetches your HTML internally and converts to Markdown: 3. llms.txt — AI discovery file: How it works Features - JSON-LD → YAML frontmatter — structured data extracted and prepended automatically - llms.txt protocol — built-in AI discov","default_branch":null,"files":null,"tree":[],"storefront":"/r/JakubKontra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JakubKontra/next-markdown-mirror/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."}