# divesh-kumar-chordia/gitpulse-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/divesh-kumar-chordia/gitpulse-dashboard
- Repository: https://github.com/divesh-kumar-chordia/gitpulse-dashboard

## Overview

GitPulse is a React dashboard for GitHub organization activity, code search, and file history, with OAuth or PAT authentication. The main workflow is configuring credentials and an organization, loading GitHub data, then filtering and exploring activity in dashboard views. Separate team analytics and repository excavation expand that workflow. The README documents OAuth token exchange and GitHub search; source excerpts show the app loading activity and mounting views. Unsampled feature internals are represented by their exact component paths, with only documented or indexed relationships drawn.

Main entry points: [`src/App.jsx`](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/App.jsx) (Dashboard app), [`src/components/teams/TeamMembersSection.jsx`](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamMembersSection.jsx) (Team member view), [`src/components/teams/TeamReposSection.jsx`](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamReposSection.jsx) (Team repository view), [`src/api/github/activities.js`](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github/activities.js) (Activity fetchers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_auth["Authentication"]
  node_setup["Credential setup<br/>[SetupModal.jsx]"]
  node_oauth_login["OAuth login<br/>[login.js]"]
  node_oauth_callback["OAuth exchange<br/>[callback.js]"]
end

subgraph group_data["GitHub data"]
  node_activity_api["Activity fetchers<br/>[activities.js]"]
  node_github_api["GitHub API helpers<br/>[github.js]"]
  node_teams_api["Team fetchers<br/>[teams.js]"]
end

subgraph group_activity["Activity dashboard"]
  node_app["Dashboard app<br/>[App.jsx]"]
  node_sidebar["Activity filters<br/>[Sidebar.jsx]"]
  node_timeline["Activity timeline<br/>[Timeline.jsx]"]
  node_heatmap["Activity heatmap<br/>[HeatMap.jsx]"]
  node_stats["Activity statistics<br/>[StatsBar.jsx]"]
end

subgraph group_explore["Code exploration"]
  node_history["File history<br/>[FileHistory.jsx]"]
  node_filetree["File tree<br/>[FileTree.jsx]"]
  node_codesearch["Code search<br/>[CodeSearch.jsx]"]
end

subgraph group_teams["Team analytics"]
  node_teams_dashboard["Teams dashboard<br/>[TeamsDashboard.jsx]"]
  node_team_members["Team member view"]
  node_team_repos["Team repository view"]
  node_team_feed["Team activity feed<br/>[ActivityFeed.jsx]"]
  node_member_profile["Member profile<br/>[MemberProfile.jsx]"]
  node_leaderboard["Leaderboard<br/>[Leaderboard.jsx]"]
  node_team_heatmap["Team heatmap<br/>[Heatmap.jsx]"]
  node_team_stats["Team statistics<br/>[StatsCards.jsx]"]
end

node_user(("GitHub user"))
node_github["GitHub API"]

node_user -->|"configures"| node_setup
node_user -->|"starts login"| node_oauth_login
node_oauth_login -->|"authorizes"| node_github
node_oauth_callback -->|"exchanges token"| node_github
node_user -->|"returns from OAuth"| node_oauth_callback
node_setup -->|"provides config"| node_app
node_app -->|"loads repositories"| node_github_api
node_app -->|"loads activities"| node_activity_api
node_github_api -->|"requests data"| node_github
node_activity_api -->|"requests events"| node_github
node_teams_api -->|"requests team data"| node_github
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_timeline
node_app -->|"renders"| node_heatmap
node_app -->|"renders"| node_stats
node_app -->|"renders"| node_history
node_app -->|"renders"| node_codesearch
node_history -->|"queries history"| node_github_api
node_history -->|"renders"| node_filetree
node_codesearch -->|"searches code"| node_github_api
node_codesearch -->|"renders"| node_filetree
node_app -->|"renders"| node_teams_dashboard
node_teams_dashboard -->|"loads team data"| node_teams_api
node_teams_dashboard -->|"renders"| node_team_members
node_teams_dashboard -->|"renders"| node_team_repos
node_team_members -->|"fetches member activity"| node_activity_api
node_team_repos -->|"fetches repository activity"| node_activity_api
node_team_members -->|"renders"| node_team_feed
node_team_members -->|"renders"| node_leaderboard
node_team_members -->|"renders"| node_team_heatmap
node_team_members -->|"renders"| node_team_stats
node_team_repos -->|"renders"| node_team_feed
node_team_repos -->|"renders"| node_leaderboard
node_team_repos -->|"renders"| node_team_heatmap
node_team_repos -->|"renders"| node_team_stats
node_member_profile -->|"loads activity"| node_activity_api
node_team_feed -->|"loads commit details"| node_activity_api

click node_setup "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/SetupModal.jsx"
click node_oauth_login "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/api/auth/login.js"
click node_oauth_callback "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/api/auth/callback.js"
click node_activity_api "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github/activities.js"
click node_github_api "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github.js"
click node_teams_api "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github/teams.js"
click node_app "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/App.jsx"
click node_sidebar "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/Sidebar.jsx"
click node_timeline "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/Timeline.jsx"
click node_heatmap "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/HeatMap.jsx"
click node_stats "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/StatsBar.jsx"
click node_history "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/FileHistory.jsx"
click node_filetree "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/FileTree.jsx"
click node_codesearch "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/CodeSearch.jsx"
click node_teams_dashboard "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/TeamsDashboard.jsx"
click node_team_members "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamMembersSection.jsx"
click node_team_repos "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamReposSection.jsx"
click node_team_feed "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/ActivityFeed.jsx"
click node_member_profile "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/MemberProfile.jsx"
click node_leaderboard "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/Leaderboard.jsx"
click node_team_heatmap "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/Heatmap.jsx"
click node_team_stats "https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/StatsCards.jsx"

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_setup,node_oauth_login,node_oauth_callback,node_user toneBlue
class node_activity_api,node_github_api,node_teams_api toneAmber
class node_app,node_sidebar,node_timeline,node_heatmap,node_stats,node_github toneMint
class node_history,node_filetree,node_codesearch toneRose
class node_teams_dashboard,node_team_members,node_team_repos,node_team_feed,node_member_profile,node_leaderboard,node_team_heatmap,node_team_stats toneIndigo
```

## Components

### Authentication

- [Credential setup](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/SetupModal.jsx): `src/components/SetupModal.jsx`
- [OAuth login](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/api/auth/login.js): `api/auth/login.js`
- [OAuth exchange](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/api/auth/callback.js): `api/auth/callback.js`

### GitHub data

- [Activity fetchers](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github/activities.js): `src/api/github/activities.js`
- [GitHub API helpers](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github.js): `src/api/github.js`
- [Team fetchers](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/api/github/teams.js): `src/api/github/teams.js`

### Activity dashboard

- [Dashboard app](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/App.jsx): `src/App.jsx`
- [Activity filters](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/Sidebar.jsx): `src/components/Sidebar.jsx`
- [Activity timeline](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/Timeline.jsx): `src/components/Timeline.jsx`
- [Activity heatmap](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/HeatMap.jsx): `src/components/HeatMap.jsx`
- [Activity statistics](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/StatsBar.jsx): `src/components/StatsBar.jsx`

### Code exploration

- [File history](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/FileHistory.jsx): `src/components/FileHistory.jsx`
- [File tree](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/FileTree.jsx): `src/components/FileTree.jsx`
- [Code search](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/CodeSearch.jsx): `src/components/CodeSearch.jsx`

### Team analytics

- [Teams dashboard](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/TeamsDashboard.jsx): `src/components/TeamsDashboard.jsx`
- [Team member view](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamMembersSection.jsx): `src/components/teams/TeamMembersSection.jsx`
- [Team repository view](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/TeamReposSection.jsx): `src/components/teams/TeamReposSection.jsx`
- [Team activity feed](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/ActivityFeed.jsx): `src/components/teams/ActivityFeed.jsx`
- [Member profile](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/MemberProfile.jsx): `src/components/teams/MemberProfile.jsx`
- [Leaderboard](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/Leaderboard.jsx): `src/components/teams/Leaderboard.jsx`
- [Team heatmap](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/Heatmap.jsx): `src/components/teams/Heatmap.jsx`
- [Team statistics](https://github.com/divesh-kumar-chordia/gitpulse-dashboard/blob/main/src/components/teams/StatsCards.jsx): `src/components/teams/StatsCards.jsx`

### Other components

- **GitHub user**
- **GitHub API**

## Connections

- GitHub user → Credential setup: configures
- GitHub user → OAuth login: starts login (evidence: `README.md`)
- OAuth login → GitHub API: authorizes (evidence: `README.md`)
- OAuth exchange → GitHub API: exchanges token (evidence: `README.md`)
- GitHub user → OAuth exchange: returns from OAuth (evidence: `README.md`)
- Credential setup → Dashboard app: provides config (evidence: `src/App.jsx`)
- Dashboard app → GitHub API helpers: loads repositories (evidence: `src/App.jsx`)
- Dashboard app → Activity fetchers: loads activities (evidence: `src/App.jsx`)
- GitHub API helpers → GitHub API: requests data (evidence: `src/api/github.js`)
- Activity fetchers → GitHub API: requests events (evidence: `src/api/github/activities.js`)
- Team fetchers → GitHub API: requests team data (evidence: `src/api/github/teams.js`)
- Dashboard app → Activity filters: renders (evidence: `src/App.jsx`)
- Dashboard app → Activity timeline: renders (evidence: `src/App.jsx`)
- Dashboard app → Activity heatmap: renders (evidence: `src/App.jsx`)
- Dashboard app → Activity statistics: renders (evidence: `src/App.jsx`)
- Dashboard app → File history: renders (evidence: `src/App.jsx`)
- Dashboard app → Code search: renders (evidence: `src/App.jsx`)
- File history → GitHub API helpers: queries history (evidence: `src/components/FileHistory.jsx`)
- File history → File tree: renders (evidence: `src/components/FileHistory.jsx`)
- Code search → GitHub API helpers: searches code (evidence: `src/components/CodeSearch.jsx`)
- Code search → File tree: renders (evidence: `src/components/CodeSearch.jsx`)
- Dashboard app → Teams dashboard: renders (evidence: `src/App.jsx`)
- Teams dashboard → Team fetchers: loads team data (evidence: `src/components/TeamsDashboard.jsx`)
- Teams dashboard → Team member view: renders (evidence: `src/components/TeamsDashboard.jsx`)
- Teams dashboard → Team repository view: renders (evidence: `src/components/TeamsDashboard.jsx`)
- Team member view → Activity fetchers: fetches member activity (evidence: `src/components/teams/TeamMembersSection.jsx`)
- Team repository view → Activity fetchers: fetches repository activity (evidence: `src/components/teams/TeamReposSection.jsx`)
- Team member view → Team activity feed: renders (evidence: `src/components/teams/TeamMembersSection.jsx`)
- Team member view → Leaderboard: renders (evidence: `src/components/teams/TeamMembersSection.jsx`)
- Team member view → Team heatmap: renders (evidence: `src/components/teams/TeamMembersSection.jsx`)
- Team member view → Team statistics: renders (evidence: `src/components/teams/TeamMembersSection.jsx`)
- Team repository view → Team activity feed: renders (evidence: `src/components/teams/TeamReposSection.jsx`)
- Team repository view → Leaderboard: renders (evidence: `src/components/teams/TeamReposSection.jsx`)
- Team repository view → Team heatmap: renders (evidence: `src/components/teams/TeamReposSection.jsx`)
- Team repository view → Team statistics: renders (evidence: `src/components/teams/TeamReposSection.jsx`)
- Member profile → Activity fetchers: loads activity (evidence: `src/components/teams/MemberProfile.jsx`)
- Team activity feed → Activity fetchers: loads commit details (evidence: `src/components/teams/ActivityFeed.jsx`)
