# xbi360/icd architecture

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

- Interactive diagram: https://gitdiagram.com/xbi360/icd
- Repository: https://github.com/xbi360/icd

## Overview

This is a small Flask task manager. A browser requests the task list or submits an action; Flask reads, creates, toggles, or deletes tasks in MariaDB, then redirects action requests back to the list. The list handler renders the HTML template. The source excerpt shows the routes, model, database configuration, and render call; template behavior and the SQL file’s contents were not inspected.

Main entry points: [`app.py`](https://github.com/xbi360/icd/blob/main/app.py) (List tasks), [`templates/index.html`](https://github.com/xbi360/icd/blob/main/templates/index.html) (Task list view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_list["List tasks<br/>[app.py]"]
  node_create["Create task<br/>[app.py]"]
  node_toggle["Toggle task<br/>[app.py]"]
  node_delete["Delete task<br/>[app.py]"]
  node_template["Task list view<br/>[index.html]"]
end

subgraph group_data["Task data"]
  node_mariadb[("MariaDB")]
end

node_browser(("Browser"))

node_browser -->|"requests"| node_list
node_browser -->|"submits"| node_create
node_browser -->|"requests"| node_toggle
node_browser -->|"requests"| node_delete
node_list -->|"reads tasks"| node_mariadb
node_create -->|"writes task"| node_mariadb
node_toggle -->|"updates task"| node_mariadb
node_delete -->|"deletes task"| node_mariadb
node_list -->|"renders"| node_template

click node_list "https://github.com/xbi360/icd/blob/main/app.py"
click node_create "https://github.com/xbi360/icd/blob/main/app.py"
click node_toggle "https://github.com/xbi360/icd/blob/main/app.py"
click node_delete "https://github.com/xbi360/icd/blob/main/app.py"
click node_template "https://github.com/xbi360/icd/blob/main/templates/index.html"

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_list,node_create,node_toggle,node_delete,node_template,node_browser toneBlue
class node_mariadb toneAmber
```

## Components

### Web application

- [List tasks](https://github.com/xbi360/icd/blob/main/app.py): `app.py`
- [Create task](https://github.com/xbi360/icd/blob/main/app.py): `app.py`
- [Toggle task](https://github.com/xbi360/icd/blob/main/app.py): `app.py`
- [Delete task](https://github.com/xbi360/icd/blob/main/app.py): `app.py`
- [Task list view](https://github.com/xbi360/icd/blob/main/templates/index.html): `templates/index.html`

### Task data

- **MariaDB**

### Other components

- **Browser**

## Connections

- Browser → List tasks: requests (evidence: `app.py`)
- Browser → Create task: submits (evidence: `app.py`)
- Browser → Toggle task: requests (evidence: `app.py`)
- Browser → Delete task: requests (evidence: `app.py`)
- List tasks → MariaDB: reads tasks (evidence: `app.py`)
- Create task → MariaDB: writes task (evidence: `app.py`)
- Toggle task → MariaDB: updates task (evidence: `app.py`)
- Delete task → MariaDB: deletes task (evidence: `app.py`)
- List tasks → Task list view: renders (evidence: `app.py`)
