How asmitsr/ielts-60-day-app works
IELTS 60-Day is a Bengali study tracker with account-based, cross-device progress, structured learning references, and an AI assistant. The main journey is learner → sign-in → choose a study section → track plan tasks or consult study material → save progress and block times through the Pages API to D1. The graph also preserves the documented account, settings, practice, mock-test, and learning-reference capabilities. Some API handlers and the AI UI are represented at their exact tree paths; their internal details were not sampled.
Main entry points: App.tsx App shell · api.ts API client · PlanSection.tsx 60-day plan · auth Account endpoints
Components 26
Study experience
- 60-day plan
src/sections/PlanSection.tsx - Plan and mocks
src/data/plan.ts - Steps guide
src/sections/StepsSection.tsx - Step content
src/data/steps.ts - Practice links
src/sections/PracticeSection.tsx - Practice content
src/data/practice.ts - Resource library
src/sections/ResourcesSection.tsx - Resource links
src/data/resources.ts - Exam format
src/sections/FormatSection.tsx - Format facts
src/data/formatGuide.ts - Cue cards
src/sections/CueCardsSection.tsx - Techniques
src/sections/TechniquesSection.tsx - Settings
src/sections/SettingsSection.tsx - AI assistant
src/sections/AiSection.tsx
App and client
- App shell
src/App.tsx - Sign-in UI
src/components/AuthScreen.tsx - API client
src/lib/api.ts
Pages API
- Progress API
functions/api/progress.ts - Block-times API
functions/api/block-times.ts - Account endpoints
functions/api/auth - AI chat endpoint
functions/api/ai/chat.ts
Accounts and security
- Auth and sessions
functions/_lib/auth.ts
Persistence and AI
- AI context and keys
functions/_lib/ai.ts - Cloudflare D1
Other components
- Learner
- AI provider
Connections 34
- Learner → Sign-in UI: signs in
src/components/AuthScreen.tsx - Sign-in UI → API client: submits credentials
src/components/AuthScreen.tsx - App shell → API client: checks session
src/App.tsx - App shell → Sign-in UI: shows gate
src/App.tsx - App shell → 60-day plan: renders section
src/App.tsx - App shell → Steps guide: renders section
src/App.tsx - App shell → Practice links: renders section
src/App.tsx - App shell → Resource library: renders section
src/App.tsx - App shell → Exam format: renders section
src/App.tsx - App shell → Cue cards: renders section
src/App.tsx - App shell → Techniques: renders section
src/App.tsx - App shell → Settings: renders section
src/App.tsx - App shell → AI assistant: renders section
src/App.tsx - 60-day plan → Plan and mocks: reads plan
src/data/plan.ts - Steps guide → Step content: reads guides
src/data/steps.ts - Practice links → Practice content: reads links
src/sections/PracticeSection.tsx - Resource library → Resource links: reads links
src/sections/ResourcesSection.tsx - Exam format → Format facts: reads facts
src/sections/FormatSection.tsx - 60-day plan → API client: saves progress
- 60-day plan → API client: saves block times
- Settings → API client: updates preferences
src/sections/SettingsSection.tsx - AI assistant → API client: sends questions
src/sections/AiSection.tsx - API client → Progress API: requests progress
src/lib/api.ts - API client → Block-times API: requests block times
src/lib/api.ts - API client → Account endpoints: calls account routes
src/lib/api.ts - API client → AI chat endpoint: requests AI chat
- Progress API → Cloudflare D1: reads and writes
README.md - Block-times API → Cloudflare D1: reads and writes
README.md - Account endpoints → Auth and sessions: uses auth helpers
functions/api/auth/sessions.ts - Account endpoints → Cloudflare D1: stores accounts and sessions
README.md - AI chat endpoint → Auth and sessions: checks session
functions/api/ai/chat.ts - AI chat endpoint → AI context and keys: builds chat context
functions/api/ai/chat.ts - AI context and keys → Plan and mocks: grounds answers
functions/_lib/ai.ts - AI context and keys → AI provider: invokes model