# niteshsa1/project_pulse architecture

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

- Interactive diagram: https://gitdiagram.com/niteshsa1/project_pulse
- Repository: https://github.com/niteshsa1/project_pulse

## Overview

ProjectPulse is an agile project and team collaboration suite. Users sign in, enter organizations and projects, then plan and track work through boards, backlogs, timelines, workload views, team management, and activity feeds. The React frontend calls an Express API that authenticates users, applies organization/project access controls, and persists domain records in MongoDB. The README documents capabilities beyond the sampled implementation; those are represented as product areas without inferring unshown call paths. Some frontend-to-API wiring is therefore shown as unverified.

Main entry points: [`frontend/src/App.jsx`](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/App.jsx) (Application router), [`backend/routes/projectRoutes.js`](https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/projectRoutes.js) (Project routes), [`backend/server.js`](https://github.com/niteshsa1/project_pulse/blob/main/backend/server.js) (Express API server), [`backend/controllers/invitationController.js`](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/invitationController.js) (Invitation workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Application router<br/>[App.jsx]"]
  node_authstate["Authentication state<br/>[AuthContext.jsx]"]
  node_orgstate["Organization state<br/>[OrgContext.jsx]"]
  node_orgpages["Organization and projects<br/>[OrgList.jsx]"]
  node_board["Kanban board<br/>[BoardPage.jsx]"]
  node_backlog["Sprint backlog<br/>[BacklogPage.jsx]"]
  node_timeline["Project timeline<br/>[TimelinePage.jsx]"]
  node_workload["Team workload<br/>[WorkloadPage.jsx]"]
  node_teamactivity["Team and activity views<br/>[TeamPage.jsx]"]
  node_http["HTTP client<br/>[axiosClient.js]"]
end

subgraph group_identity["Identity and access"]
  node_authapi["Authentication API<br/>[authApi.js]"]
  node_authroutes["Authentication routes<br/>[authRoutes.js]"]
  node_authcontroller["Authentication handlers<br/>[authController.js]"]
  node_authguard["JWT authentication<br/>[auth.js]"]
  node_invitations["Invitation workflow"]
  node_orgcontroller["Organization management"]
  node_userstore["User records<br/>[User.js]"]
  node_membershipstore["Organization memberships<br/>[Membership.js]"]
  node_invitationstore["Invitation records<br/>[Invitation.js]"]
end

subgraph group_planning["Project planning"]
  node_projectcontroller["Project management"]
  node_sprintcontroller["Sprint planning"]
  node_milestonecontroller["Milestone tracking"]
  node_projectstore["Project records<br/>[Project.js]"]
end

subgraph group_work["Work tracking"]
  node_taskcontroller["Task and issue tracking<br/>[taskController.js]"]
  node_comments["Comments and mentions"]
  node_activity["Activity feed"]
  node_history["Status audit trail<br/>[StatusHistory.js]"]
end

subgraph group_platform["API and persistence"]
  node_models["Domain models<br/>[Task.js]"]
  node_activitylog["Activity recorder<br/>[logActivity.js]"]
  node_database[("MongoDB<br/>[db.js]")]
  node_server["Express API server<br/>[server.js]"]
  node_projectroutes["Project routes<br/>[projectRoutes.js]"]
  node_org_routes["Organization routes"]
end

node_user(("Team member"))

node_user -->|"uses"| node_app
node_app -->|"provides state"| node_authstate
node_app -->|"provides state"| node_orgstate
node_app -->|"routes to"| node_orgpages
node_app -->|"routes to"| node_board
node_app -->|"routes to"| node_backlog
node_app -->|"routes to"| node_timeline
node_app -->|"routes to"| node_workload
node_app -->|"routes to"| node_teamactivity
node_authstate -->|"calls"| node_authapi
node_authapi -->|"uses"| node_http
node_http -.->|"sends API requests"| node_server
node_server -->|"mounts"| node_authroutes
node_server -->|"mounts"| node_org_routes
node_server -->|"mounts"| node_projectroutes
node_authroutes -->|"routes to"| node_authcontroller
node_authroutes -->|"uses"| node_authguard
node_authguard -->|"loads user"| node_userstore
node_org_routes -->|"routes to"| node_orgcontroller
node_org_routes -->|"routes to"| node_invitations
node_org_routes -->|"routes to"| node_projectcontroller
node_projectroutes -->|"routes to"| node_projectcontroller
node_projectroutes -->|"routes to"| node_sprintcontroller
node_projectroutes -->|"routes to"| node_milestonecontroller
node_projectroutes -->|"routes to"| node_taskcontroller
node_projectroutes -->|"routes to"| node_comments
node_projectroutes -->|"routes to"| node_activity
node_invitations -->|"reads and writes"| node_invitationstore
node_invitations -->|"creates membership"| node_membershipstore
node_invitations -->|"checks user"| node_userstore
node_invitations -->|"loads organization"| node_orgcontroller
node_projectcontroller -->|"reads and writes"| node_projectstore
node_taskcontroller -->|"writes history"| node_history
node_taskcontroller -->|"records changes"| node_activitylog
node_projectcontroller -->|"records changes"| node_activitylog
node_activitylog -->|"persists entries"| node_activity
node_server -->|"connects"| node_database
node_server -->|"registers models"| node_models

click node_app "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/App.jsx"
click node_authstate "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/context/AuthContext.jsx"
click node_orgstate "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/context/OrgContext.jsx"
click node_orgpages "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/org/OrgList.jsx"
click node_board "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/board/BoardPage.jsx"
click node_backlog "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/backlog/BacklogPage.jsx"
click node_timeline "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/timeline/TimelinePage.jsx"
click node_workload "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/workload/WorkloadPage.jsx"
click node_teamactivity "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/team/TeamPage.jsx"
click node_http "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/api/axiosClient.js"
click node_authapi "https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/api/authApi.js"
click node_authroutes "https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/authRoutes.js"
click node_authcontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/authController.js"
click node_authguard "https://github.com/niteshsa1/project_pulse/blob/main/backend/middleware/auth.js"
click node_invitations "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/invitationController.js"
click node_orgcontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/organizationController.js"
click node_projectcontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/projectController.js"
click node_sprintcontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/sprintController.js"
click node_milestonecontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/milestoneController.js"
click node_taskcontroller "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/taskController.js"
click node_comments "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/commentController.js"
click node_activity "https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/activityController.js"
click node_history "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/StatusHistory.js"
click node_models "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Task.js"
click node_activitylog "https://github.com/niteshsa1/project_pulse/blob/main/backend/utils/logActivity.js"
click node_database "https://github.com/niteshsa1/project_pulse/blob/main/backend/config/db.js"
click node_server "https://github.com/niteshsa1/project_pulse/blob/main/backend/server.js"
click node_projectroutes "https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/projectRoutes.js"
click node_org_routes "https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/organizationRoutes.js"
click node_userstore "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/User.js"
click node_membershipstore "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Membership.js"
click node_invitationstore "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Invitation.js"
click node_projectstore "https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Project.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_authstate,node_orgstate,node_orgpages,node_board,node_backlog,node_timeline,node_workload,node_teamactivity,node_http toneBlue
class node_authapi,node_authroutes,node_authcontroller,node_authguard,node_invitations,node_orgcontroller,node_userstore,node_membershipstore,node_invitationstore toneAmber
class node_projectcontroller,node_sprintcontroller,node_milestonecontroller,node_projectstore toneMint
class node_taskcontroller,node_comments,node_activity,node_history toneRose
class node_models,node_activitylog,node_database,node_server,node_projectroutes,node_org_routes,node_user toneIndigo
```

## Components

### Web application

- [Application router](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Authentication state](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Organization state](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/context/OrgContext.jsx): `frontend/src/context/OrgContext.jsx`
- [Organization and projects](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/org/OrgList.jsx): `frontend/src/pages/org/OrgList.jsx`
- [Kanban board](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/board/BoardPage.jsx): `frontend/src/pages/board/BoardPage.jsx`
- [Sprint backlog](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/backlog/BacklogPage.jsx): `frontend/src/pages/backlog/BacklogPage.jsx`
- [Project timeline](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/timeline/TimelinePage.jsx): `frontend/src/pages/timeline/TimelinePage.jsx`
- [Team workload](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/workload/WorkloadPage.jsx): `frontend/src/pages/workload/WorkloadPage.jsx`
- [Team and activity views](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/pages/team/TeamPage.jsx): `frontend/src/pages/team/TeamPage.jsx`
- [HTTP client](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/api/axiosClient.js): `frontend/src/api/axiosClient.js`

### Identity and access

- [Authentication API](https://github.com/niteshsa1/project_pulse/blob/main/frontend/src/api/authApi.js): `frontend/src/api/authApi.js`
- [Authentication routes](https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/authRoutes.js): `backend/routes/authRoutes.js`
- [Authentication handlers](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/authController.js): `backend/controllers/authController.js`
- [JWT authentication](https://github.com/niteshsa1/project_pulse/blob/main/backend/middleware/auth.js): `backend/middleware/auth.js`
- [Invitation workflow](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/invitationController.js): `backend/controllers/invitationController.js`
- [Organization management](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/organizationController.js): `backend/controllers/organizationController.js`
- [User records](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/User.js): `backend/models/User.js`
- [Organization memberships](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Membership.js): `backend/models/Membership.js`
- [Invitation records](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Invitation.js): `backend/models/Invitation.js`

### Project planning

- [Project management](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/projectController.js): `backend/controllers/projectController.js`
- [Sprint planning](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/sprintController.js): `backend/controllers/sprintController.js`
- [Milestone tracking](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/milestoneController.js): `backend/controllers/milestoneController.js`
- [Project records](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Project.js): `backend/models/Project.js`

### Work tracking

- [Task and issue tracking](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/taskController.js): `backend/controllers/taskController.js`
- [Comments and mentions](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/commentController.js): `backend/controllers/commentController.js`
- [Activity feed](https://github.com/niteshsa1/project_pulse/blob/main/backend/controllers/activityController.js): `backend/controllers/activityController.js`
- [Status audit trail](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/StatusHistory.js): `backend/models/StatusHistory.js`

### API and persistence

- [Domain models](https://github.com/niteshsa1/project_pulse/blob/main/backend/models/Task.js): `backend/models/Task.js`
- [Activity recorder](https://github.com/niteshsa1/project_pulse/blob/main/backend/utils/logActivity.js): `backend/utils/logActivity.js`
- [MongoDB](https://github.com/niteshsa1/project_pulse/blob/main/backend/config/db.js): `backend/config/db.js`
- [Express API server](https://github.com/niteshsa1/project_pulse/blob/main/backend/server.js): `backend/server.js`
- [Project routes](https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/projectRoutes.js): `backend/routes/projectRoutes.js`
- [Organization routes](https://github.com/niteshsa1/project_pulse/blob/main/backend/routes/organizationRoutes.js): `backend/routes/organizationRoutes.js`

### Other components

- **Team member**

## Connections

- Team member → Application router: uses
- Application router → Authentication state: provides state (evidence: `frontend/src/App.jsx`)
- Application router → Organization state: provides state (evidence: `frontend/src/App.jsx`)
- Application router → Organization and projects: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Kanban board: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Sprint backlog: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Project timeline: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Team workload: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Team and activity views: routes to (evidence: `frontend/src/App.jsx`)
- Authentication state → Authentication API: calls (evidence: `frontend/src/context/AuthContext.jsx`)
- Authentication API → HTTP client: uses (evidence: `frontend/src/api/authApi.js`)
- HTTP client → Express API server: sends API requests
- Express API server → Authentication routes: mounts (evidence: `backend/server.js`)
- Express API server → Organization routes: mounts (evidence: `backend/server.js`)
- Express API server → Project routes: mounts (evidence: `backend/server.js`)
- Authentication routes → Authentication handlers: routes to (evidence: `backend/routes/authRoutes.js`)
- Authentication routes → JWT authentication: uses (evidence: `backend/routes/authRoutes.js`)
- JWT authentication → User records: loads user (evidence: `backend/middleware/auth.js`)
- Organization routes → Organization management: routes to (evidence: `backend/routes/organizationRoutes.js`)
- Organization routes → Invitation workflow: routes to (evidence: `backend/routes/organizationRoutes.js`)
- Organization routes → Project management: routes to (evidence: `backend/routes/organizationRoutes.js`)
- Project routes → Project management: routes to (evidence: `backend/routes/projectRoutes.js`)
- Project routes → Sprint planning: routes to (evidence: `backend/routes/projectRoutes.js`)
- Project routes → Milestone tracking: routes to (evidence: `backend/routes/projectRoutes.js`)
- Project routes → Task and issue tracking: routes to (evidence: `backend/routes/projectRoutes.js`)
- Project routes → Comments and mentions: routes to (evidence: `backend/routes/projectRoutes.js`)
- Project routes → Activity feed: routes to (evidence: `backend/routes/projectRoutes.js`)
- Invitation workflow → Invitation records: reads and writes (evidence: `backend/controllers/invitationController.js`)
- Invitation workflow → Organization memberships: creates membership (evidence: `backend/controllers/invitationController.js`)
- Invitation workflow → User records: checks user (evidence: `backend/controllers/invitationController.js`)
- Invitation workflow → Organization management: loads organization (evidence: `backend/controllers/invitationController.js`)
- Project management → Project records: reads and writes (evidence: `backend/controllers/projectController.js`)
- Task and issue tracking → Status audit trail: writes history (evidence: `backend/controllers/taskController.js`)
- Task and issue tracking → Activity recorder: records changes (evidence: `backend/controllers/taskController.js`)
- Project management → Activity recorder: records changes (evidence: `backend/controllers/projectController.js`)
- Activity recorder → Activity feed: persists entries (evidence: `backend/utils/logActivity.js`)
- Express API server → MongoDB: connects (evidence: `backend/server.js`)
- Express API server → Domain models: registers models (evidence: `backend/server.js`)
