How sabarishpv/notes-to-quiz works
Notes to Quiz is a React/FastAPI application for turning notes, files, and URLs into configurable quizzes, then organizing, retaking, and sharing them. Users enter through the frontend routes; the signed-in studio sends generation and management requests to the API, which extracts source text, generates quiz content, and persists quizzes and attempts. Public share links let guests take quizzes without an account. The README documents Clerk and Groq integrations; source excerpts show the generation and persistence calls. Several route and page implementations are unsampled, so those branches reflect documented capabilities and indexed modules.
Main entry points: api.js API client · services.py Quiz and grading service · models.py Quiz records · Studio.jsx Quiz studio
Components 24
Frontend experience
- Route shell
frontend/src/App.jsx - Quiz studio
frontend/src/pages/Studio.jsx - Source form
frontend/src/components/SourceForm.jsx - Quiz and attempts
frontend/src/components/QuizCard.jsx - Folder navigation
frontend/src/components/FolderRail.jsx - Shared quiz page
frontend/src/pages/SharedQuiz.jsx - API client
frontend/src/lib/api.js
API and access
- Clerk token verification
backend/app/auth.py - Quiz endpoints
backend/app/routers/quizzes.py - Folder endpoints
backend/app/routers/folders.py - Attempt endpoints
backend/app/routers/attempts.py - Sharing endpoints
backend/app/routers/sharing.py
Quiz generation
- Source extraction
backend/app/ingest.py - Quiz and grading service
backend/app/services.py - Quiz generation model
backend/app/llm.py
Quiz domain and storage
- Folder records
backend/app/models.py - Quiz records
backend/app/models.py - Attempt records
backend/app/models.py - Database sessions
backend/app/database.py
Other components
- Visitor
- Signed-in owner
- Shared-quiz taker
- Clerk
- Groq API
Connections 32
- Visitor → Route shell: opens app
README.md - Signed-in owner → Route shell: opens studio
README.md - Shared-quiz taker → Route shell: opens share link
README.md - Route shell → Quiz studio: routes to
frontend/src/App.jsx - Route shell → Shared quiz page: routes to
frontend/src/App.jsx - Quiz studio → Source form: renders
frontend/src/pages/Studio.jsx - Quiz studio → Quiz and attempts: renders
frontend/src/pages/Studio.jsx - Quiz studio → Folder navigation: renders
frontend/src/pages/Studio.jsx - Quiz studio → API client: requests data
frontend/src/pages/Studio.jsx - Shared quiz page → API client: requests shared quiz
frontend/src/pages/SharedQuiz.jsx - API client → Quiz endpoints: calls API
README.md - API client → Folder endpoints: calls API
README.md - API client → Attempt endpoints: calls API
README.md - API client → Sharing endpoints: calls API
README.md - Quiz endpoints → Clerk token verification: requires identity
backend/app/routers/quizzes.py - Folder endpoints → Clerk token verification: requires identity
backend/app/routers/folders.py - Quiz endpoints → Source extraction: extracts source
backend/app/routers/quizzes.py - Quiz endpoints → Quiz and grading service: creates or regenerates
backend/app/routers/quizzes.py - Attempt endpoints → Quiz and grading service: records attempts
backend/app/routers/attempts.py - Sharing endpoints → Quiz and grading service: serializes public quiz
backend/app/routers/sharing.py - Quiz and grading service → Quiz generation model: generates questions
backend/app/services.py - Quiz generation model → Groq API: requests completion
README.md - Quiz endpoints → Quiz records: reads and writes
backend/app/routers/quizzes.py - Folder endpoints → Folder records: reads and writes
backend/app/routers/folders.py - Folder endpoints → Quiz records: counts quizzes
backend/app/routers/folders.py - Quiz and grading service → Quiz records: updates quiz state
backend/app/services.py - Quiz and grading service → Attempt records: stores attempt
backend/app/services.py - Database sessions → Quiz records: maps schema
backend/app/database.py - Quiz records → Folder records: belongs to folder
backend/app/models.py - Quiz records → Attempt records: has attempts
backend/app/models.py - Signed-in owner → Clerk: authenticates with
README.md - Clerk → Clerk token verification: tokens verified by
README.md