# divya5623/orgexplorer architecture

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

- Interactive diagram: https://gitdiagram.com/divya5623/orgexplorer
- Repository: https://github.com/divya5623/orgexplorer

## Overview

OrgExplorer is a browser-based GitHub organization intelligence dashboard. A user selects an organization; the app loads organization and repository data, builds an analytical model, and presents overview, repository, contributor, network, analytics, and governance views. Optional authenticated access and browser caching support deeper or repeat analysis. The route wiring, context orchestration, service calls, cache behavior, and several page dependencies are visible in excerpts; other capabilities are retained as documented, without asserting unsampled internal call paths.

Main entry points: [`src/context/AppContext.jsx`](https://github.com/divya5623/orgexplorer/blob/main/src/context/AppContext.jsx) (Analysis State), [`src/App.jsx`](https://github.com/divya5623/orgexplorer/blob/main/src/App.jsx) (Application Routes), [`src/services/github.js`](https://github.com/divya5623/orgexplorer/blob/main/src/services/github.js) (GitHub Data Access), [`src/pages/OverviewPage.jsx`](https://github.com/divya5623/orgexplorer/blob/main/src/pages/OverviewPage.jsx) (Organization Overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and State"]
  node_app["Application Routes<br/>[App.jsx]"]
  node_home["Organization Selection<br/>[HomePage.jsx]"]
  node_settings["Access Settings<br/>[SettingsPage.jsx]"]
  node_state["Analysis State<br/>[AppContext.jsx]"]
  node_theme["Theme State<br/>[ThemeContext.jsx]"]
end

subgraph group_data["Data and Analysis"]
  node_github["GitHub Data Access<br/>[github.js]"]
  node_api_cache[("API Response Cache<br/>[github.js]")]
  node_analysis["Analysis Model<br/>[analytics.js]"]
  node_saved_analysis[("Saved Analysis Cache<br/>[cache.js]")]
end

subgraph group_insights["Organization Insights"]
  node_overview["Organization Overview<br/>[OverviewPage.jsx]"]
  node_repositories["Repository Explorer"]
  node_timeline["Creation Timeline"]
  node_analytics_page["Repository Analytics<br/>[AnalyticsPage.jsx]"]
  node_governance["Governance and Risk<br/>[GovernancePage.jsx]"]
end

subgraph group_people["Contributor Intelligence"]
  node_contributors["Contributor Intelligence"]
  node_profile["Contributor Profile"]
  node_network["Collaboration Network<br/>[NetworkPage.jsx]"]
end

node_user(("Organization Explorer"))
node_github_api{{"GitHub API"}}
node_graphql{{"GitHub GraphQL API"}}

node_user -->|"selects organization"| node_home
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_overview
node_app -->|"routes to"| node_repositories
node_app -->|"routes to"| node_contributors
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_network
node_app -->|"routes to"| node_analytics_page
node_app -->|"routes to"| node_governance
node_home -.->|"starts analysis"| node_state
node_settings -->|"configures access"| node_state
node_state -->|"fetches organization data"| node_github
node_github -->|"requests REST data"| node_github_api
node_github -->|"reads and writes"| node_api_cache
node_state -->|"builds analytical model"| node_analysis
node_state -->|"loads and saves"| node_saved_analysis
node_state -->|"fetches issues and pulls"| node_github
node_github -.->|"optional enhanced access"| node_graphql
node_overview -->|"renders"| node_timeline
node_overview -->|"reads analysis"| node_state
node_contributors -->|"reads analysis"| node_state
node_contributors -->|"computes bus factor"| node_analysis
node_governance -->|"reads audit data"| node_state
node_profile -->|"reads contributor data"| node_state
node_network -.->|"visualizes collaboration"| node_state
node_analytics_page -.->|"presents analytics"| node_analysis

click node_app "https://github.com/divya5623/orgexplorer/blob/main/src/App.jsx"
click node_home "https://github.com/divya5623/orgexplorer/blob/main/src/pages/HomePage.jsx"
click node_settings "https://github.com/divya5623/orgexplorer/blob/main/src/pages/SettingsPage.jsx"
click node_state "https://github.com/divya5623/orgexplorer/blob/main/src/context/AppContext.jsx"
click node_theme "https://github.com/divya5623/orgexplorer/blob/main/src/context/ThemeContext.jsx"
click node_github "https://github.com/divya5623/orgexplorer/blob/main/src/services/github.js"
click node_api_cache "https://github.com/divya5623/orgexplorer/blob/main/src/services/github.js"
click node_analysis "https://github.com/divya5623/orgexplorer/blob/main/src/services/analytics.js"
click node_saved_analysis "https://github.com/divya5623/orgexplorer/blob/main/src/services/cache.js"
click node_overview "https://github.com/divya5623/orgexplorer/blob/main/src/pages/OverviewPage.jsx"
click node_repositories "https://github.com/divya5623/orgexplorer/blob/main/src/pages/RepositoriesPage.jsx"
click node_timeline "https://github.com/divya5623/orgexplorer/blob/main/src/components/RepositoryCreationTimeline.jsx"
click node_analytics_page "https://github.com/divya5623/orgexplorer/blob/main/src/pages/AnalyticsPage.jsx"
click node_governance "https://github.com/divya5623/orgexplorer/blob/main/src/pages/GovernancePage.jsx"
click node_contributors "https://github.com/divya5623/orgexplorer/blob/main/src/pages/ContributorsPage.jsx"
click node_profile "https://github.com/divya5623/orgexplorer/blob/main/src/pages/ContributorProfilePage.jsx"
click node_network "https://github.com/divya5623/orgexplorer/blob/main/src/pages/NetworkPage.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_app,node_home,node_settings,node_state,node_theme toneBlue
class node_github,node_api_cache,node_analysis,node_saved_analysis toneAmber
class node_overview,node_repositories,node_timeline,node_analytics_page,node_governance,node_github_api,node_graphql toneMint
class node_contributors,node_profile,node_network toneRose
class node_user toneIndigo
```

## Components

### Application and State

- [Application Routes](https://github.com/divya5623/orgexplorer/blob/main/src/App.jsx): `src/App.jsx`
- [Organization Selection](https://github.com/divya5623/orgexplorer/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [Access Settings](https://github.com/divya5623/orgexplorer/blob/main/src/pages/SettingsPage.jsx): `src/pages/SettingsPage.jsx`
- [Analysis State](https://github.com/divya5623/orgexplorer/blob/main/src/context/AppContext.jsx): `src/context/AppContext.jsx`
- [Theme State](https://github.com/divya5623/orgexplorer/blob/main/src/context/ThemeContext.jsx): `src/context/ThemeContext.jsx`

### Data and Analysis

- [GitHub Data Access](https://github.com/divya5623/orgexplorer/blob/main/src/services/github.js): `src/services/github.js`
- [API Response Cache](https://github.com/divya5623/orgexplorer/blob/main/src/services/github.js): `src/services/github.js`
- [Analysis Model](https://github.com/divya5623/orgexplorer/blob/main/src/services/analytics.js): `src/services/analytics.js`
- [Saved Analysis Cache](https://github.com/divya5623/orgexplorer/blob/main/src/services/cache.js): `src/services/cache.js`

### Organization Insights

- [Organization Overview](https://github.com/divya5623/orgexplorer/blob/main/src/pages/OverviewPage.jsx): `src/pages/OverviewPage.jsx`
- [Repository Explorer](https://github.com/divya5623/orgexplorer/blob/main/src/pages/RepositoriesPage.jsx): `src/pages/RepositoriesPage.jsx`
- [Creation Timeline](https://github.com/divya5623/orgexplorer/blob/main/src/components/RepositoryCreationTimeline.jsx): `src/components/RepositoryCreationTimeline.jsx`
- [Repository Analytics](https://github.com/divya5623/orgexplorer/blob/main/src/pages/AnalyticsPage.jsx): `src/pages/AnalyticsPage.jsx`
- [Governance and Risk](https://github.com/divya5623/orgexplorer/blob/main/src/pages/GovernancePage.jsx): `src/pages/GovernancePage.jsx`

### Contributor Intelligence

- [Contributor Intelligence](https://github.com/divya5623/orgexplorer/blob/main/src/pages/ContributorsPage.jsx): `src/pages/ContributorsPage.jsx`
- [Contributor Profile](https://github.com/divya5623/orgexplorer/blob/main/src/pages/ContributorProfilePage.jsx): `src/pages/ContributorProfilePage.jsx`
- [Collaboration Network](https://github.com/divya5623/orgexplorer/blob/main/src/pages/NetworkPage.jsx): `src/pages/NetworkPage.jsx`

### Other components

- **Organization Explorer**
- **GitHub API**
- **GitHub GraphQL API**

## Connections

- Organization Explorer → Organization Selection: selects organization (evidence: `README.md`)
- Application Routes → Organization Selection: routes to (evidence: `src/App.jsx`)
- Application Routes → Organization Overview: routes to (evidence: `src/App.jsx`)
- Application Routes → Repository Explorer: routes to (evidence: `src/App.jsx`)
- Application Routes → Contributor Intelligence: routes to (evidence: `src/App.jsx`)
- Application Routes → Contributor Profile: routes to (evidence: `src/App.jsx`)
- Application Routes → Collaboration Network: routes to (evidence: `src/App.jsx`)
- Application Routes → Repository Analytics: routes to (evidence: `src/App.jsx`)
- Application Routes → Governance and Risk: routes to (evidence: `src/App.jsx`)
- Organization Selection → Analysis State: starts analysis
- Access Settings → Analysis State: configures access (evidence: `src/pages/SettingsPage.jsx`)
- Analysis State → GitHub Data Access: fetches organization data (evidence: `src/context/AppContext.jsx`)
- GitHub Data Access → GitHub API: requests REST data (evidence: `src/services/github.js`)
- GitHub Data Access → API Response Cache: reads and writes (evidence: `src/services/github.js`)
- Analysis State → Analysis Model: builds analytical model (evidence: `src/context/AppContext.jsx`)
- Analysis State → Saved Analysis Cache: loads and saves (evidence: `src/context/AppContext.jsx`)
- Analysis State → GitHub Data Access: fetches issues and pulls (evidence: `src/context/AppContext.jsx`)
- GitHub Data Access → GitHub GraphQL API: optional enhanced access (evidence: `README.md`)
- Organization Overview → Creation Timeline: renders (evidence: `src/pages/OverviewPage.jsx`)
- Organization Overview → Analysis State: reads analysis (evidence: `src/pages/OverviewPage.jsx`)
- Contributor Intelligence → Analysis State: reads analysis (evidence: `src/pages/ContributorsPage.jsx`)
- Contributor Intelligence → Analysis Model: computes bus factor (evidence: `src/pages/ContributorsPage.jsx`)
- Governance and Risk → Analysis State: reads audit data (evidence: `src/pages/GovernancePage.jsx`)
- Contributor Profile → Analysis State: reads contributor data (evidence: `src/pages/ContributorProfilePage.jsx`)
- Collaboration Network → Analysis State: visualizes collaboration (evidence: `README.md`)
- Repository Analytics → Analysis Model: presents analytics (evidence: `README.md`)
