# anoopcodehack/devboard architecture

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

- Interactive diagram: https://gitdiagram.com/anoopcodehack/devboard
- Repository: https://github.com/anoopcodehack/devboard

## Overview

DevBoard is a developer-focused Kanban application: users sign in, manage tasks on a board, attach code and GitHub issues, and track focus sessions. The frontend centralizes board state and calls the Express API; task, sprint, authentication, GitHub, and AI routes provide distinct backend capabilities backed by MongoDB models. README and source-index evidence establish several features whose implementation details were not excerpted, so those relationships are shown only where documented or registered.

Main entry points: [`devboard/server/index.js`](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/index.js) (Express API), [`devboard/client/src/pages/Dashboard.jsx`](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/pages/Dashboard.jsx) (Dashboard), [`devboard/client/src/context/BoardContext.jsx`](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/context/BoardContext.jsx) (Board state), [`devboard/server/routes/github.js`](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/github.js) (GitHub sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["App routing<br/>[App.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_boardstate["Board state<br/>[BoardContext.jsx]"]
  node_kanban["Kanban board<br/>[KanbanBoard.jsx]"]
  node_taskcard["Task cards<br/>[TaskCard.jsx]"]
  node_taskmodal["Task editor<br/>[TaskModal.jsx]"]
  node_pomodoro["Pomodoro timer<br/>[PomodoroTimer.jsx]"]
  node_pomodorohook["Timer logic<br/>[usePomodoro.js]"]
  node_heatmap["Activity heatmap<br/>[Heatmap.jsx]"]
end

subgraph group_api["API services"]
  node_api["Express API<br/>[index.js]"]
  node_authroute["Authentication routes<br/>[auth.js]"]
  node_taskroute["Task routes<br/>[tasks.js]"]
  node_sprintroute["Sprint routes<br/>[sprints.js]"]
  node_githubroute["GitHub sync<br/>[github.js]"]
  node_airoute["AI assistance<br/>[ai.js]"]
  node_authmw["JWT protection<br/>[auth.js]"]
end

subgraph group_data["Persistence"]
  node_taskmodel["Task model<br/>[Task.js]"]
  node_usermodel["User model<br/>[User.js]"]
  node_sprintmodel["Sprint model<br/>[Sprint.js]"]
  node_mongodb[("MongoDB")]
end

node_user(("User"))
node_github["GitHub"]
node_ai["AI service"]

node_user -->|"uses"| node_app
node_app -->|"routes"| node_login
node_app -->|"routes"| node_dashboard
node_login -->|"authenticates via"| node_boardstate
node_dashboard -->|"reads and updates"| node_boardstate
node_dashboard -->|"renders"| node_kanban
node_dashboard -->|"renders"| node_pomodoro
node_dashboard -->|"renders"| node_heatmap
node_kanban -->|"renders"| node_taskcard
node_kanban -->|"opens"| node_taskmodal
node_taskcard -->|"uses task actions"| node_boardstate
node_taskmodal -->|"saves task changes"| node_boardstate
node_pomodoro -->|"uses timer logic"| node_pomodorohook
node_boardstate -->|"requests tasks and sprints"| node_api
node_api -->|"mounts routes"| node_authroute
node_api -->|"mounts routes"| node_taskroute
node_api -->|"mounts routes"| node_sprintroute
node_api -->|"mounts routes"| node_githubroute
node_api -->|"mounts routes"| node_airoute
node_taskroute -->|"protects endpoints"| node_authmw
node_githubroute -->|"protects endpoints"| node_authmw
node_sprintroute -->|"protects endpoints"| node_authmw
node_authmw -->|"loads user"| node_usermodel
node_authroute -->|"uses user records"| node_usermodel
node_taskroute -->|"reads and writes tasks"| node_taskmodel
node_githubroute -->|"creates imported tasks"| node_taskmodel
node_sprintroute -->|"reads and writes sprints"| node_sprintmodel
node_github -->|"provides issues"| node_githubroute
node_ai -.->|"optional AI integration"| node_airoute
node_taskmodel -->|"persists tasks"| node_mongodb
node_usermodel -->|"persists accounts"| node_mongodb
node_sprintmodel -->|"persists sprints"| node_mongodb

click node_app "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/App.jsx"
click node_login "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/pages/Login.jsx"
click node_dashboard "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/pages/Dashboard.jsx"
click node_boardstate "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/context/BoardContext.jsx"
click node_kanban "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Board/KanbanBoard.jsx"
click node_taskcard "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Board/TaskCard.jsx"
click node_taskmodal "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Task/TaskModal.jsx"
click node_pomodoro "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Pomodoro/PomodoroTimer.jsx"
click node_pomodorohook "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/hooks/usePomodoro.js"
click node_heatmap "https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Heatmap/Heatmap.jsx"
click node_api "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/index.js"
click node_authroute "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/auth.js"
click node_taskroute "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/tasks.js"
click node_sprintroute "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/sprints.js"
click node_githubroute "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/github.js"
click node_airoute "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/ai.js"
click node_authmw "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/middleware/auth.js"
click node_taskmodel "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/Task.js"
click node_usermodel "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/User.js"
click node_sprintmodel "https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/Sprint.js"

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_login,node_dashboard,node_boardstate,node_kanban,node_taskcard,node_taskmodal,node_pomodoro,node_pomodorohook,node_heatmap,node_user toneBlue
class node_api,node_authroute,node_taskroute,node_sprintroute,node_githubroute,node_airoute,node_authmw toneAmber
class node_taskmodel,node_usermodel,node_sprintmodel,node_mongodb toneMint
class node_github,node_ai toneIndigo
```

## Components

### Web application

- [App routing](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/App.jsx): `devboard/client/src/App.jsx`
- [Login](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/pages/Login.jsx): `devboard/client/src/pages/Login.jsx`
- [Dashboard](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/pages/Dashboard.jsx): `devboard/client/src/pages/Dashboard.jsx`
- [Board state](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/context/BoardContext.jsx): `devboard/client/src/context/BoardContext.jsx`
- [Kanban board](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Board/KanbanBoard.jsx): `devboard/client/src/components/Board/KanbanBoard.jsx`
- [Task cards](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Board/TaskCard.jsx): `devboard/client/src/components/Board/TaskCard.jsx`
- [Task editor](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Task/TaskModal.jsx): `devboard/client/src/components/Task/TaskModal.jsx`
- [Pomodoro timer](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Pomodoro/PomodoroTimer.jsx): `devboard/client/src/components/Pomodoro/PomodoroTimer.jsx`
- [Timer logic](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/hooks/usePomodoro.js): `devboard/client/src/hooks/usePomodoro.js`
- [Activity heatmap](https://github.com/anoopcodehack/devboard/blob/main/devboard/client/src/components/Heatmap/Heatmap.jsx): `devboard/client/src/components/Heatmap/Heatmap.jsx`

### API services

- [Express API](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/index.js): `devboard/server/index.js`
- [Authentication routes](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/auth.js): `devboard/server/routes/auth.js`
- [Task routes](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/tasks.js): `devboard/server/routes/tasks.js`
- [Sprint routes](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/sprints.js): `devboard/server/routes/sprints.js`
- [GitHub sync](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/github.js): `devboard/server/routes/github.js`
- [AI assistance](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/routes/ai.js): `devboard/server/routes/ai.js`
- [JWT protection](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/middleware/auth.js): `devboard/server/middleware/auth.js`

### Persistence

- [Task model](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/Task.js): `devboard/server/models/Task.js`
- [User model](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/User.js): `devboard/server/models/User.js`
- [Sprint model](https://github.com/anoopcodehack/devboard/blob/main/devboard/server/models/Sprint.js): `devboard/server/models/Sprint.js`
- **MongoDB**

### Other components

- **User**
- **GitHub**
- **AI service**

## Connections

- User → App routing: uses
- App routing → Login: routes (evidence: `devboard/client/src/App.jsx`)
- App routing → Dashboard: routes (evidence: `devboard/client/src/App.jsx`)
- Login → Board state: authenticates via (evidence: `devboard/client/src/pages/Login.jsx`)
- Dashboard → Board state: reads and updates (evidence: `devboard/client/src/pages/Dashboard.jsx`)
- Dashboard → Kanban board: renders (evidence: `devboard/client/src/pages/Dashboard.jsx`)
- Dashboard → Pomodoro timer: renders (evidence: `devboard/client/src/pages/Dashboard.jsx`)
- Dashboard → Activity heatmap: renders (evidence: `devboard/client/src/pages/Dashboard.jsx`)
- Kanban board → Task cards: renders (evidence: `devboard/client/src/components/Board/KanbanBoard.jsx`)
- Kanban board → Task editor: opens (evidence: `devboard/client/src/components/Board/KanbanBoard.jsx`)
- Task cards → Board state: uses task actions (evidence: `devboard/client/src/components/Board/TaskCard.jsx`)
- Task editor → Board state: saves task changes (evidence: `devboard/client/src/components/Task/TaskModal.jsx`)
- Pomodoro timer → Timer logic: uses timer logic (evidence: `devboard/client/src/components/Pomodoro/PomodoroTimer.jsx`)
- Board state → Express API: requests tasks and sprints (evidence: `devboard/client/src/context/BoardContext.jsx`)
- Express API → Authentication routes: mounts routes (evidence: `devboard/server/index.js`)
- Express API → Task routes: mounts routes (evidence: `devboard/server/index.js`)
- Express API → Sprint routes: mounts routes (evidence: `devboard/server/index.js`)
- Express API → GitHub sync: mounts routes (evidence: `devboard/server/index.js`)
- Express API → AI assistance: mounts routes (evidence: `devboard/server/index.js`)
- Task routes → JWT protection: protects endpoints (evidence: `devboard/server/routes/tasks.js`)
- GitHub sync → JWT protection: protects endpoints (evidence: `devboard/server/routes/github.js`)
- Sprint routes → JWT protection: protects endpoints (evidence: `devboard/server/routes/sprints.js`)
- JWT protection → User model: loads user (evidence: `devboard/server/middleware/auth.js`)
- Authentication routes → User model: uses user records (evidence: `devboard/server/routes/auth.js`)
- Task routes → Task model: reads and writes tasks (evidence: `devboard/server/routes/tasks.js`)
- GitHub sync → Task model: creates imported tasks (evidence: `devboard/server/routes/github.js`)
- Sprint routes → Sprint model: reads and writes sprints (evidence: `devboard/server/routes/sprints.js`)
- GitHub → GitHub sync: provides issues
- AI service → AI assistance: optional AI integration
- Task model → MongoDB: persists tasks
- User model → MongoDB: persists accounts
- Sprint model → MongoDB: persists sprints
