{"repo":"KKonstantinov/markdown-for-agents","free":true,"listed":false,"github":"https://github.com/KKonstantinov/markdown-for-agents","clone":"git clone https://github.com/KKonstantinov/markdown-for-agents.git","description":"HTML to Markdown converter for AI agents. 90+% fewer tokens, one dependency, works everywhere.","language":"TypeScript","stars":29,"topics":["agents","ai","artificial-intelligence","markdown","typescript","ai-agents","content-negotiation","html-to-markdown","mcp","middleware"],"license":"MIT","category":"ai-agents","readme_excerpt":"markdown-for-agents Runtime-agnostic HTML to Markdown converter built for AI agents. One dependency, works everywhere. Convert any HTML page into clean, token-efficient Markdown — with built-in content extraction to strip away navigation, ads, and boilerplate. Inspired by Cloudflare's Markdown for Agents. Try it in the playground — paste a URL or HTML and see the conversion live. Audit any URL — no installation required: Features - Runtime-agnostic — Node.js, Bun, Deno, Cloudflare Workers, Vercel Edge, browsers - Content extraction — strip nav, footer, ads, sidebars, cookie banners automatically - Framework middleware — drop-in support for Express, Fastify, Hono, Next.js, and any Web Standard server - Content negotiation — respond with Markdown when clients send Accept: text/markdown - Token estimation — built-in heuristic token counter for LLM cost planning, with support for custom tokenizers - Plugin system — override or extend any element conversion with custom rules - Single dependency — only htmlparser2 (no DOM required) - ESM only — modern, tree-shakeable, with subpath exports - Fully typed — written in TypeScript with complete type definitions Install Python Also available as a pure Python package with zero dependencies: See the Python package docs for the full API, middleware (FastAPI, Flask, Django), and usage examples. Quick Start Content Extraction Real-world HTML pages are full of navigation, ads, sidebars, and cookie banners. Enable extraction mode to get just th","default_branch":null,"files":null,"tree":[],"storefront":"/r/KKonstantinov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KKonstantinov/markdown-for-agents/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."}