# brahmashnudev-chatterjee/zeeman architecture

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

- Interactive diagram: https://gitdiagram.com/brahmashnudev-chatterjee/zeeman
- Repository: https://github.com/brahmashnudev-chatterjee/zeeman

## Overview

ZeeMan is an admin-controlled project and task-management application. Admins allocate members, create projects and tasks, and monitor progress; employees complete assigned work and update task status. Authentication and onboarding lead into project work, with collaboration and milestones extending task and project workflows. The browser frontends call an Express API, whose controllers enforce access rules and persist domain data. README capabilities are represented alongside sampled modules; some frontend-to-API links are documented at product level rather than verified from frontend call sites.

Main entry points: [`backend/src/routes/index.js`](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/routes/index.js) (API routes), [`backend/src/app.js`](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/app.js) (Express application), [`backend/src/config/database.js`](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/config/database.js) (SQLite or PostgreSQL), [`backend/src/utils/http.js`](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/utils/http.js) (Activity and notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Browser experience"]
  node_admin_ui["Admin workspace<br/>[admin-console.js]"]
  node_admin_milestones_ui["Admin milestones"]
  node_admin_collab_ui["Admin collaboration"]
  node_user_ui["Employee workspace<br/>[app.js]"]
  node_user_collab_ui["Employee collaboration"]
  node_user_milestones_ui["Employee milestones<br/>[user-milestones.js]"]
  node_auth_ui["Sign-in and onboarding<br/>[auth.js]"]
  node_workflow_ui["Task views<br/>[workflow.js]"]
  node_notifications_ui["Notifications"]
end

subgraph group_api["API and access"]
  node_app["Express application<br/>[app.js]"]
  node_routes["API routes<br/>[index.js]"]
  node_auth_middleware["Session and roles<br/>[auth.js]"]
end

subgraph group_work["Project workflows"]
  node_projects["Project allocation"]
  node_tasks["Task management<br/>[task.controller.js]"]
  node_milestones["Milestones and progress"]
  node_admin_ops["Admin and analytics"]
end

subgraph group_support["Collaboration and accounts"]
  node_auth_controller["Authentication<br/>[auth.controller.js]"]
  node_onboarding["Allocation onboarding"]
  node_collaboration["Task collaboration"]
  node_public["Public contact"]
end

subgraph group_state["Persistence and services"]
  node_database[("SQLite or PostgreSQL<br/>[database.js]")]
  node_http_utils["Activity and notifications<br/>[http.js]"]
  node_email["Email delivery<br/>[email.service.js]"]
end

node_admin(("Administrator"))
node_employee(("Employee"))
node_mail_service["SMTP provider"]

node_admin -->|"manages work"| node_admin_ui
node_employee -->|"works on tasks"| node_user_ui
node_employee -->|"signs in"| node_auth_ui
node_admin_ui -->|"uses API"| node_app
node_admin_milestones_ui -->|"uses API"| node_app
node_admin_collab_ui -->|"uses API"| node_app
node_user_ui -->|"uses API"| node_app
node_user_collab_ui -->|"uses API"| node_app
node_user_milestones_ui -->|"uses API"| node_app
node_workflow_ui -->|"uses API"| node_app
node_notifications_ui -->|"uses API"| node_app
node_app -->|"mounts API"| node_routes
node_routes -->|"routes requests"| node_auth_controller
node_routes -->|"routes requests"| node_onboarding
node_routes -->|"routes requests"| node_projects
node_routes -->|"routes requests"| node_tasks
node_routes -->|"routes requests"| node_milestones
node_routes -->|"routes requests"| node_collaboration
node_routes -->|"routes requests"| node_admin_ops
node_routes -->|"routes requests"| node_public
node_routes -->|"guards routes"| node_auth_middleware
node_auth_controller -->|"reads and writes"| node_database
node_onboarding -->|"reads and writes"| node_database
node_projects -->|"reads and writes"| node_database
node_tasks -->|"reads and writes"| node_database
node_milestones -->|"reads and writes"| node_database
node_milestones -->|"checks access"| node_projects
node_collaboration -->|"reads and writes"| node_database
node_admin_ops -->|"reads and writes"| node_database
node_public -->|"reads and writes"| node_database
node_auth_controller -->|"sends messages"| node_email
node_email -.->|"delivers email"| node_mail_service
node_projects -->|"logs and notifies"| node_http_utils
node_tasks -->|"logs and notifies"| node_http_utils
node_milestones -->|"logs and notifies"| node_http_utils
node_collaboration -->|"logs and notifies"| node_http_utils
node_auth_controller -->|"logs activity"| node_http_utils
node_admin_ops -->|"logs activity"| node_http_utils
node_http_utils -->|"persists records"| node_database

click node_admin_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-console.js"
click node_admin_milestones_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-milestones.js"
click node_admin_collab_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-task-collaboration.js"
click node_user_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/app.js"
click node_user_collab_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/user-task-collaboration.js"
click node_user_milestones_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/user-milestones.js"
click node_auth_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/auth.js"
click node_workflow_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/workflow.js"
click node_notifications_ui "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/realtime-notifications.js"
click node_app "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/app.js"
click node_routes "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/routes/index.js"
click node_auth_middleware "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/middleware/auth.js"
click node_auth_controller "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/auth.controller.js"
click node_onboarding "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/onboarding.controller.js"
click node_projects "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/project.controller.js"
click node_tasks "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/task.controller.js"
click node_milestones "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/milestone.controller.js"
click node_collaboration "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/collaboration.controller.js"
click node_admin_ops "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/admin.controller.js"
click node_public "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/public.controller.js"
click node_database "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/config/database.js"
click node_http_utils "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/utils/http.js"
click node_email "https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/services/email.service.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_admin_ui,node_admin_milestones_ui,node_admin_collab_ui,node_user_ui,node_user_collab_ui,node_user_milestones_ui,node_auth_ui,node_workflow_ui,node_notifications_ui toneBlue
class node_app,node_routes,node_auth_middleware toneAmber
class node_projects,node_tasks,node_milestones,node_admin_ops toneMint
class node_auth_controller,node_onboarding,node_collaboration,node_public toneRose
class node_database,node_http_utils,node_email,node_admin,node_employee,node_mail_service toneIndigo
```

## Components

### Browser experience

- [Admin workspace](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-console.js): `frontend/js/admin-console.js`
- [Admin milestones](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-milestones.js): `frontend/js/admin-milestones.js`
- [Admin collaboration](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/admin-task-collaboration.js): `frontend/js/admin-task-collaboration.js`
- [Employee workspace](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/app.js): `frontend/js/app.js`
- [Employee collaboration](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/user-task-collaboration.js): `frontend/js/user-task-collaboration.js`
- [Employee milestones](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/user-milestones.js): `frontend/js/user-milestones.js`
- [Sign-in and onboarding](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/auth.js): `frontend/js/auth.js`
- [Task views](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/workflow.js): `frontend/js/workflow.js`
- [Notifications](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/frontend/js/realtime-notifications.js): `frontend/js/realtime-notifications.js`

### API and access

- [Express application](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/app.js): `backend/src/app.js`
- [API routes](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/routes/index.js): `backend/src/routes/index.js`
- [Session and roles](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/middleware/auth.js): `backend/src/middleware/auth.js`

### Project workflows

- [Project allocation](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/project.controller.js): `backend/src/controllers/project.controller.js`
- [Task management](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/task.controller.js): `backend/src/controllers/task.controller.js`
- [Milestones and progress](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/milestone.controller.js): `backend/src/controllers/milestone.controller.js`
- [Admin and analytics](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/admin.controller.js): `backend/src/controllers/admin.controller.js`

### Collaboration and accounts

- [Authentication](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/auth.controller.js): `backend/src/controllers/auth.controller.js`
- [Allocation onboarding](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/onboarding.controller.js): `backend/src/controllers/onboarding.controller.js`
- [Task collaboration](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/collaboration.controller.js): `backend/src/controllers/collaboration.controller.js`
- [Public contact](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/controllers/public.controller.js): `backend/src/controllers/public.controller.js`

### Persistence and services

- [SQLite or PostgreSQL](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/config/database.js): `backend/src/config/database.js`
- [Activity and notifications](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/utils/http.js): `backend/src/utils/http.js`
- [Email delivery](https://github.com/brahmashnudev-chatterjee/zeeman/blob/main/backend/src/services/email.service.js): `backend/src/services/email.service.js`

### Other components

- **Administrator**
- **Employee**
- **SMTP provider**

## Connections

- Administrator → Admin workspace: manages work (evidence: `README.md`)
- Employee → Employee workspace: works on tasks (evidence: `README.md`)
- Employee → Sign-in and onboarding: signs in (evidence: `README.md`)
- Admin workspace → Express application: uses API (evidence: `README.md`)
- Admin milestones → Express application: uses API (evidence: `README.md`)
- Admin collaboration → Express application: uses API (evidence: `README.md`)
- Employee workspace → Express application: uses API (evidence: `README.md`)
- Employee collaboration → Express application: uses API (evidence: `README.md`)
- Employee milestones → Express application: uses API (evidence: `README.md`)
- Task views → Express application: uses API (evidence: `README.md`)
- Notifications → Express application: uses API (evidence: `README.md`)
- Express application → API routes: mounts API (evidence: `backend/src/app.js`)
- API routes → Authentication: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Allocation onboarding: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Project allocation: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Task management: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Milestones and progress: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Task collaboration: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Admin and analytics: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Public contact: routes requests (evidence: `backend/src/routes/index.js`)
- API routes → Session and roles: guards routes (evidence: `backend/src/routes/index.js`)
- Authentication → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/auth.controller.js`)
- Allocation onboarding → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/onboarding.controller.js`)
- Project allocation → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/project.controller.js`)
- Task management → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/task.controller.js`)
- Milestones and progress → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/milestone.controller.js`)
- Milestones and progress → Project allocation: checks access (evidence: `backend/src/controllers/milestone.controller.js`)
- Task collaboration → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/collaboration.controller.js`)
- Admin and analytics → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/admin.controller.js`)
- Public contact → SQLite or PostgreSQL: reads and writes (evidence: `backend/src/controllers/public.controller.js`)
- Authentication → Email delivery: sends messages (evidence: `backend/src/controllers/auth.controller.js`)
- Email delivery → SMTP provider: delivers email (evidence: `backend/src/services/email.service.js`)
- Project allocation → Activity and notifications: logs and notifies (evidence: `backend/src/controllers/project.controller.js`)
- Task management → Activity and notifications: logs and notifies (evidence: `backend/src/controllers/task.controller.js`)
- Milestones and progress → Activity and notifications: logs and notifies (evidence: `backend/src/controllers/milestone.controller.js`)
- Task collaboration → Activity and notifications: logs and notifies (evidence: `backend/src/controllers/collaboration.controller.js`)
- Authentication → Activity and notifications: logs activity (evidence: `backend/src/controllers/auth.controller.js`)
- Admin and analytics → Activity and notifications: logs activity (evidence: `backend/src/controllers/admin.controller.js`)
- Activity and notifications → SQLite or PostgreSQL: persists records (evidence: `backend/src/utils/http.js`)
