# abhishek751982/ai-task-planner architecture

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

- Interactive diagram: https://gitdiagram.com/abhishek751982/ai-task-planner
- Repository: https://github.com/abhishek751982/ai-task-planner

## Overview

Guide Todoo is a per-account AI task planner: users configure their work rhythms, add work through chat, PDFs, or Jira, and receive a constrained daily plan with task-sync and periodic reviews. The Next.js interface calls a FastAPI API; the README documents its database and optional external integrations. Sampled source confirms selected onboarding, authentication, LLM, review, and task-backend relationships; other links below rely on README-documented system flow and capabilities.

Main entry points: [`src/guide_todoo/api.py`](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/api.py) (FastAPI routes), [`src/lib/api.ts`](https://github.com/abhishek751982/ai-task-planner/blob/main/src/lib/api.ts) (Browser API client), [`src/guide_todoo/review.py`](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/review.py) (Periodic reviews), [`src/guide_todoo/llm.py`](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/llm.py) (LLM reasoning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webui["Next.js app<br/>[layout.tsx]"]
  node_authui["Sign-in and signup<br/>[auth-form.tsx]"]
  node_dashboard["Today dashboard<br/>[dashboard.tsx]"]
  node_onboardui["Onboarding form"]
  node_settingsui["Settings panel<br/>[settings-panel.tsx]"]
  node_progressui["Progress view<br/>[progress-view.tsx]"]
  node_client["Browser API client<br/>[api.ts]"]
end

subgraph group_api["API and accounts"]
  node_apiapp["FastAPI routes<br/>[api.py]"]
  node_auth["Account sessions<br/>[auth.py]"]
  node_database[("User and task data<br/>[db.py]")]
end

subgraph group_planning["Planning intelligence"]
  node_profile["User context<br/>[user_context.py]"]
  node_ingest["PDF and chat ingest<br/>[pdf.py]"]
  node_jiraimport["Jira issue import<br/>[jira.py]"]
  node_planner["Task planning<br/>[planner.py]"]
  node_llm["LLM reasoning<br/>[llm.py]"]
  node_scheduling["Schedule rules<br/>[scheduling.py]"]
end

subgraph group_operations["Tasks and reviews"]
  node_tasks["Task backend routing<br/>[tasks_backend.py]"]
  node_sync["Todoist synchronization<br/>[sync_todoist.py]"]
  node_review["Periodic reviews<br/>[review.py]"]
  node_scheduler["Scheduled jobs<br/>[scheduler.py]"]
end

subgraph group_integrations["External services"]
  node_todoist["Todoist<br/>[todoist.py]"]
  node_reminders["Apple Reminders<br/>[reminders.py]"]
  node_jira["Jira"]
  node_calendar["Google Calendar<br/>[google_calendar.py]"]
  node_llmservice["LLM provider"]
end

node_user(("User"))

node_user -->|"uses"| node_webui
node_webui -->|"calls"| node_client
node_client -->|"sends requests"| node_apiapp
node_authui -.->|"uses"| node_client
node_dashboard -.->|"uses"| node_client
node_onboardui -->|"loads and saves"| node_client
node_settingsui -.->|"uses"| node_client
node_progressui -.->|"uses"| node_client
node_apiapp -->|"authenticates"| node_auth
node_auth -->|"reads and writes users"| node_database
node_apiapp -->|"persists account data"| node_database
node_apiapp -->|"ingests work"| node_ingest
node_apiapp -->|"syncs issues"| node_jiraimport
node_apiapp -->|"builds plans"| node_planner
node_planner -.->|"requests planning"| node_llm
node_llm -->|"loads context"| node_profile
node_llm -->|"uses workload rules"| node_scheduling
node_llm -->|"requests completions"| node_llmservice
node_apiapp -->|"pushes tasks"| node_tasks
node_tasks -->|"routes tasks"| node_todoist
node_tasks -->|"routes locally"| node_reminders
node_apiapp -->|"runs sync"| node_sync
node_sync -.->|"syncs tasks"| node_todoist
node_apiapp -->|"serves reviews"| node_review
node_review -->|"reads and saves reports"| node_database
node_review -->|"runs full sync"| node_sync
node_review -->|"scores and analyzes"| node_llm
node_review -->|"sends notifications"| node_tasks
node_scheduler -.->|"runs scheduled reviews"| node_review
node_apiapp -->|"connects calendar"| node_calendar
node_apiapp -->|"imports issues"| node_jira
node_todoist -->|"completion webhook"| node_apiapp

click node_webui "https://github.com/abhishek751982/ai-task-planner/blob/main/src/app/layout.tsx"
click node_authui "https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/auth-form.tsx"
click node_dashboard "https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/dashboard.tsx"
click node_onboardui "https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/onboarding-form.tsx"
click node_settingsui "https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/settings-panel.tsx"
click node_progressui "https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/progress-view.tsx"
click node_client "https://github.com/abhishek751982/ai-task-planner/blob/main/src/lib/api.ts"
click node_apiapp "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/api.py"
click node_auth "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/auth.py"
click node_database "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/db.py"
click node_profile "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/user_context.py"
click node_ingest "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/ingest/pdf.py"
click node_jiraimport "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/jira.py"
click node_planner "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/planner.py"
click node_llm "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/llm.py"
click node_scheduling "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/scheduling.py"
click node_tasks "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/tasks_backend.py"
click node_sync "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/sync_todoist.py"
click node_review "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/review.py"
click node_scheduler "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/scheduler.py"
click node_todoist "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/todoist.py"
click node_reminders "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/reminders.py"
click node_calendar "https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/google_calendar.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_webui,node_authui,node_dashboard,node_onboardui,node_settingsui,node_progressui,node_client,node_user toneBlue
class node_apiapp,node_auth,node_database toneAmber
class node_profile,node_ingest,node_jiraimport,node_planner,node_llm,node_scheduling toneMint
class node_tasks,node_sync,node_review,node_scheduler toneRose
class node_todoist,node_reminders,node_jira,node_calendar,node_llmservice toneIndigo
```

## Components

### Web experience

- [Next.js app](https://github.com/abhishek751982/ai-task-planner/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Sign-in and signup](https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/auth-form.tsx): `src/components/auth-form.tsx`
- [Today dashboard](https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/dashboard.tsx): `src/components/dashboard.tsx`
- [Onboarding form](https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/onboarding-form.tsx): `src/components/onboarding-form.tsx`
- [Settings panel](https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/settings-panel.tsx): `src/components/settings-panel.tsx`
- [Progress view](https://github.com/abhishek751982/ai-task-planner/blob/main/src/components/progress-view.tsx): `src/components/progress-view.tsx`
- [Browser API client](https://github.com/abhishek751982/ai-task-planner/blob/main/src/lib/api.ts): `src/lib/api.ts`

### API and accounts

- [FastAPI routes](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/api.py): `src/guide_todoo/api.py`
- [Account sessions](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/auth.py): `src/guide_todoo/auth.py`
- [User and task data](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/db.py): `src/guide_todoo/db.py`

### Planning intelligence

- [User context](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/user_context.py): `src/guide_todoo/user_context.py`
- [PDF and chat ingest](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/ingest/pdf.py): `src/guide_todoo/ingest/pdf.py`
- [Jira issue import](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/jira.py): `src/guide_todoo/integrations/jira.py`
- [Task planning](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/planner.py): `src/guide_todoo/planner.py`
- [LLM reasoning](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/llm.py): `src/guide_todoo/llm.py`
- [Schedule rules](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/scheduling.py): `src/guide_todoo/scheduling.py`

### Tasks and reviews

- [Task backend routing](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/tasks_backend.py): `src/guide_todoo/integrations/tasks_backend.py`
- [Todoist synchronization](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/sync_todoist.py): `src/guide_todoo/sync_todoist.py`
- [Periodic reviews](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/review.py): `src/guide_todoo/review.py`
- [Scheduled jobs](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/scheduler.py): `src/guide_todoo/scheduler.py`

### External services

- [Todoist](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/todoist.py): `src/guide_todoo/integrations/todoist.py`
- [Apple Reminders](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/reminders.py): `src/guide_todoo/integrations/reminders.py`
- **Jira**
- [Google Calendar](https://github.com/abhishek751982/ai-task-planner/blob/main/src/guide_todoo/integrations/google_calendar.py): `src/guide_todoo/integrations/google_calendar.py`
- **LLM provider**

### Other components

- **User**

## Connections

- User → Next.js app: uses (evidence: `README.md`)
- Next.js app → Browser API client: calls
- Browser API client → FastAPI routes: sends requests (evidence: `README.md`)
- Sign-in and signup → Browser API client: uses
- Today dashboard → Browser API client: uses
- Onboarding form → Browser API client: loads and saves (evidence: `src/components/onboarding-form.tsx`)
- Settings panel → Browser API client: uses
- Progress view → Browser API client: uses
- FastAPI routes → Account sessions: authenticates (evidence: `README.md`)
- Account sessions → User and task data: reads and writes users (evidence: `src/guide_todoo/auth.py`)
- FastAPI routes → User and task data: persists account data (evidence: `README.md`)
- FastAPI routes → PDF and chat ingest: ingests work (evidence: `README.md`)
- FastAPI routes → Jira issue import: syncs issues (evidence: `README.md`)
- FastAPI routes → Task planning: builds plans (evidence: `README.md`)
- Task planning → LLM reasoning: requests planning
- LLM reasoning → User context: loads context (evidence: `src/guide_todoo/llm.py`)
- LLM reasoning → Schedule rules: uses workload rules (evidence: `src/guide_todoo/llm.py`)
- LLM reasoning → LLM provider: requests completions (evidence: `README.md`)
- FastAPI routes → Task backend routing: pushes tasks (evidence: `README.md`)
- Task backend routing → Todoist: routes tasks (evidence: `src/guide_todoo/integrations/tasks_backend.py`)
- Task backend routing → Apple Reminders: routes locally (evidence: `src/guide_todoo/integrations/tasks_backend.py`)
- FastAPI routes → Todoist synchronization: runs sync (evidence: `README.md`)
- Todoist synchronization → Todoist: syncs tasks
- FastAPI routes → Periodic reviews: serves reviews (evidence: `README.md`)
- Periodic reviews → User and task data: reads and saves reports (evidence: `src/guide_todoo/review.py`)
- Periodic reviews → Todoist synchronization: runs full sync (evidence: `src/guide_todoo/review.py`)
- Periodic reviews → LLM reasoning: scores and analyzes (evidence: `src/guide_todoo/review.py`)
- Periodic reviews → Task backend routing: sends notifications (evidence: `src/guide_todoo/review.py`)
- Scheduled jobs → Periodic reviews: runs scheduled reviews
- FastAPI routes → Google Calendar: connects calendar (evidence: `README.md`)
- FastAPI routes → Jira: imports issues (evidence: `README.md`)
- Todoist → FastAPI routes: completion webhook (evidence: `README.md`)
