Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Shared Application Layer for Agents, Crawlers, Humans, and APIs.
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!
There are no comments on this comment yet.
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!