How sumanchgoraiofficial92-alt/prayogshala-main works
PrayogShala is an offline-first virtual science lab. The main workflow is to choose an experiment, run its interactive lab, record observations, and review or export results; supporting branches provide theory and narrated guidance, challenges, offline synchronization, and teacher assignment and class views. The graph reflects the App routing and module references in the source index, plus the shown service and component imports. Some implementation details are unsampled, so those connections are omitted rather than inferred.
Main entry points: App.tsx App router · i18n.ts Translations · PendulumLab.tsx Pendulum lab · OhmsLawLab.tsx Ohm's law lab
Components 22
App and navigation
- App router
src/App.tsx - Navigation sidebar
src/components/layout/Sidebar.tsx - Language and header
src/components/layout/Header.tsx
Interactive experiments
- Pendulum lab
src/components/experiments/PendulumLab.tsx - Ohm's law lab
src/components/experiments/OhmsLawLab.tsx - Photosynthesis lab
src/components/experiments/PhotosynthesisLab.tsx - Titration lab
src/components/experiments/TitrationLab.tsx - Experiment definitions
src/data/experiments.ts
Learning and accessibility
- Experiment theory view
src/components/common/ExperimentTheoryView.tsx - Live step narration
src/components/common/LiveStepNarrationCard.tsx - Theory content
src/data/experimentTheory.ts - Step guide content
src/data/liveStepGuides.ts - Audio guide content
src/data/audioGuides.ts - Speech services
src/services/speech.ts - Translations
src/services/i18n.ts
Notebook and persistence
- Notebook workbench
src/components/notebook/NotebookWorkbench.tsx - Local storage service
src/services/storage.ts - PDF report generator
src/services/pdfReport.ts - Offline sync panel
src/components/sync/OfflineSyncPanel.tsx
Classroom features
- Challenge hub
src/components/gamification/ChallengeHub.tsx - Teacher dashboard
src/components/teacher/TeacherDashboard.tsx
Other components
- Student or teacher
Connections 48
- Student or teacher → App router: uses
- App router → Navigation sidebar: renders
src/App.tsx - App router → Language and header: renders
src/App.tsx - App router → Pendulum lab: routes to
src/App.tsx - App router → Ohm's law lab: routes to
src/App.tsx - App router → Photosynthesis lab: routes to
src/App.tsx - App router → Titration lab: routes to
src/App.tsx - App router → Notebook workbench: routes to
src/App.tsx - App router → Teacher dashboard: routes to
src/App.tsx - App router → Challenge hub: routes to
src/App.tsx - App router → Offline sync panel: routes to
src/App.tsx - App router → Local storage service: loads profile
src/App.tsx - App router → Translations: translates
src/App.tsx - Navigation sidebar → Experiment definitions: reads definitions
src/components/layout/Sidebar.tsx - Language and header → Translations: translates
src/components/layout/Header.tsx - Pendulum lab → Experiment theory view: renders
src/components/experiments/PendulumLab.tsx - Pendulum lab → Live step narration: renders
src/components/experiments/PendulumLab.tsx - Ohm's law lab → Experiment theory view: renders
src/components/experiments/OhmsLawLab.tsx - Ohm's law lab → Live step narration: renders
src/components/experiments/OhmsLawLab.tsx - Photosynthesis lab → Experiment theory view: renders
src/components/experiments/PhotosynthesisLab.tsx - Photosynthesis lab → Live step narration: renders
src/components/experiments/PhotosynthesisLab.tsx - Titration lab → Experiment theory view: renders
src/components/experiments/TitrationLab.tsx - Titration lab → Live step narration: renders
src/components/experiments/TitrationLab.tsx - Experiment theory view → Theory content: reads content
src/components/common/ExperimentTheoryView.tsx - Live step narration → Step guide content: reads guide
src/components/common/LiveStepNarrationCard.tsx - Live step narration → Speech services: speaks guide
src/components/common/LiveStepNarrationCard.tsx - Pendulum lab → Audio guide content: loads audio guide
src/components/experiments/PendulumLab.tsx - Ohm's law lab → Audio guide content: loads audio guide
src/components/experiments/OhmsLawLab.tsx - Photosynthesis lab → Audio guide content: loads audio guide
src/components/experiments/PhotosynthesisLab.tsx - Titration lab → Audio guide content: loads audio guide
src/components/experiments/TitrationLab.tsx - Pendulum lab → Speech services: uses speech
src/components/experiments/PendulumLab.tsx - Ohm's law lab → Speech services: uses speech
src/components/experiments/OhmsLawLab.tsx - Photosynthesis lab → Speech services: uses speech
src/components/experiments/PhotosynthesisLab.tsx - Titration lab → Speech services: uses speech
src/components/experiments/TitrationLab.tsx - Pendulum lab → Translations: translates
src/components/experiments/PendulumLab.tsx - Ohm's law lab → Translations: translates
src/components/experiments/OhmsLawLab.tsx - Photosynthesis lab → Translations: translates
src/components/experiments/PhotosynthesisLab.tsx - Titration lab → Translations: translates
src/components/experiments/TitrationLab.tsx - Notebook workbench → Local storage service: reads and writes
src/components/notebook/NotebookWorkbench.tsx - Notebook workbench → Speech services: uses speech
src/components/notebook/NotebookWorkbench.tsx - Notebook workbench → PDF report generator: generates report
src/components/notebook/NotebookWorkbench.tsx - PDF report generator → Translations: translates report
src/services/pdfReport.ts - Offline sync panel → Local storage service: uses local data
src/components/sync/OfflineSyncPanel.tsx - Offline sync panel → Translations: translates
src/components/sync/OfflineSyncPanel.tsx - Challenge hub → Local storage service: updates profile
src/components/gamification/ChallengeHub.tsx - Challenge hub → Speech services: uses speech
src/components/gamification/ChallengeHub.tsx - Teacher dashboard → Local storage service: loads class data
src/components/teacher/TeacherDashboard.tsx - Teacher dashboard → Translations: translates
src/components/teacher/TeacherDashboard.tsx