Building a rate-limited blog thread AI tool on Cloudflare Workers (no login, no DB)
Description and use
Blog2Thread lets users paste a blog URL or text and instantly get a Twitter thread, with rate limits enforced via Cloudflare KV and cookies, all without login or a user database.
Problem
Indie makers need a frictionless draft tool that lets users paste a blog URL or text and instantly get a ready-to-post Twitter thread without requiring signup or storing user data, while preventing abuse.
Outcome
Blog2Thread provides a zero‑friction, no‑login AI thread generator with robust rate limiting, enabling indie makers to offer a free draft experience while protecting against abuse.
Workflow
- 1. User pastes blog URL or text on the front‑end.
- 2. Front‑end sends request to Cloudflare Worker.
- 3. Worker reserves a generation slot using Cloudflare KV counters (cookie, IP, burst limits).
- 4. If reservation fails, return 429 error.
- 5. Worker calls an OpenAI‑compatible API to generate the thread.
- 6. On success, return the thread to the user and persist the draft ID for sharing.
- 7. On failure, rollback the reservation to free the quota.
- 8. Dynamic Open Graph metadata is generated from the first 4 tweets for social previews.
- 9. User copies the thread and can optionally schedule or distribute via paid tools.
Evidence
No account. No database of users.
Pattern: reserve before generate → rollback if the model call fails
- Record date: 2026-09-22T00:00:30.517Z