Settings

Theme

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

github.com

1 points by janwilmake 9 months ago · 1 comment

Reader

janwilmakeOP 9 months ago

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!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection