# zaferavci1/kpss-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/zaferavci1/kpss-tracker
- Repository: https://github.com/zaferavci1/kpss-tracker

## Overview

This small script builds a daily KPSS study plan from tasks scheduled for today in Notion, formats the tasks and total study time as a Telegram message, and sends it to a configured chat. The main block orchestrates the workflow. Source evidence is limited to the excerpted main.py; no README or other runtime modules were provided.

Main entry points: [`main.py`](https://github.com/zaferavci1/kpss-tracker/blob/main/main.py) (Main workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_runner(("Script runner"))
node_main["Main workflow<br/>[main.py]"]
node_fetch["Fetch today’s tasks<br/>[main.py]"]
node_format["Format study plan<br/>[main.py]"]
node_send["Send Telegram message<br/>[main.py]"]
node_notion[("Notion database API")]
node_telegram["Telegram Bot API"]

node_runner -->|"runs script"| node_main
node_main -->|"calls"| node_fetch
node_fetch -->|"queries tasks"| node_notion
node_fetch -->|"returns tasks"| node_main
node_main -->|"calls"| node_format
node_format -->|"returns message"| node_main
node_main -->|"calls"| node_send
node_send -->|"sends message"| node_telegram

click node_main "https://github.com/zaferavci1/kpss-tracker/blob/main/main.py"
click node_fetch "https://github.com/zaferavci1/kpss-tracker/blob/main/main.py"
click node_format "https://github.com/zaferavci1/kpss-tracker/blob/main/main.py"
click node_send "https://github.com/zaferavci1/kpss-tracker/blob/main/main.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_runner toneIndigo
class node_main,node_format,node_send toneTeal
class node_fetch toneRose
class node_notion toneAmber
class node_telegram toneMint
```

## Components

### Other components

- **Script runner**
- [Main workflow](https://github.com/zaferavci1/kpss-tracker/blob/main/main.py): `main.py`
- [Fetch today’s tasks](https://github.com/zaferavci1/kpss-tracker/blob/main/main.py): `main.py`
- [Format study plan](https://github.com/zaferavci1/kpss-tracker/blob/main/main.py): `main.py`
- [Send Telegram message](https://github.com/zaferavci1/kpss-tracker/blob/main/main.py): `main.py`
- **Notion database API**
- **Telegram Bot API**

## Connections

- Script runner → Main workflow: runs script (evidence: `main.py`)
- Main workflow → Fetch today’s tasks: calls (evidence: `main.py`)
- Fetch today’s tasks → Notion database API: queries tasks (evidence: `main.py`)
- Fetch today’s tasks → Main workflow: returns tasks (evidence: `main.py`)
- Main workflow → Format study plan: calls (evidence: `main.py`)
- Format study plan → Main workflow: returns message (evidence: `main.py`)
- Main workflow → Send Telegram message: calls (evidence: `main.py`)
- Send Telegram message → Telegram Bot API: sends message (evidence: `main.py`)
