How iron00036gmail/medha-protype works
MEDHA is a subject-centered learning and memory application. A learner enters through the home dashboard or subject navigation, opens a subject workspace, and works its knowledge spine through lecture capture, concept teaching, mathematical exploration, and spaced recall. The application coordinator supplies seed learning data and routes among these views; the workspace delegates to its distinct learning tools. Authentication uses server endpoints and SQLite, while retention scheduling and AI-assisted learning are supporting capabilities. Some subsystem links reflect README descriptions or indexed imports; unsampled internals are not inferred.
Main entry points: SubjectWorkspace.tsx Subject workspace · App.tsx App coordinator · HomeDashboard.tsx Home dashboard · TopNav.tsx Subject navigation
Components 28
Application shell
- App coordinator
src/App.tsx - Home dashboard
src/components/HomeDashboard.tsx - Subject navigation
src/components/TopNav.tsx
Subject learning
- Subject workspace
src/components/subject/SubjectWorkspace.tsx - Knowledge spine
src/components/subject/RoadmapTree.tsx - Lecture ingestion
src/components/subject/ClassInputIngest.tsx - Teach and master
src/components/subject/ConceptTeachMaster.tsx - Socratic tutor
src/components/subject/SubjectAiChat.tsx - Workspace dial
src/components/subject/SubjectDynamicIsland.tsx
Recall and planning
- Active recall
src/components/ActiveRecallArena.tsx - Review scheduler
src/services/scheduler.ts - Assignment pacing
src/components/AssignmentGentleManager.tsx - Daily cockpit
src/components/DailyCockpit.tsx
Knowledge exploration
- Interdisciplinary graph
src/components/EcosystemRoadmap.tsx - Complexity explorer
src/components/subject/SystemComplexityExplorer.tsx - Concept detail
src/components/subject/ConceptDetailPane.tsx - Formula renderer
src/components/common/MathFormula.tsx - Next concept preview
src/components/common/WhatsNextHover.tsx
Data and services
- Learning seed data
src/data/initialData.ts - Learning API client
src/services/api.ts - Authentication context
src/context/AuthContext.tsx - Scholar sign-in
src/components/common/SqliteAuthModal.tsx - API server
server.ts - SQLite access
src/server/db.ts - SQLite database
data/medha.sqlite - Theme context
src/context/ThemeContext.tsx - Focus navigation
src/services/navigation.ts
Other components
- Learner
Connections 35
- Learner → Home dashboard: opens overview
README.md - Learner → Subject navigation: selects subject
README.md - Subject navigation → App coordinator: selects view
src/components/TopNav.tsx - App coordinator → Home dashboard: renders
src/App.tsx - App coordinator → Subject workspace: routes to
src/App.tsx - App coordinator → Subject navigation: renders
src/App.tsx - App coordinator → Learning seed data: initializes state
src/App.tsx - App coordinator → Focus navigation: focuses destination
src/App.tsx - Home dashboard → Interdisciplinary graph: renders graph
src/components/HomeDashboard.tsx - Subject workspace → Knowledge spine: renders spine
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Lecture ingestion: renders ingest
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Teach and master: renders workbench
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Socratic tutor: renders tutor
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Workspace dial: renders dial
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Active recall: renders arena
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Complexity explorer: renders explorer
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Concept detail: renders detail
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Formula renderer: renders formulas
src/components/subject/SubjectWorkspace.tsx - Subject workspace → Next concept preview: renders preview
src/components/subject/SubjectWorkspace.tsx - Lecture ingestion → Learning API client: chunks notes
src/components/subject/ClassInputIngest.tsx - Lecture ingestion → Learning API client: transcribes audio
src/components/subject/ClassInputIngest.tsx - Assignment pacing → Learning API client: decomposes tasks
src/components/AssignmentGentleManager.tsx - Active recall → Review scheduler: schedules reviews
src/components/ActiveRecallArena.tsx - Assignment pacing → App coordinator: appears in routing
src/App.tsx - Home dashboard → Learning seed data: uses ecosystem data
src/components/HomeDashboard.tsx - Subject navigation → Theme context: reads theme
src/components/TopNav.tsx - Subject navigation → Authentication context: opens sign-in
src/components/TopNav.tsx - Scholar sign-in → Authentication context: uses context
src/components/common/SqliteAuthModal.tsx - Authentication context → API server: calls auth endpoints
src/context/AuthContext.tsx - API server → SQLite access: uses database access
server.ts - SQLite access → SQLite database: reads and writes
- Home dashboard → Focus navigation: navigates sections
src/components/HomeDashboard.tsx - Interdisciplinary graph → Formula renderer: renders equations
src/components/EcosystemRoadmap.tsx - Knowledge spine → Formula renderer: renders equations
src/components/subject/RoadmapTree.tsx - Knowledge spine → Next concept preview: previews sequence
src/components/subject/RoadmapTree.tsx