Product Introduction
Definition: returnmd is a specialized developer tool and web analytics middleware designed to identify and categorize AI agent traffic, LLM crawlers, and automated bots visiting a website. Operating as a performance-optimized middleware layer, it dynamically serves clean, streamlined markdown versions of web pages to AI coding assistants and autonomous agents while delivering privacy-first, cookieless web analytics for human and machine traffic alike.
Core Value Proposition: As AI coding assistants like Claude Code, Cursor, and Codex increasingly scrape developer documentation and web applications to write code, standard HTML delivery wastes critical bandwidth by transmitting heavy UI layouts, JavaScript bundles, and CSS stylesheets. returnmd exists to solve this inefficiency by providing precise AI agent traffic attribution, optimizing LLM context windows through clean markdown routing, and offering comprehensive analytics for modern web applications built on Next.js, Astro, Hono, and Cloudflare Workers.
Main Features
Smart Agent Classification and Markdown Routing: Powered by the @mintlify/agent-traffic classification engine, returnmd evaluates incoming HTTP request headers to distinguish between human visitors, search engine crawlers, AI scraping bots, and coding agents. When an automated agent or a user explicitly requests a markdown endpoint (such as appending .md to a URL), the middleware intercepts the request and serves a pre-compiled markdown representation of the page, embedding a standard Link: rel="alternate" HTTP header within standard HTML responses for seamless machine discovery.
Automated Sitemap Scraping and Markdown Caching: Upon every production deployment, returnmd automatically crawls and scrapes the target website using its sitemap, parsing the HTML structure into clean, lightweight markdown documents. This pre-rendering pipeline ensures that autonomous coding agents and LLMs instantly receive up-to-date documentation and code references without placing heavy compute or database query loads on the origin server during runtime execution.
Cookieless Privacy-First Web Analytics: The platform tracks user acquisition and agent engagement metrics without relying on tracking cookies, local storage tracking, or capturing full IP addresses. Analytics dashboards display granular telemetry including unique visitors, pageviews by day, top-performing landing pages, HTTP referrers, geographic countries, UTM marketing campaigns, and explicit breakdowns of which specific AI crawlers and autonomous agents are consuming site content.
Problems Solved
Pain Point: Modern web development frameworks generate bloated HTML payloads loaded with client-side scripts, stylesheets, and DOM structures that degrade the ingestion efficiency of LLMs and AI coding agents. Furthermore, traditional analytics tools completely fail to differentiate between human pageviews and automated AI scraping, leaving developers blind to how autonomous agents interact with their documentation and APIs.
Target Audience: Full-stack developers, technical content writers, developer relations (DevRel) engineers, API-first product companies, and technical marketing managers maintaining documentation sites, SaaS blogs, and developer portals.
Use Cases: Optimizing documentation sites for Claude Code and Cursor ingestion to improve code-generation accuracy; tracking the exact volume and frequency of LLM scraper traffic hitting a technical blog; serving bandwidth-efficient text payloads to command-line web scrapers and headless browsing agents.
Unique Advantages
Strengths & Limitations (Pros & Cons): Pros include zero-cookie compliance that bypasses GDPR/CCPA consent banner requirements, extremely lightweight middleware architecture compatible with modern edge runtimes (Cloudflare Workers, Bun), and automated post-deployment sitemap scraping that eliminates manual markdown file maintenance. Cons include the limitation of only serving static or server-rendered markdown content (dynamic, client-rendered single-page applications require proper SSR configuration), and the current focus strictly on markdown payloads rather than structured JSON-LD or API schemas.
Key Alternatives & Differentiation: Traditional web analytics platforms like Google Analytics or Plausible offer robust human tracking but completely lack AI agent attribution, bot classification, and automated markdown serving capabilities. Standard SEO sitemap generators create static XML files for search engines but do not dynamically route lightweight text formats to LLM crawlers. returnmd differentiates itself by combining real-time LLM traffic attribution directly with automated markdown generation at the middleware level, bridging the gap between human web analytics and AI agent optimization.
Frequently Asked Questions (FAQ)
How does returnmd identify AI agents visiting my website?
returnmd uses advanced request classification powered by the @mintlify/agent-traffic library, which inspects HTTP user-agent strings, behavioral patterns, and request headers to accurately distinguish between human users, search engine crawlers, AI scraping bots, and coding agents like Cursor and Claude Code.
Do I need to manually write markdown files for every page? No. After each production deployment, returnmd automatically scrapes your website using your sitemap, converts the HTML pages into clean markdown files, and caches them for instant delivery to requesting AI agents and developers.
Is returnmd compatible with Next.js and Cloudflare Workers? Yes. returnmd is built to work seamlessly with any web framework or runtime environment that natively supports standard Request and Response objects, including Next.js, Hono, Astro, TanStack Start, Bun, and Cloudflare Workers.
Does returnmd use cookies or track user IP addresses? No. returnmd is engineered to be entirely cookieless and privacy-first, recording page views, referrers, and agent traffic metrics without storing full IP addresses or requiring user consent banners.
