# muhaadnasir/task-manager architecture

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

- Interactive diagram: https://gitdiagram.com/muhaadnasir/task-manager
- Repository: https://github.com/muhaadnasir/task-manager

## Overview

Task Manager is a CLI for creating, completing, listing, and reporting on tasks. The user interacts through the CLI, which delegates task operations to the manager; the manager updates task objects and persists changes through injected storage, while notifications report outcomes. The CLI also passes the manager’s tasks to the report generator. The README documents both JSON-file and in-memory storage. Source excerpts show the JSON implementation and runtime wiring; the documented in-memory option is included, but no further runtime connections are inferred.

Main entry points: [`main.py`](https://github.com/muhaadnasir/task-manager/blob/main/main.py) (CLI), [`manager.py`](https://github.com/muhaadnasir/task-manager/blob/main/manager.py) (Task manager), [`storage.py`](https://github.com/muhaadnasir/task-manager/blob/main/storage.py) (Storage implementations), [`model.py`](https://github.com/muhaadnasir/task-manager/blob/main/model.py) (Task model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI workflow"]
  node_cli["CLI<br/>[main.py]"]
end

subgraph group_domain["Task domain"]
  node_manager["Task manager<br/>[manager.py]"]
  node_task["Task model<br/>[model.py]"]
  node_report["Report generator<br/>[report.py]"]
end

subgraph group_adapters["Storage and output"]
  node_storage["Storage implementations<br/>[storage.py]"]
  node_notifier["Console notifier<br/>[notifier.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_cli
node_cli -->|"configures JSON"| node_storage
node_cli -->|"configures console"| node_notifier
node_cli -->|"invokes operations"| node_manager
node_cli -->|"loads tasks"| node_manager
node_manager -->|"creates tasks"| node_task
node_manager -->|"saves and loads"| node_storage
node_manager -->|"sends notices"| node_notifier
node_storage -->|"serializes tasks"| node_task
node_cli -->|"builds summary"| node_report
node_cli -->|"passes tasks"| node_report

click node_cli "https://github.com/muhaadnasir/task-manager/blob/main/main.py"
click node_manager "https://github.com/muhaadnasir/task-manager/blob/main/manager.py"
click node_task "https://github.com/muhaadnasir/task-manager/blob/main/model.py"
click node_report "https://github.com/muhaadnasir/task-manager/blob/main/report.py"
click node_storage "https://github.com/muhaadnasir/task-manager/blob/main/storage.py"
click node_notifier "https://github.com/muhaadnasir/task-manager/blob/main/notifier.py"

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_cli,node_user toneBlue
class node_manager,node_task,node_report toneAmber
class node_storage,node_notifier toneMint
```

## Components

### CLI workflow

- [CLI](https://github.com/muhaadnasir/task-manager/blob/main/main.py): `main.py`

### Task domain

- [Task manager](https://github.com/muhaadnasir/task-manager/blob/main/manager.py): `manager.py`
- [Task model](https://github.com/muhaadnasir/task-manager/blob/main/model.py): `model.py`
- [Report generator](https://github.com/muhaadnasir/task-manager/blob/main/report.py): `report.py`

### Storage and output

- [Storage implementations](https://github.com/muhaadnasir/task-manager/blob/main/storage.py): `storage.py`
- [Console notifier](https://github.com/muhaadnasir/task-manager/blob/main/notifier.py): `notifier.py`

### Other components

- **User**

## Connections

- User → CLI: uses (evidence: `README.md`)
- CLI → Storage implementations: configures JSON (evidence: `main.py`)
- CLI → Console notifier: configures console (evidence: `main.py`)
- CLI → Task manager: invokes operations (evidence: `main.py`)
- CLI → Task manager: loads tasks (evidence: `main.py`)
- Task manager → Task model: creates tasks (evidence: `manager.py`)
- Task manager → Storage implementations: saves and loads (evidence: `manager.py`)
- Task manager → Console notifier: sends notices (evidence: `manager.py`)
- Storage implementations → Task model: serializes tasks (evidence: `storage.py`)
- CLI → Report generator: builds summary (evidence: `main.py`)
- CLI → Report generator: passes tasks (evidence: `main.py`)
