Hacker News new | past | comments | ask | show | jobs | submit login
Shared Application Layer for Agents, Crawlers, Humans, and APIs (github.com/janwilmake)
1 point by janwilmake 31 days ago | hide | past | favorite | 1 comment



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!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: