# nandinii26/github-intelligence- architecture

> Architecture diagram of the GitHub repository nandinii26/github-intelligence-, 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/nandinii26/github-intelligence-
- Repository: https://github.com/nandinii26/github-intelligence-

## Overview

GitHub Issue Intelligence is a web application for retrieving repository activity, analyzing individual issues, finding semantic duplicates, and assessing repository health. Users submit work through the browser dashboard; the Express server routes requests to GitHub retrieval or analysis modules and returns results for display. Repository-health analysis covers code quality, documentation, dependencies, and process. The README also describes lightweight caching, represented here, though the sampled code does not show it wired into requests. Webhooks and predictive features are documented as future work. Evidence limits: edges reflect shown calls or documented capabilities; no storage wiring is inferred.

Main entry points: [`src/github/issueDetector.js`](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js) (Health assessment), [`src/api/routes.js`](https://github.com/nandinii26/github-intelligence-/blob/main/src/api/routes.js) (REST endpoints), [`src/index.js`](https://github.com/nandinii26/github-intelligence-/blob/main/src/index.js) (HTTP server), [`public/app.js`](https://github.com/nandinii26/github-intelligence-/blob/main/public/app.js) (Dashboard UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web dashboard"]
  node_dashboard["Dashboard UI<br/>[app.js]"]
end

subgraph group_service["API service"]
  node_server["HTTP server<br/>[index.js]"]
  node_routes["REST endpoints<br/>[routes.js]"]
end

subgraph group_github["GitHub data"]
  node_github_client["GitHub retrieval<br/>[githubClient.js]"]
end

subgraph group_analysis["Issue intelligence"]
  node_issue_analysis["Issue analysis<br/>[analysis.js]"]
  node_health_analysis["Health assessment<br/>[issueDetector.js]"]
  node_quality_checks["Code quality checks<br/>[issueDetector.js]"]
  node_documentation_checks["Documentation checks<br/>[issueDetector.js]"]
  node_dependency_checks["Dependency checks<br/>[issueDetector.js]"]
  node_process_checks["Process checks<br/>[issueDetector.js]"]
end

subgraph group_state["Persistence"]
  node_cache[("JSON cache<br/>[db.js]")]
end

node_user(("Repository user"))
node_github_api{{"GitHub API"}}
node_openai{{"OpenAI embeddings"}}

node_user -->|"uses"| node_dashboard
node_dashboard -->|"sends requests"| node_server
node_server -->|"mounts routes"| node_routes
node_server -->|"serves assets"| node_dashboard
node_routes -->|"fetches repository data"| node_github_client
node_routes -->|"analyzes issues"| node_issue_analysis
node_routes -->|"assesses repository health"| node_health_analysis
node_github_client -->|"retrieves data"| node_github_api
node_issue_analysis -.->|"requests embeddings"| node_openai
node_health_analysis -->|"runs checks"| node_quality_checks
node_health_analysis -->|"runs checks"| node_documentation_checks
node_health_analysis -->|"runs checks"| node_dependency_checks
node_health_analysis -->|"runs checks"| node_process_checks
node_cache -.-> node_user

click node_dashboard "https://github.com/nandinii26/github-intelligence-/blob/main/public/app.js"
click node_server "https://github.com/nandinii26/github-intelligence-/blob/main/src/index.js"
click node_routes "https://github.com/nandinii26/github-intelligence-/blob/main/src/api/routes.js"
click node_github_client "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/githubClient.js"
click node_issue_analysis "https://github.com/nandinii26/github-intelligence-/blob/main/src/nlp/analysis.js"
click node_health_analysis "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js"
click node_quality_checks "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js"
click node_documentation_checks "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js"
click node_dependency_checks "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js"
click node_process_checks "https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js"
click node_cache "https://github.com/nandinii26/github-intelligence-/blob/main/src/storage/db.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_dashboard,node_user toneBlue
class node_server,node_routes toneAmber
class node_github_client,node_github_api toneMint
class node_issue_analysis,node_health_analysis,node_quality_checks,node_documentation_checks,node_dependency_checks,node_process_checks toneRose
class node_cache,node_openai toneIndigo
```

## Components

### Web dashboard

- [Dashboard UI](https://github.com/nandinii26/github-intelligence-/blob/main/public/app.js): `public/app.js`

### API service

- [HTTP server](https://github.com/nandinii26/github-intelligence-/blob/main/src/index.js): `src/index.js`
- [REST endpoints](https://github.com/nandinii26/github-intelligence-/blob/main/src/api/routes.js): `src/api/routes.js`

### GitHub data

- [GitHub retrieval](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/githubClient.js): `src/github/githubClient.js`

### Issue intelligence

- [Issue analysis](https://github.com/nandinii26/github-intelligence-/blob/main/src/nlp/analysis.js): `src/nlp/analysis.js`
- [Health assessment](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js): `src/github/issueDetector.js`
- [Code quality checks](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js): `src/github/issueDetector.js`
- [Documentation checks](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js): `src/github/issueDetector.js`
- [Dependency checks](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js): `src/github/issueDetector.js`
- [Process checks](https://github.com/nandinii26/github-intelligence-/blob/main/src/github/issueDetector.js): `src/github/issueDetector.js`

### Persistence

- [JSON cache](https://github.com/nandinii26/github-intelligence-/blob/main/src/storage/db.js): `src/storage/db.js`

### Other components

- **Repository user**
- **GitHub API**
- **OpenAI embeddings**

## Connections

- Repository user → Dashboard UI: uses (evidence: `README.md`)
- Dashboard UI → HTTP server: sends requests (evidence: `public/app.js`)
- HTTP server → REST endpoints: mounts routes (evidence: `src/index.js`)
- HTTP server → Dashboard UI: serves assets (evidence: `src/index.js`)
- REST endpoints → GitHub retrieval: fetches repository data (evidence: `src/api/routes.js`)
- REST endpoints → Issue analysis: analyzes issues (evidence: `src/api/routes.js`)
- REST endpoints → Health assessment: assesses repository health (evidence: `src/api/routes.js`)
- GitHub retrieval → GitHub API: retrieves data (evidence: `src/github/githubClient.js`)
- Issue analysis → OpenAI embeddings: requests embeddings (evidence: `src/nlp/analysis.js`)
- Health assessment → Code quality checks: runs checks (evidence: `src/github/issueDetector.js`)
- Health assessment → Documentation checks: runs checks (evidence: `src/github/issueDetector.js`)
- Health assessment → Dependency checks: runs checks (evidence: `src/github/issueDetector.js`)
- Health assessment → Process checks: runs checks (evidence: `src/github/issueDetector.js`)
- JSON cache → Repository user
