# palamooradithyagoud/opensmile architecture

> Architecture diagram of the GitHub repository palamooradithyagoud/opensmile, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/palamooradithyagoud/opensmile
- Repository: https://github.com/palamooradithyagoud/opensmile

## Overview

OpenSmile is a browser-based dental-learning roadmap and simulator. A learner enters the React app, browses roadmap units, and opens chapter lessons or interactive practice; lessons can play Mux-hosted video, while dedicated games cover tooth morphology, tissue histology, and dental materials. Shared anatomy and materials visualizations support learning views, and lesson playback IDs can be saved in browser storage. The excerpts show the app entry and several component relationships, but not all route-selection code, so uncertain navigation links are omitted.

Main entry points: [`src/App.tsx`](https://github.com/palamooradithyagoud/opensmile/blob/main/src/App.tsx) (Roadmap app), [`src/components/ChapterLearningView.tsx`](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/ChapterLearningView.tsx) (Chapter lessons), [`src/main.tsx`](https://github.com/palamooradithyagoud/opensmile/blob/main/src/main.tsx) (React entry), [`src/components/DentalMaterialsLabGame.tsx`](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalMaterialsLabGame.tsx) (Materials lab)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Roadmap app<br/>[App.tsx]"]
  node_chapter["Chapter lessons"]
end

subgraph group_practice["Interactive practice"]
  node_morphology["Tooth morphology"]
  node_tissue["Tissue explorer"]
  node_materials_lab["Materials lab"]
end

subgraph group_visuals["Dental visualizations"]
  node_anatomy_visual["Anatomy animation"]
  node_materials_visual["Materials animation"]
end

subgraph group_media["Lesson media"]
  node_mux_config["Playback settings<br/>[mux.ts]"]
  node_browser_storage[("Browser storage")]
  node_mux_service["Mux video service"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"imports lessons"| node_chapter
node_app -->|"renders"| node_anatomy_visual
node_chapter -->|"renders"| node_anatomy_visual
node_chapter -->|"renders"| node_materials_visual
node_materials_lab -->|"uses slide artwork"| node_materials_visual
node_chapter -->|"loads playback ID"| node_mux_config
node_chapter -->|"plays lesson video"| node_mux_service
node_mux_config -->|"reads and writes IDs"| node_browser_storage
node_app -.->|"selects practice"| node_morphology
node_app -.->|"selects practice"| node_tissue
node_app -.->|"selects practice"| node_materials_lab

click node_entry "https://github.com/palamooradithyagoud/opensmile/blob/main/src/main.tsx"
click node_app "https://github.com/palamooradithyagoud/opensmile/blob/main/src/App.tsx"
click node_chapter "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/ChapterLearningView.tsx"
click node_morphology "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/ToothMorphologyGame.tsx"
click node_tissue "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/EnamelDentinPulpGame.tsx"
click node_materials_lab "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalMaterialsLabGame.tsx"
click node_anatomy_visual "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalAnatomyAnimation.tsx"
click node_materials_visual "https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalMaterialsAnimation.tsx"
click node_mux_config "https://github.com/palamooradithyagoud/opensmile/blob/main/src/config/mux.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_chapter toneBlue
class node_morphology,node_tissue,node_materials_lab toneAmber
class node_anatomy_visual,node_materials_visual toneMint
class node_mux_config,node_browser_storage,node_mux_service toneRose
class node_learner toneIndigo
```

## Components

### Learning experience

- [React entry](https://github.com/palamooradithyagoud/opensmile/blob/main/src/main.tsx): `src/main.tsx`
- [Roadmap app](https://github.com/palamooradithyagoud/opensmile/blob/main/src/App.tsx): `src/App.tsx`
- [Chapter lessons](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/ChapterLearningView.tsx): `src/components/ChapterLearningView.tsx`

### Interactive practice

- [Tooth morphology](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/ToothMorphologyGame.tsx): `src/components/ToothMorphologyGame.tsx`
- [Tissue explorer](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/EnamelDentinPulpGame.tsx): `src/components/EnamelDentinPulpGame.tsx`
- [Materials lab](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalMaterialsLabGame.tsx): `src/components/DentalMaterialsLabGame.tsx`

### Dental visualizations

- [Anatomy animation](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalAnatomyAnimation.tsx): `src/components/DentalAnatomyAnimation.tsx`
- [Materials animation](https://github.com/palamooradithyagoud/opensmile/blob/main/src/components/DentalMaterialsAnimation.tsx): `src/components/DentalMaterialsAnimation.tsx`

### Lesson media

- [Playback settings](https://github.com/palamooradithyagoud/opensmile/blob/main/src/config/mux.ts): `src/config/mux.ts`
- **Browser storage**
- **Mux video service**

### Other components

- **Learner**

## Connections

- Learner → React entry: opens app
- React entry → Roadmap app: renders (evidence: `src/main.tsx`)
- Roadmap app → Chapter lessons: imports lessons (evidence: `src/App.tsx`)
- Roadmap app → Anatomy animation: renders (evidence: `src/App.tsx`)
- Chapter lessons → Anatomy animation: renders (evidence: `src/components/ChapterLearningView.tsx`)
- Chapter lessons → Materials animation: renders (evidence: `src/components/ChapterLearningView.tsx`)
- Materials lab → Materials animation: uses slide artwork (evidence: `src/components/DentalMaterialsLabGame.tsx`)
- Chapter lessons → Playback settings: loads playback ID (evidence: `src/components/ChapterLearningView.tsx`)
- Chapter lessons → Mux video service: plays lesson video (evidence: `src/components/ChapterLearningView.tsx`)
- Playback settings → Browser storage: reads and writes IDs (evidence: `src/config/mux.ts`)
- Roadmap app → Tooth morphology: selects practice (evidence: `src/App.tsx`)
- Roadmap app → Tissue explorer: selects practice (evidence: `src/App.tsx`)
- Roadmap app → Materials lab: selects practice (evidence: `src/App.tsx`)
