Skip to content

Shared Application Layer for Agents, Crawlers, Humans, and APIs

github.com/janwilmake
1 pointjanwilmake1 comment
On HN

Comments

The web’s stuck serving one format for all—HTML for humans, but what about bots, APIs, or social previews? It’s a legacy mess.

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.