Simple Cloudflare Worker That Serves Markdown to AI Crawlers
Posted3 months agoActive3 months ago
github.comTechstory
supportivepositive
Debate
10/100
Cloudflare WorkersAI CrawlersMarkdown
Key topics
Cloudflare Workers
AI Crawlers
Markdown
A developer shared a simple Cloudflare Worker that serves Markdown to AI crawlers, sparking interest and discussion on its utility and potential applications.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
N/A
Peak period
2
0-1h
Avg / period
2
Key moments
- 01Story posted
Oct 9, 2025 at 2:20 PM EDT
3 months ago
Step 01 - 02First comment
Oct 9, 2025 at 2:20 PM EDT
0s after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 9, 2025 at 2:31 PM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45531227Type: storyLast synced: 11/17/2025, 11:12:20 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
less html parsing == less compute == less spend
I thought that was a clever idea, so I made a lightweight version using a Cloudflare Worker. It just checks the request headers for AI user agents and serves Markdown if it finds one. Ended up being only a few lines of code.
The repo is here if you want to try it or tweak it: https://github.com/thekevinm/HTML-to-MD-AI
I’m curious if anyone else has played with similar ideas to make docs faster or more efficient for AI crawlers or API-style readers.