mdreader - self-hosted HTML to Markdown reader, compatible with the r.jina.ai API
GET /https://example.com
POST / {"url": "https://example.com"}
POST / {"url": "https://example.com", "html": "..."} (convert your own HTML)
Headers (same as Jina Reader):
Accept: application/json JSON response instead of text
X-Return-Format markdown (whole page) | html | text (default: main content)
X-With-Links-Summary: true|all X-With-Images-Summary: true
X-Target-Selector / X-Remove-Selector / X-Wait-For-Selector CSS selectors
X-Timeout: X-No-Cache: true X-Cache-Tolerance:
X-Engine: browser|direct X-Retain-Images: none X-Locale / X-Set-Cookie / X-User-Agent
GET /health for monitoring.