cnkang/nginx-markdown-for-agents

Self-hostable NGINX module that serves Markdown to AI agents via HTTP content negotiation (Accept: text/markdown), powered by a Rust converter.

34
/ 100
Emerging

# Technical Summary Converts HTML to Markdown on-the-fly at the reverse proxy layer using content negotiation, allowing the same NGINX upstream to serve token-efficient Markdown to AI agents while keeping HTML for browsers unchanged. Includes User-Agent targeting so bots receive Markdown automatically via NGINX header rewriting, even without explicit `Accept: text/markdown` requests. Built as a Rust-powered NGINX module with configurable per-location control, fail-open safety, size limits, timeouts, and cache-aware variant handling (`Vary: Accept`, conditional ETags).

No Package No Dependents
Maintenance 13 / 25
Adoption 5 / 25
Maturity 9 / 25
Community 7 / 25

How are scores calculated?

Stars

11

Forks

1

Language

Rust

License

BSD-2-Clause

Last pushed

Mar 13, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/cnkang/nginx-markdown-for-agents"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.