# harsh2code/ablespace architecture

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

- Interactive diagram: https://gitdiagram.com/harsh2code/ablespace
- Repository: https://github.com/harsh2code/ablespace

## Overview

AbleSpace is a task-and-project workspace with profiles and guest/user ownership. Its main workflow is managing tasks and projects in the client, sending requests to the API, and persisting workspace data in MongoDB. The graph includes the sampled task, project, profile, and persistence paths; AI and MCP services are shown as separate, unverified integrations because their wiring is not visible in the excerpts. Several client pages and capabilities are represented by their exact tree paths, but their internal connections were not sampled.

Main entry points: [`AbleSpace/client/src/components/TaskManager.jsx`](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/TaskManager.jsx) (Task manager), [`AbleSpace/server/app.js`](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/app.js) (Express API), [`AbleSpace/client/src/store/store.js`](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/store.js) (Redux store), [`AbleSpace/client/src/store/slices/tasksSlice.js`](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/tasksSlice.js) (Task state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace Client"]
  node_task_manager["Task manager<br/>[TaskManager.jsx]"]
  node_task_detail["Task details<br/>[TaskDetailPage.jsx]"]
  node_project_detail["Project details"]
  node_date_picker["Date picker<br/>[DatePicker.jsx]"]
  node_ai_panel["AI agent panel<br/>[AiAgentPanel.jsx]"]
  node_auth_ui["Authentication UI<br/>[Auth.jsx]"]
  node_profile_ui["Profile UI<br/>[Profile.jsx]"]
  node_client_pages["App pages"]
end

subgraph group_client_state["Client State"]
  node_store["Redux store<br/>[store.js]"]
  node_auth_state["Auth state<br/>[authSlice.js]"]
  node_task_state["Task state<br/>[tasksSlice.js]"]
  node_project_state["Project state<br/>[projectsSlice.js]"]
  node_profile_state["Profile state<br/>[profileSlice.js]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_api["API Service"]
  node_api_app["Express API<br/>[app.js]"]
  node_task_routes["Task routes<br/>[tasks.js]"]
  node_project_routes["Project routes<br/>[projects.js]"]
  node_profile_routes["Profile routes<br/>[profiles.js]"]
end

subgraph group_persistence["Persistence"]
  node_db_connect["DB connection<br/>[db.js]"]
  node_task_model[("Task records<br/>[Task.js]")]
  node_project_model[("Project records<br/>[Project.js]")]
  node_profile_model[("Profile records<br/>[Profile.js]")]
end

subgraph group_integrations["AI Integrations"]
  node_ai_service["AI service<br/>[index.js]"]
  node_mcp_service["MCP server<br/>[index.js]"]
end

node_user(("Workspace user"))
node_mongo[("MongoDB")]

node_user -.->|"uses"| node_task_manager
node_task_manager -->|"renders"| node_task_detail
node_task_manager -->|"renders"| node_project_detail
node_task_manager -->|"renders"| node_ai_panel
node_task_detail -->|"uses"| node_date_picker
node_project_detail -->|"uses"| node_date_picker
node_store -->|"registers"| node_auth_state
node_store -->|"registers"| node_task_state
node_store -->|"registers"| node_project_state
node_store -->|"registers"| node_profile_state
node_task_manager -->|"dispatches"| node_task_state
node_task_state -->|"requests"| node_api_client
node_task_state -.->|"calls task endpoints"| node_api_app
node_api_app -->|"connects"| node_db_connect
node_api_app -->|"routes tasks"| node_task_routes
node_api_app -->|"routes projects"| node_project_routes
node_api_app -->|"routes profiles"| node_profile_routes
node_task_routes -->|"reads/writes"| node_task_model
node_task_routes -->|"deletes linked tasks"| node_project_model
node_project_routes -->|"reads/writes"| node_project_model
node_project_routes -->|"deletes linked tasks"| node_task_model
node_profile_routes -->|"reads/writes"| node_profile_model
node_db_connect -->|"connects"| node_mongo
node_ai_panel -.->|"may invoke"| node_ai_service
node_ai_service -.->|"may use"| node_mcp_service

click node_task_manager "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/TaskManager.jsx"
click node_task_detail "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/TaskDetailPage.jsx"
click node_project_detail "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/ProjectDetailPage.jsx"
click node_date_picker "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/DatePicker.jsx"
click node_ai_panel "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/AiAgentPanel.jsx"
click node_auth_ui "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/Auth.jsx"
click node_profile_ui "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/Profile.jsx"
click node_client_pages "https://github.com/harsh2code/ablespace/tree/main/AbleSpace/client/src/app"
click node_store "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/store.js"
click node_auth_state "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/authSlice.js"
click node_task_state "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/tasksSlice.js"
click node_project_state "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/projectsSlice.js"
click node_profile_state "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/profileSlice.js"
click node_api_client "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/lib/api.js"
click node_api_app "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/app.js"
click node_task_routes "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/tasks.js"
click node_project_routes "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/projects.js"
click node_profile_routes "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/profiles.js"
click node_db_connect "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/db.js"
click node_task_model "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Task.js"
click node_project_model "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Project.js"
click node_profile_model "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Profile.js"
click node_ai_service "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/ai-server/index.js"
click node_mcp_service "https://github.com/harsh2code/ablespace/blob/main/AbleSpace/mcp-server/index.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_task_manager,node_task_detail,node_project_detail,node_date_picker,node_ai_panel,node_auth_ui,node_profile_ui,node_client_pages,node_user toneBlue
class node_store,node_auth_state,node_task_state,node_project_state,node_profile_state,node_api_client,node_mongo toneAmber
class node_api_app,node_task_routes,node_project_routes,node_profile_routes toneMint
class node_db_connect,node_task_model,node_project_model,node_profile_model toneRose
class node_ai_service,node_mcp_service toneIndigo
```

## Components

### Workspace Client

- [Task manager](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/TaskManager.jsx): `AbleSpace/client/src/components/TaskManager.jsx`
- [Task details](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/TaskDetailPage.jsx): `AbleSpace/client/src/components/TaskDetailPage.jsx`
- [Project details](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/ProjectDetailPage.jsx): `AbleSpace/client/src/components/ProjectDetailPage.jsx`
- [Date picker](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/DatePicker.jsx): `AbleSpace/client/src/components/DatePicker.jsx`
- [AI agent panel](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/AiAgentPanel.jsx): `AbleSpace/client/src/components/AiAgentPanel.jsx`
- [Authentication UI](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/Auth.jsx): `AbleSpace/client/src/components/Auth.jsx`
- [Profile UI](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/components/Profile.jsx): `AbleSpace/client/src/components/Profile.jsx`
- [App pages](https://github.com/harsh2code/ablespace/tree/main/AbleSpace/client/src/app): `AbleSpace/client/src/app`

### Client State

- [Redux store](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/store.js): `AbleSpace/client/src/store/store.js`
- [Auth state](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/authSlice.js): `AbleSpace/client/src/store/slices/authSlice.js`
- [Task state](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/tasksSlice.js): `AbleSpace/client/src/store/slices/tasksSlice.js`
- [Project state](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/projectsSlice.js): `AbleSpace/client/src/store/slices/projectsSlice.js`
- [Profile state](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/store/slices/profileSlice.js): `AbleSpace/client/src/store/slices/profileSlice.js`
- [API client](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/client/src/lib/api.js): `AbleSpace/client/src/lib/api.js`

### API Service

- [Express API](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/app.js): `AbleSpace/server/app.js`
- [Task routes](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/tasks.js): `AbleSpace/server/routes/tasks.js`
- [Project routes](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/projects.js): `AbleSpace/server/routes/projects.js`
- [Profile routes](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/routes/profiles.js): `AbleSpace/server/routes/profiles.js`

### Persistence

- [DB connection](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/db.js): `AbleSpace/server/db.js`
- [Task records](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Task.js): `AbleSpace/server/models/Task.js`
- [Project records](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Project.js): `AbleSpace/server/models/Project.js`
- [Profile records](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/server/models/Profile.js): `AbleSpace/server/models/Profile.js`

### AI Integrations

- [AI service](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/ai-server/index.js): `AbleSpace/ai-server/index.js`
- [MCP server](https://github.com/harsh2code/ablespace/blob/main/AbleSpace/mcp-server/index.js): `AbleSpace/mcp-server/index.js`

### Other components

- **Workspace user**
- **MongoDB**

## Connections

- Workspace user → Task manager: uses
- Task manager → Task details: renders (evidence: `AbleSpace/client/src/components/TaskManager.jsx`)
- Task manager → Project details: renders (evidence: `AbleSpace/client/src/components/TaskManager.jsx`)
- Task manager → AI agent panel: renders (evidence: `AbleSpace/client/src/components/TaskManager.jsx`)
- Task details → Date picker: uses (evidence: `AbleSpace/client/src/components/TaskDetailPage.jsx`)
- Project details → Date picker: uses (evidence: `AbleSpace/client/src/components/ProjectDetailPage.jsx`)
- Redux store → Auth state: registers (evidence: `AbleSpace/client/src/store/store.js`)
- Redux store → Task state: registers (evidence: `AbleSpace/client/src/store/store.js`)
- Redux store → Project state: registers (evidence: `AbleSpace/client/src/store/store.js`)
- Redux store → Profile state: registers (evidence: `AbleSpace/client/src/store/store.js`)
- Task manager → Task state: dispatches (evidence: `AbleSpace/client/src/components/TaskManager.jsx`)
- Task state → API client: requests (evidence: `AbleSpace/client/src/store/slices/tasksSlice.js`)
- Task state → Express API: calls task endpoints
- Express API → DB connection: connects (evidence: `AbleSpace/server/app.js`)
- Express API → Task routes: routes tasks (evidence: `AbleSpace/server/app.js`)
- Express API → Project routes: routes projects (evidence: `AbleSpace/server/app.js`)
- Express API → Profile routes: routes profiles (evidence: `AbleSpace/server/app.js`)
- Task routes → Task records: reads/writes (evidence: `AbleSpace/server/routes/tasks.js`)
- Task routes → Project records: deletes linked tasks (evidence: `AbleSpace/server/routes/tasks.js`)
- Project routes → Project records: reads/writes (evidence: `AbleSpace/server/routes/projects.js`)
- Project routes → Task records: deletes linked tasks (evidence: `AbleSpace/server/routes/projects.js`)
- Profile routes → Profile records: reads/writes (evidence: `AbleSpace/server/routes/profiles.js`)
- DB connection → MongoDB: connects (evidence: `AbleSpace/server/db.js`)
- AI agent panel → AI service: may invoke
- AI service → MCP server: may use
