# elmadah/manager-os architecture

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

- Interactive diagram: https://gitdiagram.com/elmadah/manager-os
- Repository: https://github.com/elmadah/manager-os

## Overview

ManagerOS is a self-hosted management dashboard for project delivery, team context, sprint work, capacity, and reporting. A leader uses the React workspace to review the dashboard or open a domain page; the client API sends requests to the Express server, whose route handlers read and update the local SQLite-compatible database. Distinct branches cover project/story tracking, team and personal work, planning, reporting, imports/backups, and GitHub/Jira integrations. Several route and page implementations were not sampled, so those branches are represented at their documented subsystem level; their internal calls are not inferred.

Main entry points: [`client/src/App.jsx`](https://github.com/elmadah/manager-os/blob/main/client/src/App.jsx) (React Router), [`client/src/lib/api.js`](https://github.com/elmadah/manager-os/blob/main/client/src/lib/api.js) (API Client), [`server/db/init.js`](https://github.com/elmadah/manager-os/blob/main/server/db/init.js) (Local Database), [`server/index.js`](https://github.com/elmadah/manager-os/blob/main/server/index.js) (Express API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace UI"]
  node_app["React Router<br/>[App.jsx]"]
  node_dashboard["Dashboard<br/>[HomePage.jsx]"]
  node_api["API Client<br/>[api.js]"]
end

subgraph group_delivery["Project Delivery"]
  node_project["Projects and Stories"]
  node_roadmap["Roadmap and Timeline"]
  node_sprints["Sprint Tracking<br/>[SprintsPage.jsx]"]
  node_imports["Story Import<br/>[ImportPage.jsx]"]
end

subgraph group_people["Team Operations"]
  node_team["Team Profiles<br/>[TeamMemberPage.jsx]"]
  node_todos["Todos and Blockers<br/>[TodosPage.jsx]"]
  node_capacity["Capacity Planning"]
  node_notes["Notes and 1:1s<br/>[NotesPanel.jsx]"]
end

subgraph group_platform["API and Storage"]
  node_http["Express API<br/>[index.js]"]
  node_routes["Domain Routes"]
  node_database[("Local Database<br/>[init.js]")]
  node_capacitylogic["Capacity Rules<br/>[capacity.js]"]
end

subgraph group_integrations["Reporting and Integrations"]
  node_digest["Weekly Digest<br/>[digest.js]"]
  node_github["GitHub Sync<br/>[githubSync.js]"]
  node_jira["Jira Sync and Settings<br/>[jiraSettings.js]"]
  node_pullrequests["Pull Request Analytics"]
  node_backup["Backup and Restore<br/>[backup.js]"]
end

node_leader(("Team Leader"))

node_leader -->|"opens workspace"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_project
node_app -->|"routes to"| node_roadmap
node_app -->|"routes to"| node_sprints
node_app -->|"routes to"| node_imports
node_app -->|"routes to"| node_team
node_app -->|"routes to"| node_todos
node_app -->|"routes to"| node_capacity
node_app -->|"routes to"| node_pullrequests
node_project -->|"requests through"| node_api
node_team -->|"requests through"| node_api
node_imports -->|"requests through"| node_api
node_capacity -->|"requests through"| node_api
node_api -->|"sends API requests"| node_http
node_http -->|"mounts routers"| node_routes
node_http -->|"initializes"| node_database
node_capacitylogic -->|"reads and writes"| node_database
node_routes -->|"uses database layer"| node_database
node_digest -->|"reads data"| node_database
node_github -->|"syncs records"| node_database
node_github -.->|"syncs with"| node_leader
node_jira -.->|"configures sync"| node_leader
node_backup -->|"exports and restores"| node_database
node_notes -->|"autosaves notes"| node_api

click node_app "https://github.com/elmadah/manager-os/blob/main/client/src/App.jsx"
click node_dashboard "https://github.com/elmadah/manager-os/blob/main/client/src/pages/HomePage.jsx"
click node_api "https://github.com/elmadah/manager-os/blob/main/client/src/lib/api.js"
click node_project "https://github.com/elmadah/manager-os/blob/main/client/src/pages/ProjectDetailPage.jsx"
click node_roadmap "https://github.com/elmadah/manager-os/blob/main/client/src/pages/ProjectsRoadmapPage.jsx"
click node_sprints "https://github.com/elmadah/manager-os/blob/main/client/src/pages/SprintsPage.jsx"
click node_imports "https://github.com/elmadah/manager-os/blob/main/client/src/pages/ImportPage.jsx"
click node_team "https://github.com/elmadah/manager-os/blob/main/client/src/pages/TeamMemberPage.jsx"
click node_todos "https://github.com/elmadah/manager-os/blob/main/client/src/pages/TodosPage.jsx"
click node_capacity "https://github.com/elmadah/manager-os/blob/main/client/src/pages/CapacityPlanPage.jsx"
click node_notes "https://github.com/elmadah/manager-os/blob/main/client/src/components/NotesPanel.jsx"
click node_http "https://github.com/elmadah/manager-os/blob/main/server/index.js"
click node_routes "https://github.com/elmadah/manager-os/tree/main/server/routes"
click node_database "https://github.com/elmadah/manager-os/blob/main/server/db/init.js"
click node_capacitylogic "https://github.com/elmadah/manager-os/blob/main/server/routes/capacity.js"
click node_digest "https://github.com/elmadah/manager-os/blob/main/server/services/digest.js"
click node_github "https://github.com/elmadah/manager-os/blob/main/server/services/githubSync.js"
click node_jira "https://github.com/elmadah/manager-os/blob/main/server/routes/jiraSettings.js"
click node_pullrequests "https://github.com/elmadah/manager-os/blob/main/client/src/pages/PullRequestsPage.jsx"
click node_backup "https://github.com/elmadah/manager-os/blob/main/server/routes/backup.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_dashboard,node_api toneBlue
class node_project,node_roadmap,node_sprints,node_imports toneAmber
class node_team,node_todos,node_capacity,node_notes toneMint
class node_http,node_routes,node_database,node_capacitylogic toneRose
class node_digest,node_github,node_jira,node_pullrequests,node_backup,node_leader toneIndigo
```

## Components

### Workspace UI

- [React Router](https://github.com/elmadah/manager-os/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Dashboard](https://github.com/elmadah/manager-os/blob/main/client/src/pages/HomePage.jsx): `client/src/pages/HomePage.jsx`
- [API Client](https://github.com/elmadah/manager-os/blob/main/client/src/lib/api.js): `client/src/lib/api.js`

### Project Delivery

- [Projects and Stories](https://github.com/elmadah/manager-os/blob/main/client/src/pages/ProjectDetailPage.jsx): `client/src/pages/ProjectDetailPage.jsx`
- [Roadmap and Timeline](https://github.com/elmadah/manager-os/blob/main/client/src/pages/ProjectsRoadmapPage.jsx): `client/src/pages/ProjectsRoadmapPage.jsx`
- [Sprint Tracking](https://github.com/elmadah/manager-os/blob/main/client/src/pages/SprintsPage.jsx): `client/src/pages/SprintsPage.jsx`
- [Story Import](https://github.com/elmadah/manager-os/blob/main/client/src/pages/ImportPage.jsx): `client/src/pages/ImportPage.jsx`

### Team Operations

- [Team Profiles](https://github.com/elmadah/manager-os/blob/main/client/src/pages/TeamMemberPage.jsx): `client/src/pages/TeamMemberPage.jsx`
- [Todos and Blockers](https://github.com/elmadah/manager-os/blob/main/client/src/pages/TodosPage.jsx): `client/src/pages/TodosPage.jsx`
- [Capacity Planning](https://github.com/elmadah/manager-os/blob/main/client/src/pages/CapacityPlanPage.jsx): `client/src/pages/CapacityPlanPage.jsx`
- [Notes and 1:1s](https://github.com/elmadah/manager-os/blob/main/client/src/components/NotesPanel.jsx): `client/src/components/NotesPanel.jsx`

### API and Storage

- [Express API](https://github.com/elmadah/manager-os/blob/main/server/index.js): `server/index.js`
- [Domain Routes](https://github.com/elmadah/manager-os/tree/main/server/routes): `server/routes`
- [Local Database](https://github.com/elmadah/manager-os/blob/main/server/db/init.js): `server/db/init.js`
- [Capacity Rules](https://github.com/elmadah/manager-os/blob/main/server/routes/capacity.js): `server/routes/capacity.js`

### Reporting and Integrations

- [Weekly Digest](https://github.com/elmadah/manager-os/blob/main/server/services/digest.js): `server/services/digest.js`
- [GitHub Sync](https://github.com/elmadah/manager-os/blob/main/server/services/githubSync.js): `server/services/githubSync.js`
- [Jira Sync and Settings](https://github.com/elmadah/manager-os/blob/main/server/routes/jiraSettings.js): `server/routes/jiraSettings.js`
- [Pull Request Analytics](https://github.com/elmadah/manager-os/blob/main/client/src/pages/PullRequestsPage.jsx): `client/src/pages/PullRequestsPage.jsx`
- [Backup and Restore](https://github.com/elmadah/manager-os/blob/main/server/routes/backup.js): `server/routes/backup.js`

### Other components

- **Team Leader**

## Connections

- Team Leader → React Router: opens workspace (evidence: `README.md`)
- React Router → Dashboard: routes to (evidence: `client/src/App.jsx`)
- React Router → Projects and Stories: routes to (evidence: `client/src/App.jsx`)
- React Router → Roadmap and Timeline: routes to (evidence: `client/src/App.jsx`)
- React Router → Sprint Tracking: routes to (evidence: `client/src/App.jsx`)
- React Router → Story Import: routes to (evidence: `client/src/App.jsx`)
- React Router → Team Profiles: routes to (evidence: `client/src/App.jsx`)
- React Router → Todos and Blockers: routes to (evidence: `client/src/App.jsx`)
- React Router → Capacity Planning: routes to (evidence: `client/src/App.jsx`)
- React Router → Pull Request Analytics: routes to (evidence: `client/src/App.jsx`)
- Projects and Stories → API Client: requests through (evidence: `client/src/pages/ProjectDetailPage.jsx`)
- Team Profiles → API Client: requests through (evidence: `client/src/pages/TeamMemberPage.jsx`)
- Story Import → API Client: requests through (evidence: `README.md`)
- Capacity Planning → API Client: requests through (evidence: `README.md`)
- API Client → Express API: sends API requests (evidence: `README.md`)
- Express API → Domain Routes: mounts routers (evidence: `server/index.js`)
- Express API → Local Database: initializes (evidence: `server/index.js`)
- Capacity Rules → Local Database: reads and writes (evidence: `server/routes/capacity.js`)
- Domain Routes → Local Database: uses database layer (evidence: `README.md`)
- Weekly Digest → Local Database: reads data (evidence: `server/services/digest.js`)
- GitHub Sync → Local Database: syncs records (evidence: `server/services/githubSync.js`)
- GitHub Sync → Team Leader: syncs with (evidence: `README.md`)
- Jira Sync and Settings → Team Leader: configures sync (evidence: `README.md`)
- Backup and Restore → Local Database: exports and restores (evidence: `server/routes/backup.js`)
- Notes and 1:1s → API Client: autosaves notes (evidence: `client/src/components/NotesPanel.jsx`)
