# haruki-codee/task_manager architecture

> Architecture diagram of the GitHub repository haruki-codee/task_manager, 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/haruki-codee/task_manager
- Repository: https://github.com/haruki-codee/task_manager

## Overview

This is a small Flask task-management API. A client submits task data or requests task operations; the application validates input, reads or changes task records in SQLite, and returns JSON responses. Database initialization loads the SQL schema from the repository. The supplied excerpts show the API and its database setup, but not the schema contents or template, so those are not expanded into additional product behavior.

Main entry points: [`src/app.py`](https://github.com/haruki-codee/task_manager/blob/main/src/app.py) (Task routes), [`src/schema.sql`](https://github.com/haruki-codee/task_manager/blob/main/src/schema.sql) (Database schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_task_api["Task API"]
  node_api["Task routes<br/>[app.py]"]
  node_store[("SQLite task store")]
  node_schema["Database schema<br/>[schema.sql]"]
end

node_client(("API client"))

node_client -->|"sends requests"| node_api
node_api -->|"reads and writes"| node_store
node_api -->|"loads schema"| node_schema

click node_api "https://github.com/haruki-codee/task_manager/blob/main/src/app.py"
click node_schema "https://github.com/haruki-codee/task_manager/blob/main/src/schema.sql"

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_api,node_store,node_schema,node_client toneBlue
```

## Components

### Task API

- [Task routes](https://github.com/haruki-codee/task_manager/blob/main/src/app.py): `src/app.py`
- **SQLite task store**
- [Database schema](https://github.com/haruki-codee/task_manager/blob/main/src/schema.sql): `src/schema.sql`

### Other components

- **API client**

## Connections

- API client → Task routes: sends requests (evidence: `src/app.py`)
- Task routes → SQLite task store: reads and writes (evidence: `src/app.py`)
- Task routes → Database schema: loads schema (evidence: `src/app.py`)
