# yitbarek-git/javascript_projects architecture

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

- Interactive diagram: https://gitdiagram.com/yitbarek-git/javascript_projects
- Repository: https://github.com/yitbarek-git/javascript_projects

## Overview

This is a JavaScript learning journal and portfolio of independent browser-based examples, not a single application pipeline. The main user workflow is to open the journal or a project page, interact with its controls, and see a browser-rendered result. The graph preserves the documented fundamentals and the sampled interactive projects; the README describes the projects as independently launchable. Source excerpts show several project interactions, but do not establish wiring for unsampled pages, so those links are omitted.

Main entry points: [`Adding-camera-to-web/index.html`](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.html) (Camera page), [`Adding-camera-to-web/index.js`](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.js) (Camera stream), [`Adding-camera-to-web/script.js`](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/script.js) (Camera gift interaction), [`Body-mass-index calculator/index.html`](https://github.com/yitbarek-git/javascript_projects/blob/main/Body-mass-index%20calculator/index.html) (BMI calculator page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_journal["Learning journal"]
  node_journal_home["Learning journal<br/>[index.html]"]
end

subgraph group_examples["JavaScript examples"]
  node_fundamentals["Language fundamentals<br/>[index.html]"]
  node_async_example["Async example<br/>[index.html]"]
end

subgraph group_time["Time and health tools"]
  node_bmi_page["BMI calculator page<br/>[index.html]"]
  node_bmi_logic["BMI calculation<br/>[index.js]"]
  node_clock_page["Analog clock page<br/>[index.html]"]
  node_clock_logic["Clock updates<br/>[index.js]"]
  node_countdown_page["New Year countdown page<br/>[index.html]"]
  node_countdown_logic["Countdown updates<br/>[index.js]"]
end

subgraph group_games["Interactive games"]
  node_rps_page["Rock paper scissors page<br/>[index.html]"]
  node_rps_logic["Game rules and state<br/>[index.js]"]
  node_rps_alt_page["Alternate game page<br/>[index2.html]"]
  node_dice_page["Rolling dice page<br/>[index.html]"]
  node_dice_logic["Dice rolls and ranking<br/>[index.js]"]
  node_guess_page["Number guessing page<br/>[index.html]"]
  node_guess_logic["Guessing game<br/>[index.js]"]
end

subgraph group_browser["Browser capabilities"]
  node_camera_page["Camera page<br/>[index.html]"]
  node_camera_logic["Camera stream<br/>[index.js]"]
  node_camera_gift_logic["Camera gift interaction<br/>[script.js]"]
end

node_learner(("Learner"))
node_webcam{{"Browser webcam API"}}
node_browser_ui["Browser page UI"]

node_learner -->|"opens journal"| node_journal_home
node_learner -->|"opens examples"| node_fundamentals
node_learner -->|"opens example"| node_async_example
node_learner -->|"opens project"| node_bmi_page
node_learner -->|"opens project"| node_clock_page
node_learner -->|"opens project"| node_countdown_page
node_learner -.->|"opens project"| node_rps_page
node_learner -.->|"opens page"| node_rps_alt_page
node_learner -.->|"opens project"| node_dice_page
node_learner -.->|"opens project"| node_guess_page
node_learner -->|"opens project"| node_camera_page
node_bmi_page -.->|"loads script"| node_bmi_logic
node_bmi_logic -->|"updates display"| node_browser_ui
node_clock_page -.->|"loads script"| node_clock_logic
node_clock_logic -->|"rotates hands"| node_browser_ui
node_countdown_page -.->|"loads script"| node_countdown_logic
node_countdown_logic -->|"writes countdown"| node_browser_ui
node_rps_page -.->|"loads script"| node_rps_logic
node_rps_logic -->|"updates game UI"| node_browser_ui
node_dice_page -.->|"loads script"| node_dice_logic
node_dice_logic -->|"writes roll results"| node_browser_ui
node_guess_page -.->|"loads script"| node_guess_logic
node_guess_logic -->|"prompts and alerts"| node_browser_ui
node_camera_page -.->|"loads script"| node_camera_logic
node_camera_page -.->|"loads script"| node_camera_gift_logic
node_camera_logic -->|"requests video"| node_webcam
node_camera_logic -->|"sets video source"| node_browser_ui
node_camera_gift_logic -->|"requests video"| node_webcam
node_camera_gift_logic -->|"updates gift UI"| node_browser_ui

click node_journal_home "https://github.com/yitbarek-git/javascript_projects/blob/main/index.html"
click node_fundamentals "https://github.com/yitbarek-git/javascript_projects/blob/main/JS-basics/index.html"
click node_async_example "https://github.com/yitbarek-git/javascript_projects/blob/main/Asynchronous%20JavaScript/index.html"
click node_bmi_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Body-mass-index%20calculator/index.html"
click node_bmi_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Body-mass-index%20calculator/index.js"
click node_clock_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Functional-Analog-Clock/index.html"
click node_clock_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Functional-Analog-Clock/index.js"
click node_countdown_page "https://github.com/yitbarek-git/javascript_projects/blob/main/New-year-countDown/index.html"
click node_countdown_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/New-year-countDown/index.js"
click node_rps_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index.html"
click node_rps_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index.js"
click node_rps_alt_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index2.html"
click node_dice_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Rolling-Dice/index.html"
click node_dice_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Rolling-Dice/index.js"
click node_guess_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Number-guessing%20game/index.html"
click node_guess_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Number-guessing%20game/index.js"
click node_camera_page "https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.html"
click node_camera_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.js"
click node_camera_gift_logic "https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/script.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_journal_home,node_webcam,node_browser_ui toneBlue
class node_fundamentals,node_async_example toneAmber
class node_bmi_page,node_bmi_logic,node_clock_page,node_clock_logic,node_countdown_page,node_countdown_logic toneMint
class node_rps_page,node_rps_logic,node_rps_alt_page,node_dice_page,node_dice_logic,node_guess_page,node_guess_logic toneRose
class node_camera_page,node_camera_logic,node_camera_gift_logic,node_learner toneIndigo
```

## Components

### Learning journal

- [Learning journal](https://github.com/yitbarek-git/javascript_projects/blob/main/index.html): `index.html`

### JavaScript examples

- [Language fundamentals](https://github.com/yitbarek-git/javascript_projects/blob/main/JS-basics/index.html): `JS-basics/index.html`
- [Async example](https://github.com/yitbarek-git/javascript_projects/blob/main/Asynchronous%20JavaScript/index.html): `Asynchronous JavaScript/index.html`

### Time and health tools

- [BMI calculator page](https://github.com/yitbarek-git/javascript_projects/blob/main/Body-mass-index%20calculator/index.html): `Body-mass-index calculator/index.html`
- [BMI calculation](https://github.com/yitbarek-git/javascript_projects/blob/main/Body-mass-index%20calculator/index.js): `Body-mass-index calculator/index.js`
- [Analog clock page](https://github.com/yitbarek-git/javascript_projects/blob/main/Functional-Analog-Clock/index.html): `Functional-Analog-Clock/index.html`
- [Clock updates](https://github.com/yitbarek-git/javascript_projects/blob/main/Functional-Analog-Clock/index.js): `Functional-Analog-Clock/index.js`
- [New Year countdown page](https://github.com/yitbarek-git/javascript_projects/blob/main/New-year-countDown/index.html): `New-year-countDown/index.html`
- [Countdown updates](https://github.com/yitbarek-git/javascript_projects/blob/main/New-year-countDown/index.js): `New-year-countDown/index.js`

### Interactive games

- [Rock paper scissors page](https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index.html): `Rock-paper-sisors-game/index.html`
- [Game rules and state](https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index.js): `Rock-paper-sisors-game/index.js`
- [Alternate game page](https://github.com/yitbarek-git/javascript_projects/blob/main/Rock-paper-sisors-game/index2.html): `Rock-paper-sisors-game/index2.html`
- [Rolling dice page](https://github.com/yitbarek-git/javascript_projects/blob/main/Rolling-Dice/index.html): `Rolling-Dice/index.html`
- [Dice rolls and ranking](https://github.com/yitbarek-git/javascript_projects/blob/main/Rolling-Dice/index.js): `Rolling-Dice/index.js`
- [Number guessing page](https://github.com/yitbarek-git/javascript_projects/blob/main/Number-guessing%20game/index.html): `Number-guessing game/index.html`
- [Guessing game](https://github.com/yitbarek-git/javascript_projects/blob/main/Number-guessing%20game/index.js): `Number-guessing game/index.js`

### Browser capabilities

- [Camera page](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.html): `Adding-camera-to-web/index.html`
- [Camera stream](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/index.js): `Adding-camera-to-web/index.js`
- [Camera gift interaction](https://github.com/yitbarek-git/javascript_projects/blob/main/Adding-camera-to-web/script.js): `Adding-camera-to-web/script.js`

### Other components

- **Learner**
- **Browser webcam API**
- **Browser page UI**

## Connections

- Learner → Learning journal: opens journal (evidence: `README.md`)
- Learner → Language fundamentals: opens examples (evidence: `README.md`)
- Learner → Async example: opens example (evidence: `README.md`)
- Learner → BMI calculator page: opens project (evidence: `README.md`)
- Learner → Analog clock page: opens project (evidence: `README.md`)
- Learner → New Year countdown page: opens project (evidence: `README.md`)
- Learner → Rock paper scissors page: opens project
- Learner → Alternate game page: opens page
- Learner → Rolling dice page: opens project
- Learner → Number guessing page: opens project
- Learner → Camera page: opens project (evidence: `README.md`)
- BMI calculator page → BMI calculation: loads script
- BMI calculation → Browser page UI: updates display (evidence: `Body-mass-index calculator/index.js`)
- Analog clock page → Clock updates: loads script
- Clock updates → Browser page UI: rotates hands (evidence: `Functional-Analog-Clock/index.js`)
- New Year countdown page → Countdown updates: loads script
- Countdown updates → Browser page UI: writes countdown (evidence: `New-year-countDown/index.js`)
- Rock paper scissors page → Game rules and state: loads script
- Game rules and state → Browser page UI: updates game UI (evidence: `Rock-paper-sisors-game/index.js`)
- Rolling dice page → Dice rolls and ranking: loads script
- Dice rolls and ranking → Browser page UI: writes roll results (evidence: `Rolling-Dice/index.js`)
- Number guessing page → Guessing game: loads script
- Guessing game → Browser page UI: prompts and alerts (evidence: `Number-guessing game/index.js`)
- Camera page → Camera stream: loads script
- Camera page → Camera gift interaction: loads script
- Camera stream → Browser webcam API: requests video (evidence: `Adding-camera-to-web/index.js`)
- Camera stream → Browser page UI: sets video source (evidence: `Adding-camera-to-web/index.js`)
- Camera gift interaction → Browser webcam API: requests video (evidence: `Adding-camera-to-web/script.js`)
- Camera gift interaction → Browser page UI: updates gift UI (evidence: `Adding-camera-to-web/script.js`)
