Here’s the thing: one page should adapt—HTML for crawlers, JSON for APIs, Markdown for agents, and PNG for social. Same data, smartly served.
I built a Cloudflare Worker to ditch legacy bloat. Vanilla JS/HTML/CSS, no frameworks, just a shared layer for all clients. First principles.
Meet my User-Agent Router: a Worker that picks the right format (HTML, MD, JSON, YAML, PNG) via headers or paths. Simple, fast, flexible.
Read more in the repo, check the demo, and lmk what you think!
Here’s the thing: one page should adapt—HTML for crawlers, JSON for APIs, Markdown for agents, and PNG for social. Same data, smartly served.
I built a Cloudflare Worker to ditch legacy bloat. Vanilla JS/HTML/CSS, no frameworks, just a shared layer for all clients. First principles.
Meet my User-Agent Router: a Worker that picks the right format (HTML, MD, JSON, YAML, PNG) via headers or paths. Simple, fast, flexible.
Read more in the repo, check the demo, and lmk what you think!