# anshd14/taskflow architecture

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

- Interactive diagram: https://gitdiagram.com/anshd14/taskflow
- Repository: https://github.com/anshd14/taskflow

## Overview

TaskFlow is a team project-management platform. Users authenticate, organize work into workspaces and projects, manage tasks on a Kanban board, and can request AI task suggestions, attach files, and view analytics; task events also drive asynchronous notifications. The graph follows the documented frontend-to-gateway and service architecture, with sampled code grounding authentication, task handling, attachments, and notification persistence. Several controller, AI, analytics, and event-listener implementations were not sampled, so their internal links are based on README documentation rather than inspected source.

Main entry points: [`api-gateway/src/main/java/com/taskflow/api_gateway/ApiGatewayApplication.java`](https://github.com/anshd14/taskflow/blob/main/api-gateway/src/main/java/com/taskflow/api_gateway/ApiGatewayApplication.java) (API gateway), [`auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java`](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java) (Task management), [`frontend/src/App.jsx`](https://github.com/anshd14/taskflow/blob/main/frontend/src/App.jsx) (React app), [`auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java`](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User application"]
  node_frontend["React app<br/>[App.jsx]"]
  node_authctx["Auth state<br/>[AuthContext.jsx]"]
  node_dashboard["Kanban dashboard<br/>[Dashboard.jsx]"]
  node_api["API client<br/>[client.js]"]
end

subgraph group_core["Core platform"]
  node_gateway["API gateway"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_workspace["Workspace management"]
  node_projects["Project management"]
  node_tasks["Task management<br/>[TaskService.java]"]
  node_taskfilters["Task filtering"]
end

subgraph group_integrations["Platform integrations"]
  node_attachments["Attachment handling"]
  node_ai["AI suggestions<br/>[AIService.java]"]
  node_analytics["Task analytics<br/>[main.py]"]
  node_mysql[("MySQL")]
  node_redis[("Redis blacklist")]
  node_s3[("AWS S3")]
  node_groq["Groq LLM"]
end

subgraph group_notify["Notifications"]
  node_kafka["Kafka events"]
  node_publisher["Task event publisher"]
  node_listener["Task event listener"]
  node_notification["Notification service"]
  node_notificationdb[("Notification store")]
end

node_user(("Team member"))

node_user -->|"uses"| node_frontend
node_frontend -->|"provides auth"| node_authctx
node_frontend -->|"routes to"| node_dashboard
node_authctx -->|"calls auth"| node_api
node_dashboard -->|"calls API"| node_api
node_api -.->|"sends requests"| node_gateway
node_gateway -->|"routes REST"| node_auth
node_gateway -.->|"routes analytics"| node_analytics
node_auth -->|"reads/writes users"| node_mysql
node_auth -.->|"checks blacklist"| node_redis
node_gateway -.->|"routes REST"| node_workspace
node_gateway -.->|"routes REST"| node_projects
node_gateway -.->|"routes REST"| node_tasks
node_tasks -->|"builds filters"| node_taskfilters
node_tasks -->|"publishes task events"| node_publisher
node_tasks -->|"reads/writes tasks"| node_mysql
node_gateway -.->|"routes REST"| node_attachments
node_attachments -->|"uploads files"| node_s3
node_attachments -->|"stores metadata"| node_mysql
node_gateway -.->|"routes REST"| node_ai
node_ai -.->|"requests suggestions"| node_groq
node_analytics -.->|"queries task data"| node_mysql
node_publisher -.->|"publishes events"| node_kafka
node_kafka -.->|"dispatches events"| node_listener
node_listener -.->|"handles events"| node_notification
node_gateway -.->|"routes REST"| node_notification
node_notification -->|"reads/writes notices"| node_notificationdb

click node_frontend "https://github.com/anshd14/taskflow/blob/main/frontend/src/App.jsx"
click node_authctx "https://github.com/anshd14/taskflow/blob/main/frontend/src/context/AuthContext.jsx"
click node_dashboard "https://github.com/anshd14/taskflow/blob/main/frontend/src/pages/Dashboard.jsx"
click node_api "https://github.com/anshd14/taskflow/blob/main/frontend/src/api/client.js"
click node_gateway "https://github.com/anshd14/taskflow/blob/main/api-gateway/src/main/java/com/taskflow/api_gateway/ApiGatewayApplication.java"
click node_auth "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java"
click node_workspace "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/WorkspaceService.java"
click node_projects "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/controller/ProjectController.java"
click node_tasks "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java"
click node_taskfilters "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/specification/TaskSpecification.java"
click node_attachments "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AttachmentService.java"
click node_ai "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AIService.java"
click node_analytics "https://github.com/anshd14/taskflow/blob/main/analytics-service/main.py"
click node_publisher "https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/TaskEventPublisher.java"
click node_listener "https://github.com/anshd14/taskflow/blob/main/notification-service/src/main/java/com/taskflow/notification_service/listener/TaskEventListener.java"
click node_notification "https://github.com/anshd14/taskflow/blob/main/notification-service/src/main/java/com/taskflow/notification_service/service/NotificationService.java"

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_frontend,node_authctx,node_dashboard,node_api toneBlue
class node_gateway,node_auth,node_workspace,node_projects,node_tasks,node_taskfilters toneAmber
class node_attachments,node_ai,node_analytics,node_mysql,node_redis,node_s3,node_groq toneMint
class node_kafka,node_publisher,node_listener,node_notification,node_notificationdb toneRose
class node_user toneIndigo
```

## Components

### User application

- [React app](https://github.com/anshd14/taskflow/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Auth state](https://github.com/anshd14/taskflow/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Kanban dashboard](https://github.com/anshd14/taskflow/blob/main/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [API client](https://github.com/anshd14/taskflow/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`

### Core platform

- [API gateway](https://github.com/anshd14/taskflow/blob/main/api-gateway/src/main/java/com/taskflow/api_gateway/ApiGatewayApplication.java): `api-gateway/src/main/java/com/taskflow/api_gateway/ApiGatewayApplication.java`
- [Authentication](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java): `auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java`
- [Workspace management](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/WorkspaceService.java): `auth-service/src/main/java/com/taskflow/auth_service/service/WorkspaceService.java`
- [Project management](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/controller/ProjectController.java): `auth-service/src/main/java/com/taskflow/auth_service/controller/ProjectController.java`
- [Task management](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java): `auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java`
- [Task filtering](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/specification/TaskSpecification.java): `auth-service/src/main/java/com/taskflow/auth_service/specification/TaskSpecification.java`

### Platform integrations

- [Attachment handling](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AttachmentService.java): `auth-service/src/main/java/com/taskflow/auth_service/service/AttachmentService.java`
- [AI suggestions](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/AIService.java): `auth-service/src/main/java/com/taskflow/auth_service/service/AIService.java`
- [Task analytics](https://github.com/anshd14/taskflow/blob/main/analytics-service/main.py): `analytics-service/main.py`
- **MySQL**
- **Redis blacklist**
- **AWS S3**
- **Groq LLM**

### Notifications

- **Kafka events**
- [Task event publisher](https://github.com/anshd14/taskflow/blob/main/auth-service/src/main/java/com/taskflow/auth_service/service/TaskEventPublisher.java): `auth-service/src/main/java/com/taskflow/auth_service/service/TaskEventPublisher.java`
- [Task event listener](https://github.com/anshd14/taskflow/blob/main/notification-service/src/main/java/com/taskflow/notification_service/listener/TaskEventListener.java): `notification-service/src/main/java/com/taskflow/notification_service/listener/TaskEventListener.java`
- [Notification service](https://github.com/anshd14/taskflow/blob/main/notification-service/src/main/java/com/taskflow/notification_service/service/NotificationService.java): `notification-service/src/main/java/com/taskflow/notification_service/service/NotificationService.java`
- **Notification store**

### Other components

- **Team member**

## Connections

- Team member → React app: uses (evidence: `README.md`)
- React app → Auth state: provides auth (evidence: `frontend/src/App.jsx`)
- React app → Kanban dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Auth state → API client: calls auth (evidence: `frontend/src/context/AuthContext.jsx`)
- Kanban dashboard → API client: calls API (evidence: `frontend/src/pages/Dashboard.jsx`)
- API client → API gateway: sends requests (evidence: `README.md`)
- API gateway → Authentication: routes REST (evidence: `README.md`)
- API gateway → Task analytics: routes analytics (evidence: `README.md`)
- Authentication → MySQL: reads/writes users (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/AuthService.java`)
- Authentication → Redis blacklist: checks blacklist (evidence: `README.md`)
- API gateway → Workspace management: routes REST (evidence: `README.md`)
- API gateway → Project management: routes REST (evidence: `README.md`)
- API gateway → Task management: routes REST (evidence: `README.md`)
- Task management → Task filtering: builds filters (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java`)
- Task management → Task event publisher: publishes task events (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java`)
- Task management → MySQL: reads/writes tasks (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/TaskService.java`)
- API gateway → Attachment handling: routes REST (evidence: `README.md`)
- Attachment handling → AWS S3: uploads files (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/AttachmentService.java`)
- Attachment handling → MySQL: stores metadata (evidence: `auth-service/src/main/java/com/taskflow/auth_service/service/AttachmentService.java`)
- API gateway → AI suggestions: routes REST (evidence: `README.md`)
- AI suggestions → Groq LLM: requests suggestions (evidence: `README.md`)
- Task analytics → MySQL: queries task data (evidence: `README.md`)
- Task event publisher → Kafka events: publishes events (evidence: `README.md`)
- Kafka events → Task event listener: dispatches events (evidence: `README.md`)
- Task event listener → Notification service: handles events (evidence: `README.md`)
- API gateway → Notification service: routes REST (evidence: `README.md`)
- Notification service → Notification store: reads/writes notices (evidence: `notification-service/src/main/java/com/taskflow/notification_service/service/NotificationService.java`)
