# sayan3296/daily-tasks architecture

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

- Interactive diagram: https://gitdiagram.com/sayan3296/daily-tasks
- Repository: https://github.com/sayan3296/daily-tasks

## Overview

Daily-Tasks is a Fedora desktop task manager with local persistence and an optional Google Drive sync service. The main workflow is users adding, editing, searching, and organizing tasks in the Tkinter app; the app persists task and theme state locally, and can sync task records. Separately, a background daemon checks due tasks, sends desktop notifications, and records reminder state. The README documents several capabilities not visible in the partial app excerpt; sync.py was indexed but not excerpted, so its internal steps are represented only at subsystem level.

Main entry points: [`app.py`](https://github.com/sayan3296/daily-tasks/blob/master/app.py) (Task management UI), [`storage.py`](https://github.com/sayan3296/daily-tasks/blob/master/storage.py) (Task records), [`sync.py`](https://github.com/sayan3296/daily-tasks/blob/master/sync.py) (Sync controller), [`daemon.py`](https://github.com/sayan3296/daily-tasks/blob/master/daemon.py) (Reminder daemon)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop application"]
  node_task_ui["Task management UI<br/>[app.py]"]
  node_task_list["Search and sorted list<br/>[app.py]"]
  node_date_editor["Date entry and editor<br/>[app.py]"]
  node_theme["Theme preference<br/>[app.py]"]
  node_quick_copy["Quick copy<br/>[app.py]"]
end

subgraph group_storage["Local persistence"]
  node_task_store[("Task records<br/>[storage.py]")]
  node_config_store[("Local configuration<br/>[storage.py]")]
  node_safe_io["Locked atomic storage<br/>[storage.py]"]
  node_merge["Timestamp merge and tombstones<br/>[storage.py]"]
end

subgraph group_sync["Cloud sync"]
  node_sync_controller["Sync controller<br/>[sync.py]"]
  node_sync_settings["Sync settings<br/>[sync.py]"]
end

subgraph group_reminders["Background reminders"]
  node_daemon["Reminder daemon<br/>[daemon.py]"]
  node_reminder_check["Due-task check<br/>[daemon.py]"]
end

node_user(("Desktop user"))
node_rclone["rclone transport"]
node_drive[("Google Drive tasks")]
node_notifications["Desktop notifications"]

node_user -->|"manages tasks"| node_task_ui
node_task_ui -->|"loads and saves"| node_task_store
node_task_ui -->|"saves theme"| node_config_store
node_task_ui -->|"refreshes list"| node_task_list
node_task_ui -->|"opens editor"| node_date_editor
node_task_ui -->|"copies task"| node_quick_copy
node_task_list -->|"reads tasks"| node_task_store
node_date_editor -->|"updates due date"| node_task_store
node_safe_io -->|"reads and writes"| node_task_store
node_safe_io -->|"reads and writes"| node_config_store
node_merge -->|"persists merged tasks"| node_task_store
node_task_ui -->|"requests sync"| node_sync_controller
node_task_ui -->|"configures sync"| node_sync_settings
node_sync_controller -->|"merges remote tasks"| node_task_store
node_sync_controller -->|"uses transport"| node_rclone
node_rclone -->|"transfers tasks"| node_drive
node_daemon -->|"syncs each tick"| node_sync_controller
node_daemon -->|"mutates task state"| node_task_store
node_daemon -->|"runs each tick"| node_reminder_check
node_reminder_check -->|"sends reminders"| node_notifications
node_notifications -->|"records snooze"| node_task_store

click node_task_ui "https://github.com/sayan3296/daily-tasks/blob/master/app.py"
click node_task_list "https://github.com/sayan3296/daily-tasks/blob/master/app.py"
click node_date_editor "https://github.com/sayan3296/daily-tasks/blob/master/app.py"
click node_theme "https://github.com/sayan3296/daily-tasks/blob/master/app.py"
click node_quick_copy "https://github.com/sayan3296/daily-tasks/blob/master/app.py"
click node_task_store "https://github.com/sayan3296/daily-tasks/blob/master/storage.py"
click node_config_store "https://github.com/sayan3296/daily-tasks/blob/master/storage.py"
click node_safe_io "https://github.com/sayan3296/daily-tasks/blob/master/storage.py"
click node_merge "https://github.com/sayan3296/daily-tasks/blob/master/storage.py"
click node_sync_controller "https://github.com/sayan3296/daily-tasks/blob/master/sync.py"
click node_sync_settings "https://github.com/sayan3296/daily-tasks/blob/master/sync.py"
click node_daemon "https://github.com/sayan3296/daily-tasks/blob/master/daemon.py"
click node_reminder_check "https://github.com/sayan3296/daily-tasks/blob/master/daemon.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_task_ui,node_task_list,node_date_editor,node_theme,node_quick_copy,node_user toneBlue
class node_task_store,node_config_store,node_safe_io,node_merge,node_drive toneAmber
class node_sync_controller,node_sync_settings toneMint
class node_daemon,node_reminder_check toneRose
class node_rclone,node_notifications toneIndigo
```

## Components

### Desktop application

- [Task management UI](https://github.com/sayan3296/daily-tasks/blob/master/app.py): `app.py`
- [Search and sorted list](https://github.com/sayan3296/daily-tasks/blob/master/app.py): `app.py`
- [Date entry and editor](https://github.com/sayan3296/daily-tasks/blob/master/app.py): `app.py`
- [Theme preference](https://github.com/sayan3296/daily-tasks/blob/master/app.py): `app.py`
- [Quick copy](https://github.com/sayan3296/daily-tasks/blob/master/app.py): `app.py`

### Local persistence

- [Task records](https://github.com/sayan3296/daily-tasks/blob/master/storage.py): `storage.py`
- [Local configuration](https://github.com/sayan3296/daily-tasks/blob/master/storage.py): `storage.py`
- [Locked atomic storage](https://github.com/sayan3296/daily-tasks/blob/master/storage.py): `storage.py`
- [Timestamp merge and tombstones](https://github.com/sayan3296/daily-tasks/blob/master/storage.py): `storage.py`

### Cloud sync

- [Sync controller](https://github.com/sayan3296/daily-tasks/blob/master/sync.py): `sync.py`
- [Sync settings](https://github.com/sayan3296/daily-tasks/blob/master/sync.py): `sync.py`

### Background reminders

- [Reminder daemon](https://github.com/sayan3296/daily-tasks/blob/master/daemon.py): `daemon.py`
- [Due-task check](https://github.com/sayan3296/daily-tasks/blob/master/daemon.py): `daemon.py`

### Other components

- **Desktop user**
- **rclone transport**
- **Google Drive tasks**
- **Desktop notifications**

## Connections

- Desktop user → Task management UI: manages tasks (evidence: `README.md`)
- Task management UI → Task records: loads and saves (evidence: `app.py`)
- Task management UI → Local configuration: saves theme (evidence: `app.py`)
- Task management UI → Search and sorted list: refreshes list (evidence: `app.py`)
- Task management UI → Date entry and editor: opens editor (evidence: `app.py`)
- Task management UI → Quick copy: copies task (evidence: `README.md`)
- Search and sorted list → Task records: reads tasks (evidence: `README.md`)
- Date entry and editor → Task records: updates due date (evidence: `app.py`)
- Locked atomic storage → Task records: reads and writes (evidence: `storage.py`)
- Locked atomic storage → Local configuration: reads and writes (evidence: `storage.py`)
- Timestamp merge and tombstones → Task records: persists merged tasks (evidence: `storage.py`)
- Task management UI → Sync controller: requests sync (evidence: `app.py`)
- Task management UI → Sync settings: configures sync (evidence: `README.md`)
- Sync controller → Task records: merges remote tasks (evidence: `storage.py`)
- Sync controller → rclone transport: uses transport (evidence: `README.md`)
- rclone transport → Google Drive tasks: transfers tasks (evidence: `README.md`)
- Reminder daemon → Sync controller: syncs each tick (evidence: `daemon.py`)
- Reminder daemon → Task records: mutates task state (evidence: `daemon.py`)
- Reminder daemon → Due-task check: runs each tick (evidence: `daemon.py`)
- Due-task check → Desktop notifications: sends reminders (evidence: `daemon.py`)
- Desktop notifications → Task records: records snooze
