Teacher / Manager Login
Production login uses your Cloudflare secrets: TEACHER_PASSWORD, MANAGER_PASSWORD, and AUTH_TOKEN_SECRET. The app connects automatically to the deployed CSA Lesson Builder Worker, so staff do not need to type an endpoint.
API keys and passwords stay in your separate Cloudflare Worker only. The browser sends the role and password to Worker /login, receives a session token, then calls Worker /generate for AI drafting.
Project Topic Input Upload or type topic
STEM suggestions will appear here after you enter a topic.
Checkbox STEM Coverage Only selected concepts will be woven into the lesson
Ready Copy/Paste Output Draft
Manager Review / Teacher Comments
Plan Status
Managers can lock/unlock. Teachers can view unlocked plans and add comments.
Comment Thread
AI Connector Settings Optional backend with fallback
v0.3.3 keeps instant live preview local, then uses your separate authenticated Worker for smarter generation. Worker endpoint is locked in this file as https://csa-lesson-builder.aciicsaceo.workers.dev. Recommended chain: Gemini → Groq → OpenRouter → local CSA rules fallback. Keep all API keys and staff passwords on the Worker/backend, never inside this browser page.