Upload this file to Cloudflare Pages as index.html. Point it at your Cloudflare Worker which:
- GET /chapters?url=... → returns chapter URLs
- POST /analyze-batched?url=... → fetches all chapters, batches ~30k words, calls Gemini with memory
Paste your Cloudflare Worker URL here once. It will be saved in this browser.
/chapters and /analyze-batched as in the supplied worker.js.
Paste a Royal Road novel URL. The app will fetch up to 20 chapters, batch them, and send them to Gemini with running memory.