How palamooradithyagoud/opensmile1 works
OpenSmile is a dental-learning platform combining a BDS curriculum and lesson studio, interactive practice labs, clinical simulations, learner support, and a persistence API. A student enters through the web app, navigates curriculum or practice, and receives lesson content or simulation feedback; progress and attempts can be saved locally and synchronized to the backend. The README documents the FastAPI-to-Supabase architecture. Several frontend-to-backend connections are only visible as API calls or documented capabilities; unsampled route details are not inferred.
Main entry points: App.tsx Portal and roadmap · main.py FastAPI endpoints · ChapterLearningView.tsx Chapter learning studio · SimPreview.tsx Simulation workspace
Components 28
Learning frontend
- Portal and roadmap
frontend/src/App.tsx - Chapter learning studio
frontend/src/components/ChapterLearningView.tsx - Anatomy animation
frontend/src/components/DentalAnatomyAnimation.tsx - Materials animation
frontend/src/components/DentalMaterialsAnimation.tsx - Mux lesson configuration
frontend/src/config/mux.ts
Practice and simulation
- Morphology game
frontend/src/components/ToothMorphologyGame.tsx - Tissue explorer
frontend/src/components/EnamelDentinPulpGame.tsx - Materials lab
frontend/src/components/DentalMaterialsLabGame.tsx - Simulation workspace
frontend/src/pages/SimPreview.tsx - Clinical simulation scenes
frontend/src/components/sim/OperationVisuals.tsx - Bleeding effects
frontend/src/components/sim/RealisticBleedEffects.tsx - Simulation sound controller
frontend/src/components/sim/SimSoundController.tsx - Simulation audio
frontend/src/components/sim/simAudio.ts - Orthodontic biometrics
frontend/src/components/sim/orthoBiometrics.ts - Simulation state
frontend/src/store/useSimStore.ts
Learner support
- AI mentor drawer
frontend/src/components/mentor/AiMentorDrawer.tsx - Mentor service
frontend/src/services/groqMentorService.ts - BDS knowledge base
frontend/src/data/bdsKnowledgeBase.ts - Free courses
frontend/src/components/FreeCoursesView.tsx - Learner dashboard
frontend/src/components/ui/ProfileDashboardPanel.tsx
API service
- FastAPI endpoints
backend/app/main.py - YouTube lecture search
backend/app/youtube_service.py
Persistence
- Learner profile storage
frontend/src/utils/studentProfileStorage.ts - SQLAlchemy connection
database/connection.py - Database models
database/models.py
Other components
- Dental student
- Mux video service
- Supabase PostgreSQL
Connections 30
- Dental student → Portal and roadmap: opens portal
README.md - Portal and roadmap → Chapter learning studio: opens lessons
frontend/src/App.tsx - Portal and roadmap → Morphology game: offers practice
frontend/src/App.tsx - Portal and roadmap → Tissue explorer: offers practice
frontend/src/App.tsx - Portal and roadmap → Materials lab: offers practice
frontend/src/App.tsx - Portal and roadmap → Simulation workspace: routes to
frontend/src/App.tsx - Portal and roadmap → Free courses: opens courses
frontend/src/App.tsx - Portal and roadmap → Learner dashboard: shows dashboard
frontend/src/App.tsx - Chapter learning studio → Anatomy animation: renders
frontend/src/components/ChapterLearningView.tsx - Chapter learning studio → Materials animation: renders
frontend/src/components/ChapterLearningView.tsx - Chapter learning studio → Mux lesson configuration: loads playback config
frontend/src/components/ChapterLearningView.tsx - Mux lesson configuration → Mux video service: configures playback
README.md - Simulation workspace → Simulation state: reads simulation state
frontend/src/pages/SimPreview.tsx - Simulation workspace → Clinical simulation scenes: renders scene
frontend/src/pages/SimPreview.tsx - Simulation workspace → Simulation sound controller: mounts controller
frontend/src/pages/SimPreview.tsx - Simulation state → Orthodontic biometrics: computes alignment
frontend/src/store/useSimStore.ts - Simulation state → Learner profile storage: records attempts
frontend/src/store/useSimStore.ts - Simulation sound controller → Simulation audio: plays cues
frontend/src/components/sim/SimSoundController.tsx - AI mentor drawer → Mentor service: requests responses
frontend/src/components/mentor/AiMentorDrawer.tsx - Mentor service → BDS knowledge base: retrieves context
frontend/src/services/groqMentorService.ts - Mentor service → FastAPI endpoints: posts chat request
frontend/src/services/groqMentorService.ts - Learner dashboard → Simulation state: reads metrics
frontend/src/components/ui/ProfileDashboardPanel.tsx - Learner dashboard → Learner profile storage: loads saved data
frontend/src/components/ui/ProfileDashboardPanel.tsx - Learner profile storage → FastAPI endpoints: syncs attempts
frontend/src/utils/studentProfileStorage.ts - FastAPI endpoints → YouTube lecture search: uses lecture search
backend/app/main.py - FastAPI endpoints → SQLAlchemy connection: obtains sessions
README.md - FastAPI endpoints → Database models: queries records
README.md - SQLAlchemy connection → Supabase PostgreSQL: connects to
database/connection.py - Database models → SQLAlchemy connection: uses ORM base
database/models.py - FastAPI endpoints → Supabase PostgreSQL: reads and writes
README.md