# rajrishabh15/onedesk-tkinter architecture

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

- Interactive diagram: https://gitdiagram.com/rajrishabh15/onedesk-tkinter
- Repository: https://github.com/rajrishabh15/onedesk-tkinter

## Overview

OneDesk is a local-first Tkinter productivity app. The main workflow is launching the desktop window, signing in or using instant demo access, then navigating among dashboard, notes, tasks, calendar, analytics, and settings; those screens present and manage productivity data stored locally in JSON. Shared UI components provide navigation, search, dialogs, and themed controls. The README documents additional capabilities not fully visible in the excerpts; the graph includes them at their documented module paths. Some view-to-store wiring is only partly sampled, so uncertain links are omitted.

Main entry points: [`main.py`](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/main.py) (App router), [`onedesk/state.py`](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/state.py) (Reactive store), [`onedesk/auth.py`](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/auth.py) (Auth manager), [`onedesk/views/tasks_view.py`](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/tasks_view.py) (Tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_main["App router<br/>[main.py]"]
  node_authview["Sign-in screens<br/>[auth_view.py]"]
end

subgraph group_features["Productivity features"]
  node_dashboard["Dashboard<br/>[dashboard_view.py]"]
  node_notes["Notes<br/>[notes_view.py]"]
  node_tasks["Tasks<br/>[tasks_view.py]"]
  node_calendar["Calendar<br/>[calendar_view.py]"]
  node_analytics["Analytics<br/>[analytics_view.py]"]
  node_settings["Settings<br/>[settings_view.py]"]
end

subgraph group_shared["Shared interface"]
  node_navbar["Top navigation<br/>[navbar.py]"]
  node_sidebar["Sidebar<br/>[sidebar.py]"]
  node_search["Global search<br/>[search_popup.py]"]
  node_dialogs["Edit dialogs<br/>[modals.py]"]
  node_uihelpers["UI helpers<br/>[ui_helpers.py]"]
  node_themes["Theme system<br/>[config.py]"]
  node_platform["Window helpers"]
end

subgraph group_core["Identity and data"]
  node_auth["Auth manager<br/>[auth.py]"]
  node_state["Reactive store<br/>[state.py]"]
  node_storage[("JSON persistence<br/>[storage.py]")]
  node_db[("Optional MySQL<br/>[db.py]")]
end

node_user(("User"))

node_user -->|"launches"| node_main
node_main -->|"routes to"| node_authview
node_authview -->|"authenticates"| node_auth
node_main -->|"routes to"| node_dashboard
node_main -->|"routes to"| node_notes
node_main -->|"routes to"| node_tasks
node_main -->|"routes to"| node_calendar
node_main -->|"routes to"| node_analytics
node_main -->|"routes to"| node_settings
node_main -->|"creates"| node_auth
node_main -->|"creates"| node_state
node_auth -->|"persists session"| node_storage
node_auth -.->|"uses when enabled"| node_db
node_state -->|"persists data"| node_storage
node_dashboard -->|"reads and updates"| node_state
node_tasks -->|"updates tasks"| node_state
node_calendar -->|"adds events"| node_state
node_main -->|"builds"| node_navbar
node_main -->|"builds"| node_sidebar
node_navbar -->|"opens"| node_search
node_search -->|"searches"| node_state
node_tasks -->|"opens task dialog"| node_dialogs
node_calendar -->|"opens event dialog"| node_dialogs
node_main -->|"loads theme"| node_themes
node_main -->|"configures window"| node_platform
node_navbar -->|"uses controls"| node_uihelpers
node_dialogs -->|"uses controls"| node_uihelpers
node_sidebar -->|"uses controls"| node_uihelpers

click node_main "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/main.py"
click node_authview "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/auth_view.py"
click node_dashboard "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/dashboard_view.py"
click node_notes "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/notes_view.py"
click node_tasks "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/tasks_view.py"
click node_calendar "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/calendar_view.py"
click node_analytics "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/analytics_view.py"
click node_settings "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/settings_view.py"
click node_navbar "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/navbar.py"
click node_sidebar "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/sidebar.py"
click node_search "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/search_popup.py"
click node_dialogs "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/modals.py"
click node_uihelpers "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/ui_helpers.py"
click node_themes "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/config.py"
click node_platform "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/platform_helpers.py"
click node_auth "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/auth.py"
click node_state "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/state.py"
click node_storage "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/storage.py"
click node_db "https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/db.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_main,node_authview,node_user toneBlue
class node_dashboard,node_notes,node_tasks,node_calendar,node_analytics,node_settings toneAmber
class node_navbar,node_sidebar,node_search,node_dialogs,node_uihelpers,node_themes,node_platform toneMint
class node_auth,node_state,node_storage,node_db toneRose
```

## Components

### App and navigation

- [App router](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/main.py): `main.py`
- [Sign-in screens](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/auth_view.py): `onedesk/views/auth_view.py`

### Productivity features

- [Dashboard](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/dashboard_view.py): `onedesk/views/dashboard_view.py`
- [Notes](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/notes_view.py): `onedesk/views/notes_view.py`
- [Tasks](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/tasks_view.py): `onedesk/views/tasks_view.py`
- [Calendar](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/calendar_view.py): `onedesk/views/calendar_view.py`
- [Analytics](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/analytics_view.py): `onedesk/views/analytics_view.py`
- [Settings](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/views/settings_view.py): `onedesk/views/settings_view.py`

### Shared interface

- [Top navigation](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/navbar.py): `onedesk/components/navbar.py`
- [Sidebar](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/sidebar.py): `onedesk/components/sidebar.py`
- [Global search](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/search_popup.py): `onedesk/components/search_popup.py`
- [Edit dialogs](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/modals.py): `onedesk/components/modals.py`
- [UI helpers](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/components/ui_helpers.py): `onedesk/components/ui_helpers.py`
- [Theme system](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/config.py): `onedesk/config.py`
- [Window helpers](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/platform_helpers.py): `onedesk/platform_helpers.py`

### Identity and data

- [Auth manager](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/auth.py): `onedesk/auth.py`
- [Reactive store](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/state.py): `onedesk/state.py`
- [JSON persistence](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/storage.py): `onedesk/storage.py`
- [Optional MySQL](https://github.com/rajrishabh15/onedesk-tkinter/blob/main/onedesk/db.py): `onedesk/db.py`

### Other components

- **User**

## Connections

- User → App router: launches (evidence: `README.md`)
- App router → Sign-in screens: routes to (evidence: `main.py`)
- Sign-in screens → Auth manager: authenticates (evidence: `onedesk/views/auth_view.py`)
- App router → Dashboard: routes to (evidence: `README.md`)
- App router → Notes: routes to (evidence: `README.md`)
- App router → Tasks: routes to (evidence: `main.py`)
- App router → Calendar: routes to (evidence: `main.py`)
- App router → Analytics: routes to (evidence: `README.md`)
- App router → Settings: routes to (evidence: `main.py`)
- App router → Auth manager: creates (evidence: `main.py`)
- App router → Reactive store: creates (evidence: `main.py`)
- Auth manager → JSON persistence: persists session (evidence: `onedesk/auth.py`)
- Auth manager → Optional MySQL: uses when enabled (evidence: `onedesk/auth.py`)
- Reactive store → JSON persistence: persists data (evidence: `onedesk/state.py`)
- Dashboard → Reactive store: reads and updates (evidence: `onedesk/views/dashboard_view.py`)
- Tasks → Reactive store: updates tasks (evidence: `onedesk/views/tasks_view.py`)
- Calendar → Reactive store: adds events (evidence: `onedesk/views/calendar_view.py`)
- App router → Top navigation: builds (evidence: `main.py`)
- App router → Sidebar: builds (evidence: `main.py`)
- Top navigation → Global search: opens (evidence: `onedesk/components/navbar.py`)
- Global search → Reactive store: searches (evidence: `onedesk/components/search_popup.py`)
- Tasks → Edit dialogs: opens task dialog (evidence: `onedesk/views/tasks_view.py`)
- Calendar → Edit dialogs: opens event dialog (evidence: `onedesk/views/calendar_view.py`)
- App router → Theme system: loads theme (evidence: `main.py`)
- App router → Window helpers: configures window (evidence: `main.py`)
- Top navigation → UI helpers: uses controls (evidence: `onedesk/components/navbar.py`)
- Edit dialogs → UI helpers: uses controls (evidence: `onedesk/components/modals.py`)
- Sidebar → UI helpers: uses controls (evidence: `onedesk/components/sidebar.py`)
