# backmeupplz/todorant-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/backmeupplz/todorant-frontend
- Repository: https://github.com/backmeupplz/todorant-frontend

## Overview

Todorant is a Vue frontend for managing and planning todos. The principal workflow presents current or planned tasks, lets users edit and act on them, and sends task operations through the API; authenticated clients also synchronize through sockets. The source index supports additional product areas including delegation, reports, tags, settings, and calendar integration. Unsampled views are represented by their exact directories; their internal call paths are not inferred. Edges reflect shown imports, calls, or documented API operations.

Main entry points: [`src/utils/api.ts`](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/api.ts) (HTTP API), [`src/components/TodoCard/TodoCard.vue`](https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoCard/TodoCard.vue) (Todo card), [`src/store/index.ts`](https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/index.ts) (Vuex state), [`src/main.ts`](https://github.com/backmeupplz/todorant-frontend/blob/main/src/main.ts) (Vue application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["Vue application<br/>[main.ts]"]
  node_shell["App shell<br/>[App.vue]"]
  node_store["Vuex state<br/>[index.ts]"]
end

subgraph group_tasks["Todo workflow"]
  node_current["Current tasks"]
  node_planning["Task planning"]
  node_taskcard["Todo card<br/>[TodoCard.vue]"]
  node_tasktext["Todo text<br/>[TodoText.vue]"]
  node_todoform["Todo form<br/>[TodoForm.vue]"]
  node_edit["Edit todo<br/>[EditTodo.vue]"]
  node_todo["Todo model<br/>[Todo.ts]"]
end

subgraph group_services["Data and sync"]
  node_api["HTTP API<br/>[api.ts]"]
  node_socketentry["Socket setup<br/>[index.ts]"]
  node_sync["Sync manager<br/>[SyncManager.ts]"]
  node_socket["Socket transport<br/>[socketIO.ts]"]
  node_socketstate["Socket state<br/>[SocketsStore.ts]"]
  node_encryption["Todo encryption<br/>[encryption.ts]"]
end

subgraph group_capabilities["Product features"]
  node_delegation["Delegation"]
  node_reports["Progress reports<br/>[Report.vue]"]
  node_publicreport["Public reports<br/>[PublicReport.vue]"]
  node_settings["Settings<br/>[Settings.vue]"]
  node_settingsstate["Settings state<br/>[SettingsStore.ts]"]
  node_tags["Tags and epics"]
  node_calendar["Calendar setup"]
end

node_user(("User"))
node_backend["Todorant backend"]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_shell
node_app -->|"mounts with"| node_store
node_app -->|"starts"| node_socketentry
node_shell -->|"reads state"| node_store
node_current -->|"renders"| node_taskcard
node_current -->|"calls"| node_api
node_current -->|"opens"| node_edit
node_planning -->|"renders"| node_taskcard
node_planning -->|"calls"| node_api
node_planning -->|"opens"| node_edit
node_taskcard -->|"renders"| node_tasktext
node_taskcard -->|"uses"| node_todo
node_taskcard -->|"calls"| node_api
node_taskcard -->|"decrypts with"| node_encryption
node_todoform -->|"uses"| node_todo
node_edit -->|"edits"| node_todo
node_api -->|"sends HTTP"| node_backend
node_api -->|"reads state"| node_store
node_socketentry -->|"uses"| node_sync
node_socketentry -->|"uses"| node_socket
node_socketentry -->|"uses"| node_socketstate
node_sync -->|"emits and listens"| node_socket
node_sync -->|"checks authorization"| node_socketstate
node_sync -->|"reads state"| node_store
node_settings -->|"calls"| node_api
node_settings -->|"reads state"| node_store
node_settings -.->|"configures"| node_settingsstate
node_delegation -.->|"uses API"| node_api
node_reports -.->|"uses API"| node_api
node_publicreport -.->|"uses API"| node_api
node_tags -.->|"uses API"| node_api
node_calendar -.->|"configures"| node_settingsstate

click node_app "https://github.com/backmeupplz/todorant-frontend/blob/main/src/main.ts"
click node_shell "https://github.com/backmeupplz/todorant-frontend/blob/main/src/App.vue"
click node_store "https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/index.ts"
click node_current "https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/current"
click node_planning "https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/planning"
click node_taskcard "https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoCard/TodoCard.vue"
click node_tasktext "https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoCard/TodoText.vue"
click node_todoform "https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoForm/TodoForm.vue"
click node_edit "https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/EditTodo.vue"
click node_todo "https://github.com/backmeupplz/todorant-frontend/blob/main/src/models/Todo.ts"
click node_api "https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/api.ts"
click node_socketentry "https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/index.ts"
click node_sync "https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/SyncManager.ts"
click node_socket "https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/socketIO.ts"
click node_socketstate "https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/modules/SocketsStore.ts"
click node_encryption "https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/encryption.ts"
click node_delegation "https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/delegation"
click node_reports "https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/Report.vue"
click node_publicreport "https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/PublicReport.vue"
click node_settings "https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/Settings.vue"
click node_settingsstate "https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/modules/SettingsStore.ts"
click node_tags "https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/settings"
click node_calendar "https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/static/GoogleCalendarSetup.vue"

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_app,node_shell,node_store,node_user toneBlue
class node_current,node_planning,node_taskcard,node_tasktext,node_todoform,node_edit,node_todo toneAmber
class node_api,node_socketentry,node_sync,node_socket,node_socketstate,node_encryption toneMint
class node_delegation,node_reports,node_publicreport,node_settings,node_settingsstate,node_tags,node_calendar toneRose
class node_backend toneIndigo
```

## Components

### Application shell

- [Vue application](https://github.com/backmeupplz/todorant-frontend/blob/main/src/main.ts): `src/main.ts`
- [App shell](https://github.com/backmeupplz/todorant-frontend/blob/main/src/App.vue): `src/App.vue`
- [Vuex state](https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/index.ts): `src/store/index.ts`

### Todo workflow

- [Current tasks](https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/current): `src/views/current`
- [Task planning](https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/planning): `src/views/planning`
- [Todo card](https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoCard/TodoCard.vue): `src/components/TodoCard/TodoCard.vue`
- [Todo text](https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoCard/TodoText.vue): `src/components/TodoCard/TodoText.vue`
- [Todo form](https://github.com/backmeupplz/todorant-frontend/blob/main/src/components/TodoForm/TodoForm.vue): `src/components/TodoForm/TodoForm.vue`
- [Edit todo](https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/EditTodo.vue): `src/views/EditTodo.vue`
- [Todo model](https://github.com/backmeupplz/todorant-frontend/blob/main/src/models/Todo.ts): `src/models/Todo.ts`

### Data and sync

- [HTTP API](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/api.ts): `src/utils/api.ts`
- [Socket setup](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/index.ts): `src/utils/sockets/index.ts`
- [Sync manager](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/SyncManager.ts): `src/utils/sockets/SyncManager.ts`
- [Socket transport](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/sockets/socketIO.ts): `src/utils/sockets/socketIO.ts`
- [Socket state](https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/modules/SocketsStore.ts): `src/store/modules/SocketsStore.ts`
- [Todo encryption](https://github.com/backmeupplz/todorant-frontend/blob/main/src/utils/encryption.ts): `src/utils/encryption.ts`

### Product features

- [Delegation](https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/delegation): `src/views/delegation`
- [Progress reports](https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/Report.vue): `src/views/Report.vue`
- [Public reports](https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/PublicReport.vue): `src/views/PublicReport.vue`
- [Settings](https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/Settings.vue): `src/views/Settings.vue`
- [Settings state](https://github.com/backmeupplz/todorant-frontend/blob/main/src/store/modules/SettingsStore.ts): `src/store/modules/SettingsStore.ts`
- [Tags and epics](https://github.com/backmeupplz/todorant-frontend/tree/main/src/views/settings): `src/views/settings`
- [Calendar setup](https://github.com/backmeupplz/todorant-frontend/blob/main/src/views/static/GoogleCalendarSetup.vue): `src/views/static/GoogleCalendarSetup.vue`

### Other components

- **User**
- **Todorant backend**

## Connections

- User → Vue application: uses (evidence: `src/main.ts`)
- Vue application → App shell: renders (evidence: `src/main.ts`)
- Vue application → Vuex state: mounts with (evidence: `src/main.ts`)
- Vue application → Socket setup: starts (evidence: `src/main.ts`)
- App shell → Vuex state: reads state (evidence: `src/App.vue`)
- Current tasks → Todo card: renders (evidence: `src/views/current/CurrentTodo.vue`)
- Current tasks → HTTP API: calls (evidence: `src/views/current/CurrentTodo.vue`)
- Current tasks → Edit todo: opens (evidence: `src/views/current/CurrentTodo.vue`)
- Task planning → Todo card: renders (evidence: `src/views/planning/Planning.vue`)
- Task planning → HTTP API: calls (evidence: `src/views/planning/Planning.vue`)
- Task planning → Edit todo: opens (evidence: `src/views/planning/Planning.vue`)
- Todo card → Todo text: renders (evidence: `src/components/TodoCard/TodoCard.vue`)
- Todo card → Todo model: uses (evidence: `src/components/TodoCard/TodoCard.vue`)
- Todo card → HTTP API: calls (evidence: `src/components/TodoCard/TodoCard.vue`)
- Todo card → Todo encryption: decrypts with (evidence: `src/components/TodoCard/TodoCard.vue`)
- Todo form → Todo model: uses (evidence: `src/components/TodoForm/TodoForm.vue`)
- Edit todo → Todo model: edits (evidence: `src/models/Todo.ts`)
- HTTP API → Todorant backend: sends HTTP (evidence: `src/utils/api.ts`)
- HTTP API → Vuex state: reads state (evidence: `src/utils/api.ts`)
- Socket setup → Sync manager: uses (evidence: `src/utils/sockets/index.ts`)
- Socket setup → Socket transport: uses (evidence: `src/utils/sockets/index.ts`)
- Socket setup → Socket state: uses (evidence: `src/utils/sockets/index.ts`)
- Sync manager → Socket transport: emits and listens (evidence: `src/utils/sockets/SyncManager.ts`)
- Sync manager → Socket state: checks authorization (evidence: `src/utils/sockets/SyncManager.ts`)
- Sync manager → Vuex state: reads state (evidence: `src/utils/sockets/SyncManager.ts`)
- Settings → HTTP API: calls (evidence: `src/views/Settings.vue`)
- Settings → Vuex state: reads state (evidence: `src/views/Settings.vue`)
- Settings → Settings state: configures
- Delegation → HTTP API: uses API
- Progress reports → HTTP API: uses API
- Public reports → HTTP API: uses API
- Tags and epics → HTTP API: uses API (evidence: `src/views/settings/SingleTag.vue`)
- Calendar setup → Settings state: configures
