# abhay13-11/deadlineai architecture

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

- Interactive diagram: https://gitdiagram.com/abhay13-11/deadlineai
- Repository: https://github.com/abhay13-11/deadlineai

## Overview

DeadlineAI is a full-stack deadline and task-management platform. Users authenticate, create or extract tasks, then organize them in dashboard, list, calendar, and Kanban views; analytics and AI planning/chat provide insight, while scheduled reminders notify users. The graph follows documented capabilities and sampled calls. Some UI and service internals were not sampled, so those subsystem relationships are shown only where README documentation or source evidence supports them.

Main entry points: [`client/src/App.tsx`](https://github.com/abhay13-11/deadlineai/blob/main/client/src/App.tsx) (Application routes), [`server/src/app.ts`](https://github.com/abhay13-11/deadlineai/blob/main/server/src/app.ts) (HTTP API), [`server/src/routes/task.routes.ts`](https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/task.routes.ts) (Task routes), [`server/src/services/task.service.ts`](https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/task.service.ts) (Task operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Product interface"]
  node_app["Application routes<br/>[App.tsx]"]
  node_taskviews["Task views"]
  node_calendar["Calendar and Kanban"]
  node_dashboard["Dashboard<br/>[DashboardPage.tsx]"]
  node_aiui["AI assistant UI"]
  node_analyticsui["Analytics UI<br/>[AnalyticsPage.tsx]"]
  node_taskhook["Task data hook<br/>[useTasks.ts]"]
  node_taskclient["Task API client<br/>[taskService.ts]"]
  node_authclient["Auth API client<br/>[authService.ts]"]
end

subgraph group_api["API and identity"]
  node_api["HTTP API<br/>[app.ts]"]
  node_authroutes["Authentication routes<br/>[auth.routes.ts]"]
  node_authcontroller["Authentication controller<br/>[auth.controller.ts]"]
  node_authmw["JWT protection<br/>[auth.middleware.ts]"]
  node_userdb[("User records<br/>[User.model.ts]")]
end

subgraph group_tasks["Task domain"]
  node_taskroutes["Task routes<br/>[task.routes.ts]"]
  node_taskcontroller["Task controller<br/>[task.controller.ts]"]
  node_taskservice["Task operations<br/>[task.service.ts]"]
  node_taskdb[("Task records<br/>[Task.model.ts]")]
  node_activitydb[("Activity history")]
end

subgraph group_intelligence["AI and insights"]
  node_airoutes["AI routes<br/>[ai.routes.ts]"]
  node_aicontroller["AI task controller<br/>[ai.controller.ts]"]
  node_aiprocessing["AI chat, OCR, parsing, planning"]
  node_gemini["Gemini provider"]
  node_analytics["Analytics service"]
  node_analyticsroutes["Analytics routes"]
end

subgraph group_reminders["Notifications"]
  node_scheduler["Reminder scheduler"]
  node_jobs["Scheduled jobs"]
  node_push["Push delivery"]
end

node_user(("Student or professional"))
node_pushservices{{"Push platforms"}}
node_mongo[("MongoDB")]

node_user -->|"opens"| node_app
node_app -->|"routes"| node_taskviews
node_app -->|"routes"| node_calendar
node_app -->|"routes"| node_dashboard
node_app -->|"routes"| node_aiui
node_app -->|"routes"| node_analyticsui
node_taskviews -->|"loads tasks"| node_taskhook
node_taskhook -->|"requests"| node_taskclient
node_taskclient -->|"calls API"| node_taskroutes
node_aiui -.->|"calls API"| node_airoutes
node_analyticsui -.->|"calls API"| node_analyticsroutes
node_app -->|"serves requests"| node_api
node_api -->|"mounts"| node_authroutes
node_api -->|"mounts"| node_taskroutes
node_api -->|"mounts"| node_airoutes
node_api -->|"mounts"| node_analyticsroutes
node_authroutes -->|"dispatches"| node_authcontroller
node_authcontroller -->|"reads and updates"| node_userdb
node_authclient -->|"calls API"| node_authroutes
node_taskroutes -->|"protects"| node_authmw
node_airoutes -->|"protects"| node_authmw
node_taskroutes -->|"dispatches"| node_taskcontroller
node_taskcontroller -->|"calls"| node_taskservice
node_taskservice -->|"reads and writes"| node_taskdb
node_taskservice -->|"records changes"| node_activitydb
node_taskdb -.->|"persists in"| node_mongo
node_airoutes -->|"dispatches"| node_aicontroller
node_aicontroller -->|"calls"| node_aiprocessing
node_aicontroller -->|"creates confirmed task"| node_taskservice
node_aiprocessing -->|"uses provider"| node_gemini
node_analyticsroutes -.->|"dispatches"| node_analytics
node_scheduler -.->|"checks deadlines"| node_taskdb
node_jobs -.->|"runs periodically"| node_scheduler
node_jobs -.->|"triggers delivery"| node_push
node_push -.->|"sends notifications"| node_pushservices

click node_app "https://github.com/abhay13-11/deadlineai/blob/main/client/src/App.tsx"
click node_taskviews "https://github.com/abhay13-11/deadlineai/tree/main/client/src/pages/tasks"
click node_calendar "https://github.com/abhay13-11/deadlineai/tree/main/client/src/pages"
click node_dashboard "https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/dashboard/DashboardPage.tsx"
click node_aiui "https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/ai/AIAssistantPage.tsx"
click node_analyticsui "https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/analytics/AnalyticsPage.tsx"
click node_taskhook "https://github.com/abhay13-11/deadlineai/blob/main/client/src/hooks/useTasks.ts"
click node_taskclient "https://github.com/abhay13-11/deadlineai/blob/main/client/src/services/taskService.ts"
click node_authclient "https://github.com/abhay13-11/deadlineai/blob/main/client/src/services/authService.ts"
click node_api "https://github.com/abhay13-11/deadlineai/blob/main/server/src/app.ts"
click node_authroutes "https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/auth.routes.ts"
click node_authcontroller "https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/auth.controller.ts"
click node_authmw "https://github.com/abhay13-11/deadlineai/blob/main/server/src/middleware/auth.middleware.ts"
click node_userdb "https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/User.model.ts"
click node_taskroutes "https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/task.routes.ts"
click node_taskcontroller "https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/task.controller.ts"
click node_taskservice "https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/task.service.ts"
click node_taskdb "https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/Task.model.ts"
click node_activitydb "https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/ActivityLog.model.ts"
click node_airoutes "https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/ai.routes.ts"
click node_aicontroller "https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/ai.controller.ts"
click node_aiprocessing "https://github.com/abhay13-11/deadlineai/tree/main/server/src/services/ai"
click node_gemini "https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/ai/geminiClient.service.ts"
click node_analytics "https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/analytics.service.ts"
click node_analyticsroutes "https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/analytics.routes.ts"
click node_scheduler "https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/notification/scheduler.service.ts"
click node_jobs "https://github.com/abhay13-11/deadlineai/tree/main/server/src/jobs"
click node_push "https://github.com/abhay13-11/deadlineai/tree/main/server/src/services/notification"

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_taskviews,node_calendar,node_dashboard,node_aiui,node_analyticsui,node_taskhook,node_taskclient,node_authclient toneBlue
class node_api,node_authroutes,node_authcontroller,node_authmw,node_userdb,node_mongo toneAmber
class node_taskroutes,node_taskcontroller,node_taskservice,node_taskdb,node_activitydb toneMint
class node_airoutes,node_aicontroller,node_aiprocessing,node_gemini,node_analytics,node_analyticsroutes toneRose
class node_scheduler,node_jobs,node_push,node_user,node_pushservices toneIndigo
```

## Components

### Product interface

- [Application routes](https://github.com/abhay13-11/deadlineai/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Task views](https://github.com/abhay13-11/deadlineai/tree/main/client/src/pages/tasks): `client/src/pages/tasks`
- [Calendar and Kanban](https://github.com/abhay13-11/deadlineai/tree/main/client/src/pages): `client/src/pages`
- [Dashboard](https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/dashboard/DashboardPage.tsx): `client/src/pages/dashboard/DashboardPage.tsx`
- [AI assistant UI](https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/ai/AIAssistantPage.tsx): `client/src/pages/ai/AIAssistantPage.tsx`
- [Analytics UI](https://github.com/abhay13-11/deadlineai/blob/main/client/src/pages/analytics/AnalyticsPage.tsx): `client/src/pages/analytics/AnalyticsPage.tsx`
- [Task data hook](https://github.com/abhay13-11/deadlineai/blob/main/client/src/hooks/useTasks.ts): `client/src/hooks/useTasks.ts`
- [Task API client](https://github.com/abhay13-11/deadlineai/blob/main/client/src/services/taskService.ts): `client/src/services/taskService.ts`
- [Auth API client](https://github.com/abhay13-11/deadlineai/blob/main/client/src/services/authService.ts): `client/src/services/authService.ts`

### API and identity

- [HTTP API](https://github.com/abhay13-11/deadlineai/blob/main/server/src/app.ts): `server/src/app.ts`
- [Authentication routes](https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/auth.routes.ts): `server/src/routes/auth.routes.ts`
- [Authentication controller](https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/auth.controller.ts): `server/src/controllers/auth.controller.ts`
- [JWT protection](https://github.com/abhay13-11/deadlineai/blob/main/server/src/middleware/auth.middleware.ts): `server/src/middleware/auth.middleware.ts`
- [User records](https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/User.model.ts): `server/src/models/User.model.ts`

### Task domain

- [Task routes](https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/task.routes.ts): `server/src/routes/task.routes.ts`
- [Task controller](https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/task.controller.ts): `server/src/controllers/task.controller.ts`
- [Task operations](https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/task.service.ts): `server/src/services/task.service.ts`
- [Task records](https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/Task.model.ts): `server/src/models/Task.model.ts`
- [Activity history](https://github.com/abhay13-11/deadlineai/blob/main/server/src/models/ActivityLog.model.ts): `server/src/models/ActivityLog.model.ts`

### AI and insights

- [AI routes](https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/ai.routes.ts): `server/src/routes/ai.routes.ts`
- [AI task controller](https://github.com/abhay13-11/deadlineai/blob/main/server/src/controllers/ai.controller.ts): `server/src/controllers/ai.controller.ts`
- [AI chat, OCR, parsing, planning](https://github.com/abhay13-11/deadlineai/tree/main/server/src/services/ai): `server/src/services/ai`
- [Gemini provider](https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/ai/geminiClient.service.ts): `server/src/services/ai/geminiClient.service.ts`
- [Analytics service](https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/analytics.service.ts): `server/src/services/analytics.service.ts`
- [Analytics routes](https://github.com/abhay13-11/deadlineai/blob/main/server/src/routes/analytics.routes.ts): `server/src/routes/analytics.routes.ts`

### Notifications

- [Reminder scheduler](https://github.com/abhay13-11/deadlineai/blob/main/server/src/services/notification/scheduler.service.ts): `server/src/services/notification/scheduler.service.ts`
- [Scheduled jobs](https://github.com/abhay13-11/deadlineai/tree/main/server/src/jobs): `server/src/jobs`
- [Push delivery](https://github.com/abhay13-11/deadlineai/tree/main/server/src/services/notification): `server/src/services/notification`

### Other components

- **Student or professional**
- **Push platforms**
- **MongoDB**

## Connections

- Student or professional → Application routes: opens (evidence: `client/src/App.tsx`)
- Application routes → Task views: routes (evidence: `client/src/App.tsx`)
- Application routes → Calendar and Kanban: routes (evidence: `client/src/App.tsx`)
- Application routes → Dashboard: routes (evidence: `client/src/App.tsx`)
- Application routes → AI assistant UI: routes (evidence: `client/src/App.tsx`)
- Application routes → Analytics UI: routes (evidence: `client/src/App.tsx`)
- Task views → Task data hook: loads tasks (evidence: `client/src/pages/tasks/TasksPage.tsx`)
- Task data hook → Task API client: requests (evidence: `client/src/hooks/useTasks.ts`)
- Task API client → Task routes: calls API (evidence: `client/src/services/taskService.ts`)
- AI assistant UI → AI routes: calls API
- Analytics UI → Analytics routes: calls API
- Application routes → HTTP API: serves requests (evidence: `server/src/app.ts`)
- HTTP API → Authentication routes: mounts (evidence: `server/src/app.ts`)
- HTTP API → Task routes: mounts (evidence: `server/src/app.ts`)
- HTTP API → AI routes: mounts (evidence: `server/src/app.ts`)
- HTTP API → Analytics routes: mounts (evidence: `server/src/app.ts`)
- Authentication routes → Authentication controller: dispatches (evidence: `server/src/routes/auth.routes.ts`)
- Authentication controller → User records: reads and updates (evidence: `server/src/controllers/auth.controller.ts`)
- Auth API client → Authentication routes: calls API (evidence: `client/src/services/authService.ts`)
- Task routes → JWT protection: protects (evidence: `server/src/routes/task.routes.ts`)
- AI routes → JWT protection: protects (evidence: `server/src/routes/ai.routes.ts`)
- Task routes → Task controller: dispatches (evidence: `server/src/routes/task.routes.ts`)
- Task controller → Task operations: calls (evidence: `server/src/controllers/task.controller.ts`)
- Task operations → Task records: reads and writes (evidence: `server/src/services/task.service.ts`)
- Task operations → Activity history: records changes (evidence: `server/src/services/task.service.ts`)
- Task records → MongoDB: persists in
- AI routes → AI task controller: dispatches (evidence: `server/src/routes/ai.routes.ts`)
- AI task controller → AI chat, OCR, parsing, planning: calls (evidence: `server/src/controllers/ai.controller.ts`)
- AI task controller → Task operations: creates confirmed task (evidence: `server/src/controllers/ai.controller.ts`)
- AI chat, OCR, parsing, planning → Gemini provider: uses provider (evidence: `server/src/services/ai/taskParser.service.ts`)
- Analytics routes → Analytics service: dispatches
- Reminder scheduler → Task records: checks deadlines
- Scheduled jobs → Reminder scheduler: runs periodically
- Scheduled jobs → Push delivery: triggers delivery
- Push delivery → Push platforms: sends notifications
