# gh-yeh/task_manager_app architecture

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

- Interactive diagram: https://gitdiagram.com/gh-yeh/task_manager_app
- Repository: https://github.com/gh-yeh/task_manager_app

## Overview

This is a small browser-based task manager: users add, edit, delete, complete, and filter tasks, with task data persisted in browser local storage. The runtime is concentrated in one JavaScript file, so its event handling, task state, and rendering are shown as distinct responsibilities sharing that source path. The HTML file is identified from the tree, but its contents were not provided; UI wiring is therefore limited to what the JavaScript excerpt supports.

Main entry points: [`scripts/index.js`](https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js) (Event handling), [`index.html`](https://github.com/gh-yeh/task_manager_app/blob/main/index.html) (Task interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_task_app["Task manager"]
  node_ui["Task interface<br/>[index.html]"]
  node_app["Event handling<br/>[index.js]"]
  node_state["Task state<br/>[index.js]"]
  node_view["Render and filter<br/>[index.js]"]
end

node_user(("User"))
node_storage[("Browser storage")]

node_user -.->|"uses"| node_ui
node_ui -.->|"triggers actions"| node_app
node_app -->|"updates"| node_state
node_app -->|"requests render"| node_view
node_view -->|"filters tasks"| node_state
node_view -->|"updates DOM"| node_ui
node_app -->|"loads and saves"| node_storage

click node_ui "https://github.com/gh-yeh/task_manager_app/blob/main/index.html"
click node_app "https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js"
click node_state "https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js"
click node_view "https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.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_ui,node_app,node_state,node_view,node_user toneBlue
class node_storage toneAmber
```

## Components

### Task manager

- [Task interface](https://github.com/gh-yeh/task_manager_app/blob/main/index.html): `index.html`
- [Event handling](https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js): `scripts/index.js`
- [Task state](https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js): `scripts/index.js`
- [Render and filter](https://github.com/gh-yeh/task_manager_app/blob/main/scripts/index.js): `scripts/index.js`

### Other components

- **User**
- **Browser storage**

## Connections

- User → Task interface: uses
- Task interface → Event handling: triggers actions
- Event handling → Task state: updates (evidence: `scripts/index.js`)
- Event handling → Render and filter: requests render (evidence: `scripts/index.js`)
- Render and filter → Task state: filters tasks (evidence: `scripts/index.js`)
- Render and filter → Task interface: updates DOM (evidence: `scripts/index.js`)
- Event handling → Browser storage: loads and saves (evidence: `scripts/index.js`)
