The Problem
AI agents see garbage
JS-rendered sites return framework noise to crawlers. Your carefully crafted content is invisible.
Cloudflare charges $20/mo
Their Markdown conversion is locked behind the Pro plan. That's $240/year per domain. This package is free and open source.
You're losing AI traffic
When competitors are readable and you aren't, they get cited instead. This is the new SEO.
See the difference
<div id="__next">
<div class="layout_main__abc">
<nav class="nav_root__xyz">
<div class="nav_inner__def">
<a class="nav_logo__ghi">...</a>
<ul class="nav_links__jkl">
<li class="nav_item__mno">...</li>
</ul>
</div>
</nav>
<main class="page_wrapper__pqr">
<div class="content_root__stu">
<script>self.__next_f.push(...)</script>
<template>...</template>---
title: "About Us"
description: "We build tools for developers"
type: "AboutPage"
---
# About Us
We build tools that make the web
more accessible to AI agents.
## Our Mission
Ensure every website can communicate
with large language models.Features
3-File Setup
Add a proxy, route handler, and llms.txt endpoint. That's it. Works with Next.js 16+.
JSON-LD Frontmatter
Structured data from your pages is preserved as YAML frontmatter in the Markdown output.
llms.txt Protocol
AI discovery protocol built in. Tell AI agents what pages exist and how to read them.
Intelligent Filtering
Automatically strips nav, footer, ads, scripts, and other non-content elements.
GFM + Extended Markdown
Tables, task lists, definition lists, figures, abbreviations, and more.
Token Counting
Every response includes an x-markdown-tokens header with the estimated token count.
Stop paying Cloudflare $240/year per domain
| Feature | Cloudflare | next-markdown-mirror |
|---|---|---|
| Price | $20/domain/month | Free, MIT licensed |
| Self-hosted | No | Yes |
| Framework integration | None (edge proxy) | Native Next.js integration |
| JSON-LD extraction | No | Yes |
| llms.txt | No | Yes |
| Custom filtering | Limited | Full control |
| Token counting | No | Yes |
| Open source | No | Yes |