# sukumar5705/devintel architecture

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

- Interactive diagram: https://gitdiagram.com/sukumar5705/devintel
- Repository: https://github.com/sukumar5705/devintel

## Overview

Developer Intelligence Platform turns a GitHub username into a portfolio analysis, recruiter assessment, resume evidence, and career roadmap. The main flow is username submission, GitHub data collection, portfolio enrichment and AI evaluation, persistence, then dashboard or recruiter-facing views. The README documents additional analysis capabilities represented here, though not every subsystem was sampled. Edges are limited to shown calls, indexed references, and documented API relationships; dashed links mark the frontend/backend boundary documented by the README.

Main entry points: [`backend/src/services/analysis.service.js`](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/analysis.service.js) (Analysis orchestrator), [`backend/src/controllers/github.controller.js`](https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/github.controller.js) (Profile controller), [`backend/src/controllers/ai.controller.js`](https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/ai.controller.js) (AI report controller), [`backend/src/repositories/analysis.repository.js`](https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/analysis.repository.js) (Analysis repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["User experience"]
  node_username["Username search"]
  node_analyzing["Analysis progress<br/>[AnalyzingPage.tsx]"]
  node_profile_hooks["Profile data hooks<br/>[useProfileData.ts]"]
  node_github_client["GitHub API client<br/>[github.ts]"]
  node_dashboard["Developer dashboard<br/>[DashboardPage.tsx]"]
  node_recruiter_view["Recruiter view<br/>[RecruiterPage.tsx]"]
  node_career_views["Resume and roadmap<br/>[ResumePage.tsx]"]
end

subgraph group_api["API and workflows"]
  node_api_app["Express API<br/>[app.js]"]
  node_github_routes["GitHub routes<br/>[github.routes.js]"]
  node_github_controller["Profile controller"]
  node_recruiter_controller["Recruiter controller"]
  node_ai_controller["AI report controller<br/>[ai.controller.js]"]
end

subgraph group_analysis["Portfolio intelligence"]
  node_analysis_orchestrator["Analysis orchestrator"]
  node_github_data["GitHub data collection"]
  node_repo_enrichment["Repository enrichment"]
  node_portfolio_context["Portfolio context"]
  node_repo_intelligence["Project intelligence"]
  node_skill_signals["Skill extraction"]
  node_repo_selection["Repository selection<br/>[repoSelection.js]"]
  node_llm_analysis["AI evaluation"]
  node_profile_mapper["Analysis response mapping"]
  node_github_service["GitHub service<br/>[github.service.js]"]
end

subgraph group_persistence["Persistence"]
  node_profile_repo["Profile repository"]
  node_skill_repo["Skill repository"]
  node_analysis_repo["Analysis repository"]
  node_repository_repo["Repository repository"]
  node_database[("PostgreSQL<br/>[db.js]")]
end

node_developer(("Developer"))
node_gemini{{"Gemini AI"}}

node_developer -->|"submits username"| node_username
node_username -->|"opens analysis"| node_analyzing
node_analyzing -->|"starts and polls"| node_profile_hooks
node_profile_hooks -->|"calls API functions"| node_github_client
node_github_client -.->|"requests analysis"| node_github_routes
node_api_app -->|"mounts routes"| node_github_routes
node_github_routes -->|"dispatches requests"| node_github_controller
node_github_controller -->|"runs analysis"| node_analysis_orchestrator
node_analysis_orchestrator -->|"fetches profile data"| node_github_data
node_analysis_orchestrator -->|"enriches repositories"| node_repo_enrichment
node_analysis_orchestrator -->|"builds context"| node_portfolio_context
node_analysis_orchestrator -->|"selects evidence"| node_repo_selection
node_analysis_orchestrator -->|"requests evaluation"| node_llm_analysis
node_github_data -->|"uses GitHub access"| node_github_service
node_portfolio_context -->|"builds project signals"| node_repo_intelligence
node_portfolio_context -->|"extracts skills"| node_skill_signals
node_portfolio_context -->|"ranks candidates"| node_repo_selection
node_llm_analysis -->|"requests AI output"| node_gemini
node_analysis_orchestrator -->|"persists skills"| node_skill_repo
node_analysis_orchestrator -->|"persists evaluation"| node_analysis_repo
node_github_controller -->|"loads profile"| node_profile_repo
node_github_controller -->|"loads skills"| node_skill_repo
node_github_controller -->|"loads analysis"| node_analysis_repo
node_github_controller -->|"loads repositories"| node_repository_repo
node_github_controller -->|"maps report"| node_profile_mapper
node_recruiter_controller -->|"analyzes missing profiles"| node_analysis_orchestrator
node_recruiter_controller -->|"maps recruiter report"| node_profile_mapper
node_ai_controller -->|"maps AI report data"| node_profile_mapper
node_profile_repo -->|"queries"| node_database
node_skill_repo -->|"queries"| node_database
node_analysis_repo -->|"stores and reads analysis"| node_database
node_repository_repo -->|"queries"| node_database
node_profile_hooks -.->|"provides profile data"| node_dashboard
node_dashboard -.->|"opens career views"| node_career_views
node_recruiter_controller -->|"loads profile"| node_profile_repo
node_recruiter_controller -->|"loads history"| node_analysis_repo
node_ai_controller -->|"loads profile"| node_profile_repo
node_ai_controller -->|"loads skills"| node_skill_repo
node_ai_controller -->|"loads analysis"| node_analysis_repo
node_ai_controller -->|"loads repositories"| node_repository_repo

click node_username "https://github.com/sukumar5705/devintel/blob/main/frontend/src/components/landing/UsernameSearchForm.tsx"
click node_analyzing "https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/AnalyzingPage.tsx"
click node_profile_hooks "https://github.com/sukumar5705/devintel/blob/main/frontend/src/hooks/useProfileData.ts"
click node_github_client "https://github.com/sukumar5705/devintel/blob/main/frontend/src/api/github.ts"
click node_dashboard "https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_recruiter_view "https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/RecruiterPage.tsx"
click node_career_views "https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/ResumePage.tsx"
click node_api_app "https://github.com/sukumar5705/devintel/blob/main/backend/src/app.js"
click node_github_routes "https://github.com/sukumar5705/devintel/blob/main/backend/src/routes/github.routes.js"
click node_github_controller "https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/github.controller.js"
click node_recruiter_controller "https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/recruiter.controller.js"
click node_ai_controller "https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/ai.controller.js"
click node_analysis_orchestrator "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/analysis.service.js"
click node_github_data "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/githubData.service.js"
click node_repo_enrichment "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/repoEnrichment.service.js"
click node_portfolio_context "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/portfolioContext.service.js"
click node_repo_intelligence "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/repoIntelligence.service.js"
click node_skill_signals "https://github.com/sukumar5705/devintel/blob/main/backend/src/evidence/skillSignalExtractor.js"
click node_repo_selection "https://github.com/sukumar5705/devintel/blob/main/backend/src/evidence/repoSelection.js"
click node_llm_analysis "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/llmAnalysis.service.js"
click node_profile_mapper "https://github.com/sukumar5705/devintel/blob/main/backend/src/mappers/profileAnalysis.mapper.js"
click node_profile_repo "https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/profile.repository.js"
click node_skill_repo "https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/skill.repository.js"
click node_analysis_repo "https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/analysis.repository.js"
click node_repository_repo "https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/repository.repository.js"
click node_database "https://github.com/sukumar5705/devintel/blob/main/backend/src/config/db.js"
click node_github_service "https://github.com/sukumar5705/devintel/blob/main/backend/src/services/github.service.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_username,node_analyzing,node_profile_hooks,node_github_client,node_dashboard,node_recruiter_view,node_career_views toneBlue
class node_api_app,node_github_routes,node_github_controller,node_recruiter_controller,node_ai_controller toneAmber
class node_analysis_orchestrator,node_github_data,node_repo_enrichment,node_portfolio_context,node_repo_intelligence,node_skill_signals,node_repo_selection,node_llm_analysis,node_profile_mapper,node_github_service toneMint
class node_profile_repo,node_skill_repo,node_analysis_repo,node_repository_repo,node_database toneRose
class node_developer,node_gemini toneIndigo
```

## Components

### User experience

- [Username search](https://github.com/sukumar5705/devintel/blob/main/frontend/src/components/landing/UsernameSearchForm.tsx): `frontend/src/components/landing/UsernameSearchForm.tsx`
- [Analysis progress](https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/AnalyzingPage.tsx): `frontend/src/pages/AnalyzingPage.tsx`
- [Profile data hooks](https://github.com/sukumar5705/devintel/blob/main/frontend/src/hooks/useProfileData.ts): `frontend/src/hooks/useProfileData.ts`
- [GitHub API client](https://github.com/sukumar5705/devintel/blob/main/frontend/src/api/github.ts): `frontend/src/api/github.ts`
- [Developer dashboard](https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Recruiter view](https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/RecruiterPage.tsx): `frontend/src/pages/RecruiterPage.tsx`
- [Resume and roadmap](https://github.com/sukumar5705/devintel/blob/main/frontend/src/pages/ResumePage.tsx): `frontend/src/pages/ResumePage.tsx`

### API and workflows

- [Express API](https://github.com/sukumar5705/devintel/blob/main/backend/src/app.js): `backend/src/app.js`
- [GitHub routes](https://github.com/sukumar5705/devintel/blob/main/backend/src/routes/github.routes.js): `backend/src/routes/github.routes.js`
- [Profile controller](https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/github.controller.js): `backend/src/controllers/github.controller.js`
- [Recruiter controller](https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/recruiter.controller.js): `backend/src/controllers/recruiter.controller.js`
- [AI report controller](https://github.com/sukumar5705/devintel/blob/main/backend/src/controllers/ai.controller.js): `backend/src/controllers/ai.controller.js`

### Portfolio intelligence

- [Analysis orchestrator](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/analysis.service.js): `backend/src/services/analysis.service.js`
- [GitHub data collection](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/githubData.service.js): `backend/src/services/githubData.service.js`
- [Repository enrichment](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/repoEnrichment.service.js): `backend/src/services/repoEnrichment.service.js`
- [Portfolio context](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/portfolioContext.service.js): `backend/src/services/portfolioContext.service.js`
- [Project intelligence](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/repoIntelligence.service.js): `backend/src/services/repoIntelligence.service.js`
- [Skill extraction](https://github.com/sukumar5705/devintel/blob/main/backend/src/evidence/skillSignalExtractor.js): `backend/src/evidence/skillSignalExtractor.js`
- [Repository selection](https://github.com/sukumar5705/devintel/blob/main/backend/src/evidence/repoSelection.js): `backend/src/evidence/repoSelection.js`
- [AI evaluation](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/llmAnalysis.service.js): `backend/src/services/llmAnalysis.service.js`
- [Analysis response mapping](https://github.com/sukumar5705/devintel/blob/main/backend/src/mappers/profileAnalysis.mapper.js): `backend/src/mappers/profileAnalysis.mapper.js`
- [GitHub service](https://github.com/sukumar5705/devintel/blob/main/backend/src/services/github.service.js): `backend/src/services/github.service.js`

### Persistence

- [Profile repository](https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/profile.repository.js): `backend/src/repositories/profile.repository.js`
- [Skill repository](https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/skill.repository.js): `backend/src/repositories/skill.repository.js`
- [Analysis repository](https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/analysis.repository.js): `backend/src/repositories/analysis.repository.js`
- [Repository repository](https://github.com/sukumar5705/devintel/blob/main/backend/src/repositories/repository.repository.js): `backend/src/repositories/repository.repository.js`
- [PostgreSQL](https://github.com/sukumar5705/devintel/blob/main/backend/src/config/db.js): `backend/src/config/db.js`

### Other components

- **Developer**
- **Gemini AI**

## Connections

- Developer → Username search: submits username (evidence: `frontend/src/components/landing/UsernameSearchForm.tsx`)
- Username search → Analysis progress: opens analysis (evidence: `frontend/src/components/landing/UsernameSearchForm.tsx`)
- Analysis progress → Profile data hooks: starts and polls (evidence: `frontend/src/pages/AnalyzingPage.tsx`)
- Profile data hooks → GitHub API client: calls API functions (evidence: `frontend/src/hooks/useProfileData.ts`)
- GitHub API client → GitHub routes: requests analysis (evidence: `README.md`)
- Express API → GitHub routes: mounts routes (evidence: `backend/src/app.js`)
- GitHub routes → Profile controller: dispatches requests (evidence: `backend/src/routes/github.routes.js`)
- Profile controller → Analysis orchestrator: runs analysis (evidence: `backend/src/controllers/github.controller.js`)
- Analysis orchestrator → GitHub data collection: fetches profile data (evidence: `backend/src/services/analysis.service.js`)
- Analysis orchestrator → Repository enrichment: enriches repositories (evidence: `backend/src/services/analysis.service.js`)
- Analysis orchestrator → Portfolio context: builds context (evidence: `backend/src/services/analysis.service.js`)
- Analysis orchestrator → Repository selection: selects evidence (evidence: `backend/src/services/analysis.service.js`)
- Analysis orchestrator → AI evaluation: requests evaluation (evidence: `backend/src/services/analysis.service.js`)
- GitHub data collection → GitHub service: uses GitHub access
- Portfolio context → Project intelligence: builds project signals (evidence: `backend/src/services/portfolioContext.service.js`)
- Portfolio context → Skill extraction: extracts skills (evidence: `backend/src/services/portfolioContext.service.js`)
- Portfolio context → Repository selection: ranks candidates (evidence: `backend/src/services/portfolioContext.service.js`)
- AI evaluation → Gemini AI: requests AI output (evidence: `backend/src/services/llmAnalysis.service.js`)
- Analysis orchestrator → Skill repository: persists skills (evidence: `backend/src/services/analysis.service.js`)
- Analysis orchestrator → Analysis repository: persists evaluation (evidence: `backend/src/services/analysis.service.js`)
- Profile controller → Profile repository: loads profile (evidence: `backend/src/controllers/github.controller.js`)
- Profile controller → Skill repository: loads skills (evidence: `backend/src/controllers/github.controller.js`)
- Profile controller → Analysis repository: loads analysis (evidence: `backend/src/controllers/github.controller.js`)
- Profile controller → Repository repository: loads repositories (evidence: `backend/src/controllers/github.controller.js`)
- Profile controller → Analysis response mapping: maps report (evidence: `backend/src/controllers/github.controller.js`)
- Recruiter controller → Analysis orchestrator: analyzes missing profiles (evidence: `backend/src/controllers/recruiter.controller.js`)
- Recruiter controller → Analysis response mapping: maps recruiter report (evidence: `backend/src/controllers/recruiter.controller.js`)
- AI report controller → Analysis response mapping: maps AI report data (evidence: `backend/src/controllers/ai.controller.js`)
- Profile repository → PostgreSQL: queries (evidence: `backend/src/repositories/profile.repository.js`)
- Skill repository → PostgreSQL: queries (evidence: `backend/src/repositories/skill.repository.js`)
- Analysis repository → PostgreSQL: stores and reads analysis (evidence: `backend/src/repositories/analysis.repository.js`)
- Repository repository → PostgreSQL: queries (evidence: `backend/src/repositories/repository.repository.js`)
- Profile data hooks → Developer dashboard: provides profile data
- Developer dashboard → Resume and roadmap: opens career views
- Recruiter controller → Profile repository: loads profile (evidence: `backend/src/controllers/recruiter.controller.js`)
- Recruiter controller → Analysis repository: loads history (evidence: `backend/src/controllers/recruiter.controller.js`)
- AI report controller → Profile repository: loads profile (evidence: `backend/src/controllers/ai.controller.js`)
- AI report controller → Skill repository: loads skills (evidence: `backend/src/controllers/ai.controller.js`)
- AI report controller → Analysis repository: loads analysis (evidence: `backend/src/controllers/ai.controller.js`)
- AI report controller → Repository repository: loads repositories (evidence: `backend/src/controllers/ai.controller.js`)
