# tiny-bytes/task-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/tiny-bytes/task-tracker
- Repository: https://github.com/tiny-bytes/task-tracker

## Overview

Task Tracker is a small command-line application: a user selects a command, the entry point loads task data, dispatches the requested operation, and saves changes when needed. Task operations add, complete, delete, or display tasks; persistence reads and writes JSON in tasks.json. The README documents all four commands. The graph reflects the sampled entry point and core modules; no external services or additional runtime subsystems are indicated.

Main entry points: [`main.py`](https://github.com/tiny-bytes/task-tracker/blob/main/main.py) (CLI entry point), [`task_tracker/storage.py`](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/storage.py) (Task storage), [`tasks.json`](https://github.com/tiny-bytes/task-tracker/blob/main/tasks.json) (Task data), [`task_tracker/tasks.py`](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py) (Add task)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command line"]
  node_entry["CLI entry point<br/>[main.py]"]
end

subgraph group_domain["Task operations"]
  node_add["Add task<br/>[tasks.py]"]
  node_complete["Complete task<br/>[tasks.py]"]
  node_delete["Delete task<br/>[tasks.py]"]
  node_list["List tasks<br/>[tasks.py]"]
end

subgraph group_persistence["JSON persistence"]
  node_storage["Task storage<br/>[storage.py]"]
  node_json[("Task data<br/>[tasks.json]")]
end

node_user(("User"))

node_user -->|"runs command"| node_entry
node_entry -->|"loads tasks"| node_storage
node_entry -->|"dispatches add"| node_add
node_entry -->|"dispatches done"| node_complete
node_entry -->|"dispatches delete"| node_delete
node_entry -->|"dispatches list"| node_list
node_entry -->|"saves changes"| node_storage
node_storage -->|"reads JSON"| node_json
node_storage -->|"writes JSON"| node_json
node_entry -->|"prints results"| node_user

click node_entry "https://github.com/tiny-bytes/task-tracker/blob/main/main.py"
click node_add "https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py"
click node_complete "https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py"
click node_delete "https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py"
click node_list "https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py"
click node_storage "https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/storage.py"
click node_json "https://github.com/tiny-bytes/task-tracker/blob/main/tasks.json"

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_entry,node_user toneBlue
class node_add,node_complete,node_delete,node_list toneAmber
class node_storage,node_json toneMint
```

## Components

### Command line

- [CLI entry point](https://github.com/tiny-bytes/task-tracker/blob/main/main.py): `main.py`

### Task operations

- [Add task](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py): `task_tracker/tasks.py`
- [Complete task](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py): `task_tracker/tasks.py`
- [Delete task](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py): `task_tracker/tasks.py`
- [List tasks](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/tasks.py): `task_tracker/tasks.py`

### JSON persistence

- [Task storage](https://github.com/tiny-bytes/task-tracker/blob/main/task_tracker/storage.py): `task_tracker/storage.py`
- [Task data](https://github.com/tiny-bytes/task-tracker/blob/main/tasks.json): `tasks.json`

### Other components

- **User**

## Connections

- User → CLI entry point: runs command (evidence: `README.md`)
- CLI entry point → Task storage: loads tasks (evidence: `main.py`)
- CLI entry point → Add task: dispatches add (evidence: `main.py`)
- CLI entry point → Complete task: dispatches done (evidence: `main.py`)
- CLI entry point → Delete task: dispatches delete (evidence: `main.py`)
- CLI entry point → List tasks: dispatches list (evidence: `main.py`)
- CLI entry point → Task storage: saves changes (evidence: `main.py`)
- Task storage → Task data: reads JSON (evidence: `task_tracker/storage.py`)
- Task storage → Task data: writes JSON (evidence: `task_tracker/storage.py`)
- CLI entry point → User: prints results (evidence: `main.py`)
