# jegmc/reposummary architecture

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

- Interactive diagram: https://gitdiagram.com/jegmc/reposummary
- Repository: https://github.com/jegmc/reposummary

## Overview

RepoSummary is an ASP.NET Razor Pages product that turns a GitHub repository into evidence-backed analysis and optional career artifacts. The main flow is repository input → GitHub analysis and source inspection → saved analysis and rendered results; generation, Q&A, comparison, portfolio, profile, history, exports, and the browser extension are supporting capabilities. Several page and service implementations are unsampled, so their documented feature links are cited to the README rather than presented as inspected call chains.

Main entry points: [`RepoSummary/Services/GitHubRepositoryService.cs`](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/GitHubRepositoryService.cs) (GitHub fetcher), [`RepoSummary/Models/GitHubRepoAnalysisResult.cs`](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GitHubRepoAnalysisResult.cs) (Analysis result), [`RepoSummary/Pages/Analysis.cshtml.cs`](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Pages/Analysis.cshtml.cs) (Analysis view), [`RepoSummary/Services/AiCareerArtifactGenerator.cs`](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/AiCareerArtifactGenerator.cs) (Career generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_index["Repository input<br/>[Index.cshtml.cs]"]
  node_analysis_page["Analysis view<br/>[Analysis.cshtml.cs]"]
  node_library_pages["Library views"]
  node_extension["GitHub extension<br/>[content.js]"]
end

subgraph group_analysis["Repository analysis"]
  node_url_parser["URL parser<br/>[GitHubUrlParser.cs]"]
  node_github_service["GitHub fetcher"]
  node_repo_analyzer["Maturity analyzer<br/>[RepoAnalyzer.cs]"]
  node_manifest_parser["Manifest parser<br/>[ManifestParser.cs]"]
  node_source_inspection["Source inspection"]
  node_diagrams["Diagrams"]
  node_renderers["Content renderers"]
  node_analysis_result["Analysis result"]
end

subgraph group_career["Career tools"]
  node_generator["Career generator"]
  node_generation_options["Generation options"]
  node_artifact["Career artifact"]
  node_exports["Export builder<br/>[ExportBuilder.cs]"]
end

subgraph group_state["Persistence and settings"]
  node_analysis_store["Analysis store<br/>[AnalysisStore.cs]"]
  node_database[("SQLite database<br/>[AppDbContext.cs]")]
  node_key_stores["Credential stores"]
end

subgraph group_integrations["External integrations"]
  node_github{{"GitHub API"}}
  node_ai_providers{{"AI providers"}}
end

node_user(("User"))

node_user -->|"enters repo"| node_index
node_index -->|"parses input"| node_url_parser
node_analysis_page -->|"requests analysis"| node_github_service
node_github_service -->|"fetches repository data"| node_github
node_github_service -->|"analyzes repository"| node_repo_analyzer
node_github_service -->|"parses manifests"| node_manifest_parser
node_github_service -->|"selects source files"| node_source_inspection
node_source_inspection -->|"adds source evidence"| node_analysis_result
node_repo_analyzer -->|"builds evidence"| node_analysis_result
node_analysis_page -->|"displays analysis"| node_analysis_result
node_analysis_result -->|"feeds diagrams"| node_diagrams
node_analysis_result -->|"renders README and tree"| node_renderers
node_analysis_page -->|"requests artifacts"| node_generator
node_analysis_page -->|"sets generation options"| node_generation_options
node_generator -->|"generates with"| node_ai_providers
node_generator -->|"returns artifacts"| node_artifact
node_library_pages -->|"synthesizes portfolio"| node_generator
node_analysis_page -.->|"saves analysis"| node_analysis_store
node_analysis_store -->|"reads and writes"| node_database
node_library_pages -->|"uses saved analyses"| node_analysis_store
node_library_pages -->|"exports reports"| node_exports
node_exports -->|"formats analysis"| node_analysis_result
node_user -->|"configures credentials"| node_key_stores
node_key_stores -.->|"supplies GitHub token"| node_github_service
node_key_stores -->|"supplies AI keys"| node_generator
node_extension -->|"offers GitHub shortcut"| node_user

click node_index "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Pages/Index.cshtml.cs"
click node_analysis_page "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Pages/Analysis.cshtml.cs"
click node_library_pages "https://github.com/jegmc/reposummary/tree/main/RepoSummary/Pages"
click node_extension "https://github.com/jegmc/reposummary/blob/main/browser-extension/content.js"
click node_url_parser "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/GitHubUrlParser.cs"
click node_github_service "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/GitHubRepositoryService.cs"
click node_repo_analyzer "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/RepoAnalyzer.cs"
click node_manifest_parser "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ManifestParser.cs"
click node_source_inspection "https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services"
click node_diagrams "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ArchitectureDiagram.cs"
click node_renderers "https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services"
click node_analysis_result "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GitHubRepoAnalysisResult.cs"
click node_generator "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/AiCareerArtifactGenerator.cs"
click node_generation_options "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GenerationOptions.cs"
click node_artifact "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GeneratedCareerArtifact.cs"
click node_exports "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ExportBuilder.cs"
click node_analysis_store "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/AnalysisStore.cs"
click node_database "https://github.com/jegmc/reposummary/blob/main/RepoSummary/Data/AppDbContext.cs"
click node_key_stores "https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services"

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_index,node_analysis_page,node_library_pages,node_extension,node_user toneBlue
class node_url_parser,node_github_service,node_repo_analyzer,node_manifest_parser,node_source_inspection,node_diagrams,node_renderers,node_analysis_result toneAmber
class node_generator,node_generation_options,node_artifact,node_exports toneMint
class node_analysis_store,node_database,node_key_stores toneRose
class node_github,node_ai_providers toneIndigo
```

## Components

### Web experience

- [Repository input](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Pages/Index.cshtml.cs): `RepoSummary/Pages/Index.cshtml.cs`
- [Analysis view](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Pages/Analysis.cshtml.cs): `RepoSummary/Pages/Analysis.cshtml.cs`
- [Library views](https://github.com/jegmc/reposummary/tree/main/RepoSummary/Pages): `RepoSummary/Pages`
- [GitHub extension](https://github.com/jegmc/reposummary/blob/main/browser-extension/content.js): `browser-extension/content.js`

### Repository analysis

- [URL parser](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/GitHubUrlParser.cs): `RepoSummary/Services/GitHubUrlParser.cs`
- [GitHub fetcher](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/GitHubRepositoryService.cs): `RepoSummary/Services/GitHubRepositoryService.cs`
- [Maturity analyzer](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/RepoAnalyzer.cs): `RepoSummary/Services/RepoAnalyzer.cs`
- [Manifest parser](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ManifestParser.cs): `RepoSummary/Services/ManifestParser.cs`
- [Source inspection](https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services): `RepoSummary/Services`
- [Diagrams](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ArchitectureDiagram.cs): `RepoSummary/Services/ArchitectureDiagram.cs`
- [Content renderers](https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services): `RepoSummary/Services`
- [Analysis result](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GitHubRepoAnalysisResult.cs): `RepoSummary/Models/GitHubRepoAnalysisResult.cs`

### Career tools

- [Career generator](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/AiCareerArtifactGenerator.cs): `RepoSummary/Services/AiCareerArtifactGenerator.cs`
- [Generation options](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GenerationOptions.cs): `RepoSummary/Models/GenerationOptions.cs`
- [Career artifact](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Models/GeneratedCareerArtifact.cs): `RepoSummary/Models/GeneratedCareerArtifact.cs`
- [Export builder](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/ExportBuilder.cs): `RepoSummary/Services/ExportBuilder.cs`

### Persistence and settings

- [Analysis store](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Services/AnalysisStore.cs): `RepoSummary/Services/AnalysisStore.cs`
- [SQLite database](https://github.com/jegmc/reposummary/blob/main/RepoSummary/Data/AppDbContext.cs): `RepoSummary/Data/AppDbContext.cs`
- [Credential stores](https://github.com/jegmc/reposummary/tree/main/RepoSummary/Services): `RepoSummary/Services`

### External integrations

- **GitHub API**
- **AI providers**

### Other components

- **User**

## Connections

- User → Repository input: enters repo (evidence: `README.md`)
- Repository input → URL parser: parses input (evidence: `RepoSummary/Pages/Index.cshtml.cs`)
- Analysis view → GitHub fetcher: requests analysis (evidence: `RepoSummary/Pages/Analysis.cshtml.cs`)
- GitHub fetcher → GitHub API: fetches repository data (evidence: `README.md`)
- GitHub fetcher → Maturity analyzer: analyzes repository (evidence: `RepoSummary/Services/GitHubRepositoryService.cs`)
- GitHub fetcher → Manifest parser: parses manifests (evidence: `RepoSummary/Services/GitHubRepositoryService.cs`)
- GitHub fetcher → Source inspection: selects source files (evidence: `RepoSummary/Services/GitHubRepositoryService.cs`)
- Source inspection → Analysis result: adds source evidence (evidence: `RepoSummary/Models/GitHubRepoAnalysisResult.cs`)
- Maturity analyzer → Analysis result: builds evidence (evidence: `RepoSummary/Services/RepoAnalyzer.cs`)
- Analysis view → Analysis result: displays analysis (evidence: `RepoSummary/Pages/Analysis.cshtml.cs`)
- Analysis result → Diagrams: feeds diagrams (evidence: `README.md`)
- Analysis result → Content renderers: renders README and tree (evidence: `README.md`)
- Analysis view → Career generator: requests artifacts (evidence: `RepoSummary/Pages/Analysis.cshtml.cs`)
- Analysis view → Generation options: sets generation options (evidence: `RepoSummary/Pages/Analysis.cshtml.cs`)
- Career generator → AI providers: generates with (evidence: `RepoSummary/Services/AiCareerArtifactGenerator.cs`)
- Career generator → Career artifact: returns artifacts (evidence: `RepoSummary/Services/AiCareerArtifactGenerator.cs`)
- Library views → Career generator: synthesizes portfolio (evidence: `README.md`)
- Analysis view → Analysis store: saves analysis
- Analysis store → SQLite database: reads and writes (evidence: `RepoSummary/Services/AnalysisStore.cs`)
- Library views → Analysis store: uses saved analyses (evidence: `README.md`)
- Library views → Export builder: exports reports (evidence: `README.md`)
- Export builder → Analysis result: formats analysis
- User → Credential stores: configures credentials (evidence: `README.md`)
- Credential stores → GitHub fetcher: supplies GitHub token (evidence: `RepoSummary/Services/GitHubRepositoryService.cs`)
- Credential stores → Career generator: supplies AI keys (evidence: `RepoSummary/Services/AiCareerArtifactGenerator.cs`)
- GitHub extension → User: offers GitHub shortcut (evidence: `README.md`)
