How sccaryboi1999/studyforge works
StudyForge AI converts study material into source-grounded quizzes, then supports practice, scoring, review, and ongoing study tracking. The main workflow is upload or paste, extract and review material, generate a quiz locally or with optional OpenAI, practice, and review results; guides and attempts persist locally with optional Supabase sync. The graph preserves the README’s documented modes, analytics, exports, and recovery capabilities. Some UI-to-API wiring is documented but not visible in the sampled excerpts, so those edges cite the README.
Main entry points: storage.ts Local and cloud storage · create-workflow.tsx Create workflow · route.ts Quiz generation endpoint · quiz-player.tsx Quiz practice
Components 20
Study workflow
- Create workflow
src/components/create-workflow.tsx - Document extraction
src/app/api/extract/route.ts - Source relevance
src/lib/processing.ts - Quiz generation endpoint
src/app/api/generate/route.ts - Local quiz generator
src/lib/generator.ts - Demo source
src/lib/demo.ts
Quiz runtime
- Quiz practice
src/components/quiz-player.tsx - Answer scoring
src/lib/scoring.ts - Results review
src/components/results-view.tsx
Study history and insights
- Attempt history
src/components/history-view.tsx - Study guide library
src/components/library-view.tsx - Study dashboard
src/components/dashboard-view.tsx - Topic progress
src/components/progress-view.tsx
Accounts and persistence
- Local and cloud storage
src/lib/storage.ts - Account sign-in
src/components/auth-form.tsx - Supabase browser client
src/lib/supabase/client.ts - Application shell
src/components/app-shell.tsx
Other components
- Learner
- OpenAI
- Supabase Auth and database
Connections 29
- Learner → Create workflow: starts study
README.md - Create workflow → Document extraction: uploads file
README.md - Document extraction → Source relevance: summarizes text
src/app/api/extract/route.ts - Create workflow → Quiz generation endpoint: requests quiz
README.md - Quiz generation endpoint → Source relevance: filters source
src/app/api/generate/route.ts - Quiz generation endpoint → Local quiz generator: generates fallback
src/app/api/generate/route.ts - Quiz generation endpoint → OpenAI: requests generation
src/app/api/generate/route.ts - Learner → Demo source: tries demo
README.md - Demo source → Create workflow: supplies sample
- Create workflow → Local and cloud storage: saves guide
src/components/create-workflow.tsx - Learner → Quiz practice: practices quiz
README.md - Quiz practice → Answer scoring: grades answers
src/components/quiz-player.tsx - Quiz practice → Local and cloud storage: saves attempt
src/components/quiz-player.tsx - Quiz practice → Results review: opens review
README.md - Results review → Answer scoring: summarizes performance
src/components/results-view.tsx - Results review → Local and cloud storage: loads attempt
src/components/results-view.tsx - Learner → Attempt history: reviews history
README.md - Attempt history → Local and cloud storage: reads attempts
src/components/history-view.tsx - Learner → Study guide library: manages guides
README.md - Study guide library → Local and cloud storage: manages guides
src/components/library-view.tsx - Learner → Study dashboard: views dashboard
README.md - Study dashboard → Local and cloud storage: reads study data
src/components/dashboard-view.tsx - Learner → Topic progress: tracks progress
README.md - Topic progress → Local and cloud storage: reads study data
src/components/progress-view.tsx - Account sign-in → Supabase browser client: gets client
src/components/auth-form.tsx - Account sign-in → Local and cloud storage: hydrates library
src/components/auth-form.tsx - Local and cloud storage → Supabase browser client: loads client
src/lib/storage.ts - Supabase browser client → Supabase Auth and database: connects
README.md - Application shell → Local and cloud storage: reads preferences
src/components/app-shell.tsx