You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# DocCoach — MkDocs + Cloudflare Workers AI (free-tier friendly)
2
+
3
+
A public **MkDocs Material** site with a floating **chat widget** that talks to an LLM via a **Cloudflare Worker** using **Workers AI** (no API key required).
4
+
5
+
## What you get
6
+
- ✅ Static docs site (MkDocs Material)
7
+
- ✅ Floating chat widget with:
8
+
- page-context toggle (“Ask about this page”)
9
+
- local conversation state (in-memory for session)
Replace it with your real Worker URL (ending with `/api/chat`).
75
+
76
+
Also update CORS allowlist in the Worker:
77
+
78
+
-`backend/doccoach-chat/src/index.js`
79
+
80
+
Replace the placeholder GitHub Pages origin:
81
+
`https://YOUR_GITHUB_USERNAME.github.io`
82
+
83
+
---
84
+
85
+
## 5) Smoke test (recommended)
86
+
87
+
Open your published site → click **DocCoach** button → ask:
88
+
89
+
> “Review this page for clarity and information architecture issues.”
90
+
91
+
If you hit Cloudflare free-tier limits, the Worker will return an error and the UI will show it.
92
+
93
+
---
94
+
95
+
## Notes on “$0 cost”
96
+
Cloudflare Workers AI includes a daily free allocation (10,000 neurons/day on Free plan). When it’s exhausted, requests fail until the daily reset. This template intentionally keeps answers short and trims page context to help you stay within free quotas.
0 commit comments