# moshezelinger/amat_physics architecture

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

- Interactive diagram: https://gitdiagram.com/moshezelinger/amat_physics
- Repository: https://github.com/moshezelinger/amat_physics

## Overview

This repository is a collection of browser-based physics teaching materials: slide decks, interactive labs, and practice applications. The learner-facing workflow is to open a lesson or activity, explore its teaching material or simulation, then answer questions or review concepts; the quiz application also offers a standalone export. The graph preserves the README’s major products and the sampled quiz application’s component structure. Several products are documented but not sampled, so their internal links are omitted rather than inferred.

Main entry points: [`quiz_lab_velosity/src/App.tsx`](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/App.tsx) (Quiz application), [`forces-deck/index.html`](https://github.com/moshezelinger/amat_physics/blob/main/forces-deck/index.html) (Forces slide deck), [`physics-practice/source/app.js`](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/app.js) (Practice interactions), [`quiz_lab_velosity/src/utils/generateStandaloneHtml.ts`](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/utils/generateStandaloneHtml.ts) (HTML generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_forces["Forces lessons"]
  node_force_deck["Forces slide deck<br/>[index.html]"]
  node_deck_content["Deck slides and design"]
  node_force_lab["Forces lab<br/>[index.html]"]
end

subgraph group_practice["Practice applications"]
  node_practice_entry["Practice app entry<br/>[index.html]"]
  node_practice_ui["Practice interactions<br/>[app.js]"]
  node_practice_content["Practice question content<br/>[content.js]"]
  node_practice_core["Practice logic<br/>[core.js]"]
  node_practice_diagrams["Force diagrams<br/>[diagrams.js]"]
  node_quiz_app["Quiz application<br/>[App.tsx]"]
  node_quiz_player["Diagnostic quiz<br/>[QuizPlayer.tsx]"]
  node_quiz_questions["Quiz question bank<br/>[questions.ts]"]
  node_ticker_lab["Ticker-tape lab<br/>[TickerTapeLab.tsx]"]
  node_flashcards["Concept flashcards<br/>[FlashcardsView.tsx]"]
  node_flashcard_data["Flashcard content<br/>[flashcards.ts]"]
  node_quiz_export["Standalone export<br/>[ExportModal.tsx]"]
  node_export_generator["HTML generator"]
end

subgraph group_sky["Sky mapping"]
  node_sky_deck["Sky slide deck<br/>[index.html]"]
  node_sky_lab["Sky mapping lab<br/>[index.html]"]
end

subgraph group_units["Units practice"]
  node_units_lab["Unit conversion practice<br/>[index.html]"]
  node_units_questions["Conversion exercises<br/>[questions.js]"]
  node_units_core["Conversion logic<br/>[conversion-core.js]"]
end

node_learner(("Learner"))
node_home["Course landing<br/>[index.html]"]

node_learner -->|"opens"| node_home
node_learner -->|"studies forces"| node_force_deck
node_learner -->|"uses lab"| node_force_lab
node_learner -->|"opens practice"| node_practice_entry
node_learner -->|"takes quiz"| node_quiz_app
node_learner -->|"studies sky"| node_sky_deck
node_learner -->|"answers questions"| node_sky_lab
node_learner -->|"practices conversions"| node_units_lab
node_force_deck -->|"presents"| node_deck_content
node_force_deck -->|"links stations"| node_force_lab
node_practice_entry -->|"hosts"| node_practice_ui
node_practice_ui -.->|"uses logic"| node_practice_core
node_practice_core -->|"uses content"| node_practice_content
node_practice_ui -.->|"renders diagrams"| node_practice_diagrams
node_quiz_app -->|"renders"| node_quiz_player
node_quiz_app -->|"renders"| node_ticker_lab
node_quiz_app -->|"renders"| node_flashcards
node_quiz_app -->|"opens"| node_quiz_export
node_quiz_player -.->|"uses questions"| node_quiz_questions
node_flashcards -->|"displays"| node_flashcard_data
node_quiz_export -->|"requests HTML"| node_export_generator
node_export_generator -->|"embeds questions"| node_quiz_questions
node_export_generator -->|"embeds cards"| node_flashcard_data
node_units_lab -.->|"presents exercises"| node_units_questions
node_units_lab -.->|"checks conversions"| node_units_core

click node_home "https://github.com/moshezelinger/amat_physics/blob/main/index.html"
click node_force_deck "https://github.com/moshezelinger/amat_physics/blob/main/forces-deck/index.html"
click node_deck_content "https://github.com/moshezelinger/amat_physics/tree/main/forces-deck/project"
click node_force_lab "https://github.com/moshezelinger/amat_physics/blob/main/forces-lab/index.html"
click node_practice_entry "https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/index.html"
click node_practice_ui "https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/app.js"
click node_practice_content "https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/content.js"
click node_practice_core "https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/core.js"
click node_practice_diagrams "https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/diagrams.js"
click node_quiz_app "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/App.tsx"
click node_quiz_player "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/QuizPlayer.tsx"
click node_quiz_questions "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/data/questions.ts"
click node_ticker_lab "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/TickerTapeLab.tsx"
click node_flashcards "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/FlashcardsView.tsx"
click node_flashcard_data "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/data/flashcards.ts"
click node_quiz_export "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/ExportModal.tsx"
click node_export_generator "https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/utils/generateStandaloneHtml.ts"
click node_sky_deck "https://github.com/moshezelinger/amat_physics/blob/main/sky-deck/index.html"
click node_sky_lab "https://github.com/moshezelinger/amat_physics/blob/main/sky-lab/index.html"
click node_units_lab "https://github.com/moshezelinger/amat_physics/blob/main/units-lab/index.html"
click node_units_questions "https://github.com/moshezelinger/amat_physics/blob/main/units-lab/source/questions.js"
click node_units_core "https://github.com/moshezelinger/amat_physics/blob/main/units-lab/source/conversion-core.js"

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_force_deck,node_deck_content,node_force_lab toneBlue
class node_practice_entry,node_practice_ui,node_practice_content,node_practice_core,node_practice_diagrams,node_quiz_app,node_quiz_player,node_quiz_questions,node_ticker_lab,node_flashcards,node_flashcard_data,node_quiz_export,node_export_generator toneAmber
class node_sky_deck,node_sky_lab toneMint
class node_units_lab,node_units_questions,node_units_core toneRose
class node_learner toneIndigo
class node_home toneTeal
```

## Components

### Forces lessons

- [Forces slide deck](https://github.com/moshezelinger/amat_physics/blob/main/forces-deck/index.html): `forces-deck/index.html`
- [Deck slides and design](https://github.com/moshezelinger/amat_physics/tree/main/forces-deck/project): `forces-deck/project`
- [Forces lab](https://github.com/moshezelinger/amat_physics/blob/main/forces-lab/index.html): `forces-lab/index.html`

### Practice applications

- [Practice app entry](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/index.html): `physics-practice/index.html`
- [Practice interactions](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/app.js): `physics-practice/source/app.js`
- [Practice question content](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/content.js): `physics-practice/source/content.js`
- [Practice logic](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/core.js): `physics-practice/source/core.js`
- [Force diagrams](https://github.com/moshezelinger/amat_physics/blob/main/physics-practice/source/diagrams.js): `physics-practice/source/diagrams.js`
- [Quiz application](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/App.tsx): `quiz_lab_velosity/src/App.tsx`
- [Diagnostic quiz](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/QuizPlayer.tsx): `quiz_lab_velosity/src/components/QuizPlayer.tsx`
- [Quiz question bank](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/data/questions.ts): `quiz_lab_velosity/src/data/questions.ts`
- [Ticker-tape lab](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/TickerTapeLab.tsx): `quiz_lab_velosity/src/components/TickerTapeLab.tsx`
- [Concept flashcards](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/FlashcardsView.tsx): `quiz_lab_velosity/src/components/FlashcardsView.tsx`
- [Flashcard content](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/data/flashcards.ts): `quiz_lab_velosity/src/data/flashcards.ts`
- [Standalone export](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/components/ExportModal.tsx): `quiz_lab_velosity/src/components/ExportModal.tsx`
- [HTML generator](https://github.com/moshezelinger/amat_physics/blob/main/quiz_lab_velosity/src/utils/generateStandaloneHtml.ts): `quiz_lab_velosity/src/utils/generateStandaloneHtml.ts`

### Sky mapping

- [Sky slide deck](https://github.com/moshezelinger/amat_physics/blob/main/sky-deck/index.html): `sky-deck/index.html`
- [Sky mapping lab](https://github.com/moshezelinger/amat_physics/blob/main/sky-lab/index.html): `sky-lab/index.html`

### Units practice

- [Unit conversion practice](https://github.com/moshezelinger/amat_physics/blob/main/units-lab/index.html): `units-lab/index.html`
- [Conversion exercises](https://github.com/moshezelinger/amat_physics/blob/main/units-lab/source/questions.js): `units-lab/source/questions.js`
- [Conversion logic](https://github.com/moshezelinger/amat_physics/blob/main/units-lab/source/conversion-core.js): `units-lab/source/conversion-core.js`

### Other components

- **Learner**
- [Course landing](https://github.com/moshezelinger/amat_physics/blob/main/index.html): `index.html`

## Connections

- Learner → Course landing: opens (evidence: `README.md`)
- Learner → Forces slide deck: studies forces (evidence: `README.md`)
- Learner → Forces lab: uses lab (evidence: `README.md`)
- Learner → Practice app entry: opens practice (evidence: `README.md`)
- Learner → Quiz application: takes quiz (evidence: `README.md`)
- Learner → Sky slide deck: studies sky (evidence: `README.md`)
- Learner → Sky mapping lab: answers questions (evidence: `README.md`)
- Learner → Unit conversion practice: practices conversions (evidence: `README.md`)
- Forces slide deck → Deck slides and design: presents (evidence: `README.md`)
- Forces slide deck → Forces lab: links stations (evidence: `README.md`)
- Practice app entry → Practice interactions: hosts (evidence: `README.md`)
- Practice interactions → Practice logic: uses logic
- Practice logic → Practice question content: uses content (evidence: `physics-practice/source/core.js`)
- Practice interactions → Force diagrams: renders diagrams
- Quiz application → Diagnostic quiz: renders (evidence: `quiz_lab_velosity/src/App.tsx`)
- Quiz application → Ticker-tape lab: renders (evidence: `quiz_lab_velosity/src/App.tsx`)
- Quiz application → Concept flashcards: renders (evidence: `quiz_lab_velosity/src/App.tsx`)
- Quiz application → Standalone export: opens (evidence: `quiz_lab_velosity/src/App.tsx`)
- Diagnostic quiz → Quiz question bank: uses questions
- Concept flashcards → Flashcard content: displays (evidence: `quiz_lab_velosity/src/components/FlashcardsView.tsx`)
- Standalone export → HTML generator: requests HTML (evidence: `quiz_lab_velosity/src/components/ExportModal.tsx`)
- HTML generator → Quiz question bank: embeds questions (evidence: `quiz_lab_velosity/src/utils/generateStandaloneHtml.ts`)
- HTML generator → Flashcard content: embeds cards (evidence: `quiz_lab_velosity/src/utils/generateStandaloneHtml.ts`)
- Unit conversion practice → Conversion exercises: presents exercises
- Unit conversion practice → Conversion logic: checks conversions
