# adnanak8/vocatask architecture

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

- Interactive diagram: https://gitdiagram.com/adnanak8/vocatask
- Repository: https://github.com/adnanak8/vocatask

## Overview

VocaTask is a voice-first task manager with a separate FrontFix diagnostic assistant. The main task flow runs from browser voice capture and task review through the task API to persistent storage; task interpretation and reminders support that flow. The README also documents authentication and FrontFix as distinct capabilities. Several frontend and voice modules were not excerpted, so uncertain internal links are omitted or marked unverified rather than inferred as fact.

Main entry points: [`backend/app/services/frontfix/engine.py`](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/engine.py) (Diagnostic engine), [`backend/app/main.py`](https://github.com/adnanak8/vocatask/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/api/auth.py`](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/auth.py) (Auth API), [`backend/app/api/tasks.py`](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/tasks.py) (Task API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["PWA client"]
  node_app["App shell<br/>[App.tsx]"]
  node_notifications["Notifications"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_tasks["Task workflow"]
  node_voice_capture["Voice capture<br/>[VoiceRecorder.tsx]"]
  node_offline_parser["Offline parser"]
  node_task_review["Task review"]
  node_task_state["Task state<br/>[useTasks.ts]"]
  node_reminders["Task reminders"]
end

subgraph group_identity["Authentication"]
  node_auth_ui["Auth interface<br/>[AuthGateDesign.tsx]"]
  node_auth_service["Auth service<br/>[authService.ts]"]
end

subgraph group_diagnostics["FrontFix diagnostics"]
  node_frontfix_ui["FrontFix interface<br/>[App.jsx]"]
  node_frontfix_chat["Chat workflow<br/>[useChat.js]"]
  node_frontfix_engine["Diagnostic engine<br/>[engine.py]"]
  node_retriever["Knowledge retrieval<br/>[retriever.py]"]
  node_llm["LLM service<br/>[llm.py]"]
  node_evidence["Evidence handling<br/>[evidence.py]"]
  node_evaluator["Diagnostic evaluation<br/>[evaluator.py]"]
end

subgraph group_backend["API and persistence"]
  node_auth_api["Auth API<br/>[auth.py]"]
  node_auth_store[("Auth store<br/>[auth_store.py]")]
  node_task_api["Task API<br/>[tasks.py]"]
  node_voice_api["Voice API<br/>[voice.py]"]
  node_ai_parser["Task interpreter<br/>[ai_parser.py]"]
  node_speech_service["Speech service<br/>[speech_service.py]"]
  node_task_store[("Task store<br/>[task_store.py]")]
  node_database[("Database access<br/>[database.py]")]
  node_schemas["Task and auth schemas"]
  node_main["FastAPI application<br/>[main.py]"]
  node_frontfix_api["FrontFix API<br/>[frontfix.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -.->|"offers capture"| node_voice_capture
node_voice_capture -.->|"parses transcript"| node_offline_parser
node_user -->|"reviews task"| node_task_review
node_task_review -.->|"confirms task"| node_task_state
node_task_state -->|"requests tasks"| node_api_client
node_api_client -->|"calls task API"| node_task_api
node_task_api -->|"delegates CRUD"| node_task_store
node_task_store -->|"uses connections"| node_database
node_task_api -->|"validates tasks"| node_schemas
node_voice_api -.->|"parses speech"| node_ai_parser
node_voice_api -.->|"processes voice"| node_speech_service
node_ai_parser -->|"produces task data"| node_schemas
node_task_state -->|"provides tasks"| node_reminders
node_reminders -->|"sends reminders"| node_notifications
node_user -->|"signs in"| node_auth_ui
node_auth_ui -->|"uses auth"| node_auth_service
node_auth_service -->|"calls auth API"| node_auth_api
node_auth_api -->|"delegates auth"| node_auth_store
node_auth_api -->|"validates auth"| node_schemas
node_auth_store -->|"uses connections"| node_database
node_app -->|"opens diagnostics"| node_frontfix_ui
node_frontfix_ui -->|"runs chat"| node_frontfix_chat
node_frontfix_chat -->|"sends diagnostics"| node_frontfix_api
node_frontfix_api -->|"invokes engine"| node_frontfix_engine
node_frontfix_api -.->|"uses database"| node_database
node_frontfix_engine -->|"retrieves knowledge"| node_retriever
node_frontfix_engine -->|"requests generation"| node_llm
node_frontfix_engine -->|"uses evidence"| node_evidence
node_frontfix_engine -->|"evaluates diagnosis"| node_evaluator
node_main -->|"registers routes"| node_task_api
node_main -->|"registers routes"| node_auth_api
node_main -->|"registers routes"| node_frontfix_api
node_main -->|"imports router"| node_voice_api

click node_app "https://github.com/adnanak8/vocatask/blob/main/frontend/src/App.tsx"
click node_voice_capture "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/components/VoiceRecorder.tsx"
click node_offline_parser "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/services/offlineTaskParser.ts"
click node_task_review "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/components/TaskConfirmModal.tsx"
click node_task_state "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/hooks/useTasks.ts"
click node_reminders "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/hooks/useTaskReminders.ts"
click node_notifications "https://github.com/adnanak8/vocatask/blob/main/frontend/src/shared/services/notificationService.ts"
click node_api_client "https://github.com/adnanak8/vocatask/blob/main/frontend/src/shared/services/api.ts"
click node_auth_ui "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/auth/components/AuthGateDesign.tsx"
click node_auth_service "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/auth/services/authService.ts"
click node_auth_api "https://github.com/adnanak8/vocatask/blob/main/backend/app/api/auth.py"
click node_auth_store "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/auth_store.py"
click node_task_api "https://github.com/adnanak8/vocatask/blob/main/backend/app/api/tasks.py"
click node_voice_api "https://github.com/adnanak8/vocatask/blob/main/backend/app/api/voice.py"
click node_ai_parser "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/ai_parser.py"
click node_speech_service "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/speech_service.py"
click node_task_store "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/task_store.py"
click node_database "https://github.com/adnanak8/vocatask/blob/main/backend/app/core/database.py"
click node_schemas "https://github.com/adnanak8/vocatask/tree/main/backend/app/schemas"
click node_main "https://github.com/adnanak8/vocatask/blob/main/backend/app/main.py"
click node_frontfix_ui "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/frontfix/App.jsx"
click node_frontfix_chat "https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/frontfix/hooks/useChat.js"
click node_frontfix_api "https://github.com/adnanak8/vocatask/blob/main/backend/app/api/frontfix.py"
click node_frontfix_engine "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/engine.py"
click node_retriever "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/retriever.py"
click node_llm "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/llm.py"
click node_evidence "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/evidence.py"
click node_evaluator "https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/evaluator.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_app,node_notifications,node_api_client,node_user toneBlue
class node_voice_capture,node_offline_parser,node_task_review,node_task_state,node_reminders toneAmber
class node_auth_ui,node_auth_service toneMint
class node_frontfix_ui,node_frontfix_chat,node_frontfix_engine,node_retriever,node_llm,node_evidence,node_evaluator toneRose
class node_auth_api,node_auth_store,node_task_api,node_voice_api,node_ai_parser,node_speech_service,node_task_store,node_database,node_schemas,node_main,node_frontfix_api toneIndigo
```

## Components

### PWA client

- [App shell](https://github.com/adnanak8/vocatask/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Notifications](https://github.com/adnanak8/vocatask/blob/main/frontend/src/shared/services/notificationService.ts): `frontend/src/shared/services/notificationService.ts`
- [API client](https://github.com/adnanak8/vocatask/blob/main/frontend/src/shared/services/api.ts): `frontend/src/shared/services/api.ts`

### Task workflow

- [Voice capture](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/components/VoiceRecorder.tsx): `frontend/src/features/tasks/components/VoiceRecorder.tsx`
- [Offline parser](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/services/offlineTaskParser.ts): `frontend/src/features/tasks/services/offlineTaskParser.ts`
- [Task review](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/components/TaskConfirmModal.tsx): `frontend/src/features/tasks/components/TaskConfirmModal.tsx`
- [Task state](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/hooks/useTasks.ts): `frontend/src/features/tasks/hooks/useTasks.ts`
- [Task reminders](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/tasks/hooks/useTaskReminders.ts): `frontend/src/features/tasks/hooks/useTaskReminders.ts`

### Authentication

- [Auth interface](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/auth/components/AuthGateDesign.tsx): `frontend/src/features/auth/components/AuthGateDesign.tsx`
- [Auth service](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/auth/services/authService.ts): `frontend/src/features/auth/services/authService.ts`

### FrontFix diagnostics

- [FrontFix interface](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/frontfix/App.jsx): `frontend/src/features/frontfix/App.jsx`
- [Chat workflow](https://github.com/adnanak8/vocatask/blob/main/frontend/src/features/frontfix/hooks/useChat.js): `frontend/src/features/frontfix/hooks/useChat.js`
- [Diagnostic engine](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/engine.py): `backend/app/services/frontfix/engine.py`
- [Knowledge retrieval](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/retriever.py): `backend/app/services/frontfix/retriever.py`
- [LLM service](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/llm.py): `backend/app/services/frontfix/llm.py`
- [Evidence handling](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/evidence.py): `backend/app/services/frontfix/evidence.py`
- [Diagnostic evaluation](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/frontfix/evaluator.py): `backend/app/services/frontfix/evaluator.py`

### API and persistence

- [Auth API](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/auth.py): `backend/app/api/auth.py`
- [Auth store](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/auth_store.py): `backend/app/services/auth_store.py`
- [Task API](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/tasks.py): `backend/app/api/tasks.py`
- [Voice API](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/voice.py): `backend/app/api/voice.py`
- [Task interpreter](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/ai_parser.py): `backend/app/services/ai_parser.py`
- [Speech service](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/speech_service.py): `backend/app/services/speech_service.py`
- [Task store](https://github.com/adnanak8/vocatask/blob/main/backend/app/services/task_store.py): `backend/app/services/task_store.py`
- [Database access](https://github.com/adnanak8/vocatask/blob/main/backend/app/core/database.py): `backend/app/core/database.py`
- [Task and auth schemas](https://github.com/adnanak8/vocatask/tree/main/backend/app/schemas): `backend/app/schemas`
- [FastAPI application](https://github.com/adnanak8/vocatask/blob/main/backend/app/main.py): `backend/app/main.py`
- [FrontFix API](https://github.com/adnanak8/vocatask/blob/main/backend/app/api/frontfix.py): `backend/app/api/frontfix.py`

### Other components

- **User**

## Connections

- User → App shell: uses
- App shell → Voice capture: offers capture
- Voice capture → Offline parser: parses transcript
- User → Task review: reviews task
- Task review → Task state: confirms task
- Task state → API client: requests tasks (evidence: `frontend/src/features/tasks/hooks/useTasks.ts`)
- API client → Task API: calls task API
- Task API → Task store: delegates CRUD (evidence: `backend/app/api/tasks.py`)
- Task store → Database access: uses connections (evidence: `backend/app/services/task_store.py`)
- Task API → Task and auth schemas: validates tasks (evidence: `backend/app/api/tasks.py`)
- Voice API → Task interpreter: parses speech
- Voice API → Speech service: processes voice
- Task interpreter → Task and auth schemas: produces task data (evidence: `backend/app/services/ai_parser.py`)
- Task state → Task reminders: provides tasks (evidence: `frontend/src/features/tasks/hooks/useTaskReminders.ts`)
- Task reminders → Notifications: sends reminders (evidence: `frontend/src/features/tasks/hooks/useTaskReminders.ts`)
- User → Auth interface: signs in
- Auth interface → Auth service: uses auth (evidence: `frontend/src/features/auth/components/AuthGateDesign.tsx`)
- Auth service → Auth API: calls auth API
- Auth API → Auth store: delegates auth (evidence: `backend/app/api/auth.py`)
- Auth API → Task and auth schemas: validates auth (evidence: `backend/app/api/auth.py`)
- Auth store → Database access: uses connections (evidence: `backend/app/services/auth_store.py`)
- App shell → FrontFix interface: opens diagnostics (evidence: `frontend/src/App.tsx`)
- FrontFix interface → Chat workflow: runs chat (evidence: `frontend/src/features/frontfix/App.jsx`)
- Chat workflow → FrontFix API: sends diagnostics
- FrontFix API → Diagnostic engine: invokes engine (evidence: `backend/app/api/frontfix.py`)
- FrontFix API → Database access: uses database (evidence: `backend/app/api/frontfix.py`)
- Diagnostic engine → Knowledge retrieval: retrieves knowledge (evidence: `backend/app/services/frontfix/engine.py`)
- Diagnostic engine → LLM service: requests generation (evidence: `backend/app/services/frontfix/engine.py`)
- Diagnostic engine → Evidence handling: uses evidence (evidence: `backend/app/services/frontfix/engine.py`)
- Diagnostic engine → Diagnostic evaluation: evaluates diagnosis (evidence: `backend/app/services/frontfix/engine.py`)
- FastAPI application → Task API: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Auth API: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → FrontFix API: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → Voice API: imports router (evidence: `backend/app/main.py`)
