# yashkv1/photography101 architecture

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

- Interactive diagram: https://gitdiagram.com/yashkv1/photography101
- Repository: https://github.com/yashkv1/photography101

## Overview

Photography 101 is an offline, single-page interactive course about camera lenses. A learner enters or selects a lens, then explores course modules and the playground using lens-dependent controls, visuals, tasks, and quizzes; progress is saved in the browser. The README describes the app’s responsibilities but no source excerpts were supplied, so all repository components point to the documented single-file implementation, and edges are limited to relationships stated in the README.

Main entry points: [`index.html`](https://github.com/yashkv1/photography101/blob/main/index.html) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Course interface"]
  node_app["App shell<br/>[index.html]"]
  node_lens_input["Lens input and library<br/>[index.html]"]
  node_module_navigation["Module navigation<br/>[index.html]"]
  node_progress["Saved progress<br/>[index.html]"]
end

subgraph group_learning["Learning content"]
  node_course_modules["Course modules<br/>[index.html]"]
  node_playground["Playground<br/>[index.html]"]
  node_controls_visuals["Controls and visuals<br/>[index.html]"]
  node_practice_quiz["Tasks and quizzes<br/>[index.html]"]
end

subgraph group_model["Lens model"]
  node_lens_parser["Lens parser<br/>[index.html]"]
  node_lens_data[("Lens and sensor data<br/>[index.html]")]
  node_optics_model["Optics calculations<br/>[index.html]"]
end

node_learner(("Learner"))
node_browser_storage[("Browser storage")]

node_learner -->|"uses"| node_app
node_app -->|"offers"| node_lens_input
node_learner -->|"enters or selects"| node_lens_input
node_lens_input -->|"parses text"| node_lens_parser
node_lens_input -->|"selects from"| node_lens_data
node_app -->|"shows"| node_module_navigation
node_module_navigation -->|"opens modules"| node_course_modules
node_module_navigation -->|"opens"| node_playground
node_course_modules -->|"defines"| node_controls_visuals
node_course_modules -->|"defines"| node_practice_quiz
node_playground -->|"uses"| node_controls_visuals
node_lens_parser -->|"provides lens settings"| node_optics_model
node_lens_data -->|"provides sensor data"| node_optics_model
node_optics_model -->|"provides computed state"| node_controls_visuals
node_optics_model -->|"provides computed state"| node_practice_quiz
node_app -->|"tracks"| node_progress
node_progress -->|"saves to"| node_browser_storage

click node_app "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_lens_input "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_module_navigation "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_progress "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_course_modules "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_playground "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_controls_visuals "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_practice_quiz "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_lens_parser "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_lens_data "https://github.com/yashkv1/photography101/blob/main/index.html"
click node_optics_model "https://github.com/yashkv1/photography101/blob/main/index.html"

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_app,node_lens_input,node_module_navigation,node_progress toneBlue
class node_course_modules,node_playground,node_controls_visuals,node_practice_quiz,node_browser_storage toneAmber
class node_lens_parser,node_lens_data,node_optics_model toneMint
class node_learner toneIndigo
```

## Components

### Course interface

- [App shell](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Lens input and library](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Module navigation](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Saved progress](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`

### Learning content

- [Course modules](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Playground](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Controls and visuals](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Tasks and quizzes](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`

### Lens model

- [Lens parser](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Lens and sensor data](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`
- [Optics calculations](https://github.com/yashkv1/photography101/blob/main/index.html): `index.html`

### Other components

- **Learner**
- **Browser storage**

## Connections

- Learner → App shell: uses (evidence: `README.md`)
- App shell → Lens input and library: offers (evidence: `README.md`)
- Learner → Lens input and library: enters or selects (evidence: `README.md`)
- Lens input and library → Lens parser: parses text (evidence: `README.md`)
- Lens input and library → Lens and sensor data: selects from (evidence: `README.md`)
- App shell → Module navigation: shows (evidence: `README.md`)
- Module navigation → Course modules: opens modules (evidence: `README.md`)
- Module navigation → Playground: opens (evidence: `README.md`)
- Course modules → Controls and visuals: defines (evidence: `README.md`)
- Course modules → Tasks and quizzes: defines (evidence: `README.md`)
- Playground → Controls and visuals: uses (evidence: `README.md`)
- Lens parser → Optics calculations: provides lens settings (evidence: `README.md`)
- Lens and sensor data → Optics calculations: provides sensor data (evidence: `README.md`)
- Optics calculations → Controls and visuals: provides computed state (evidence: `README.md`)
- Optics calculations → Tasks and quizzes: provides computed state (evidence: `README.md`)
- App shell → Saved progress: tracks (evidence: `README.md`)
- Saved progress → Browser storage: saves to (evidence: `README.md`)
