# justanothercodingirl/fairresume-ai architecture

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

## Overview

FairRecruit AI combines a resume workspace with research-oriented recruitment-model auditing. The resume workflow is project and resume management, then analysis results such as ATS, quality, bias, anonymization, and rewrite; the research workspace separately exposes dataset discovery, classifier model runs, demographic fairness analysis, and WEAT experiments. The Angular routes and API gateway connect the UI to FastAPI, whose feature services are currently scaffolded and often return not-implemented behavior. README and excerpts establish the major boundaries; unsampled implementation details and some runtime links are left out.

Main entry points: [`backend/app/api/v1/router.py`](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/router.py) (API v1 router), [`frontend/src/app/app.routes.ts`](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/app.routes.ts) (Feature routes), [`backend/app/services/repository.py`](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/repository.py) (Repositories), [`frontend/src/app/core/services/api.service.ts`](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/core/services/api.service.ts) (API gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular workspace"]
  node_app["App shell<br/>[app.ts]"]
  node_routes["Feature routes<br/>[app.routes.ts]"]
  node_api_client["API gateway<br/>[api.service.ts]"]
  node_landing["Landing page<br/>[landing.ts]"]
  node_dashboard["Research dashboard<br/>[dashboard.ts]"]
  node_dataset_ui["Dataset explorer"]
  node_model_ui["Model laboratory<br/>[model-lab-page.ts]"]
  node_fairness_ui["Fairness analysis<br/>[fairness-page.ts]"]
  node_weat_ui["WEAT laboratory<br/>[weat-page.ts]"]
end

subgraph group_api["API and resume workflow"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_api_router["API v1 router<br/>[router.py]"]
  node_projects["Project management<br/>[projects.py]"]
  node_resumes["Resume upload and retrieval<br/>[resumes.py]"]
  node_analysis["Resume analysis<br/>[analysis.py]"]
  node_parser["Text extraction<br/>[text_extraction.py]"]
  node_interfaces["Service interfaces<br/>[interfaces.py]"]
  node_stubs["Stub adapters<br/>[stubs.py]"]
end

subgraph group_research["Research audit features"]
  node_datasets["Dataset catalog<br/>[service.py]"]
  node_model_lab["Classifier training<br/>[service.py]"]
  node_fairness["Outcome fairness<br/>[service.py]"]
  node_fairness_metrics["Fairness metrics<br/>[metrics.py]"]
  node_weat["Embedding association test<br/>[service.py]"]
  node_embedding_provider["Embedding provider"]
  node_evaluation["Classifier evaluation<br/>[metrics.py]"]
  node_preprocessing["ML preprocessing<br/>[pipeline.py]"]
  node_training["Model trainer<br/>[trainer.py]"]
end

subgraph group_persistence["Resume persistence"]
  node_repo["Repositories<br/>[repository.py]"]
  node_db[("SQL database<br/>[session.py]")]
  node_resume_model["Resume records and versions<br/>[resume.py]"]
  node_project_model["Project records<br/>[project.py]"]
end

node_user(("Job seeker / researcher"))

node_user -->|"uses"| node_app
node_app -->|"hosts routes"| node_routes
node_routes -->|"loads"| node_landing
node_routes -->|"loads"| node_dashboard
node_routes -->|"loads"| node_dataset_ui
node_routes -->|"loads"| node_model_ui
node_routes -->|"loads"| node_fairness_ui
node_routes -->|"loads"| node_weat_ui
node_user -.->|"requests workspace data"| node_api_client
node_api_client -->|"HTTP requests"| node_api_app
node_api_app -->|"mounts"| node_api_router
node_api_router -->|"dispatches"| node_projects
node_api_router -->|"dispatches"| node_resumes
node_api_router -->|"dispatches"| node_analysis
node_api_router -->|"dispatches"| node_datasets
node_api_router -->|"dispatches"| node_model_lab
node_api_router -->|"dispatches"| node_fairness
node_api_router -->|"dispatches"| node_weat
node_resumes -.->|"extracts text"| node_parser
node_analysis -.->|"uses services"| node_interfaces
node_interfaces -->|"bound adapters"| node_stubs
node_projects -.->|"persists projects"| node_repo
node_resumes -.->|"persists resumes"| node_repo
node_analysis -.->|"loads resumes"| node_repo
node_repo -->|"queries"| node_db
node_repo -->|"reads and writes"| node_resume_model
node_repo -->|"reads and writes"| node_project_model
node_api_app -->|"initializes"| node_db
node_dataset_ui -.->|"uses gateway"| node_api_client
node_model_ui -.->|"uses gateway"| node_api_client
node_fairness_ui -.->|"uses gateway"| node_api_client
node_weat_ui -.->|"uses gateway"| node_api_client
node_datasets -->|"serves catalog"| node_datasets
node_model_lab -.->|"training pipeline"| node_preprocessing
node_model_lab -.->|"trains model"| node_training
node_model_lab -.->|"evaluates classifier"| node_evaluation
node_fairness -.->|"computes metrics"| node_fairness_metrics
node_weat -.->|"gets embeddings"| node_embedding_provider

click node_app "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/app.ts"
click node_routes "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/app.routes.ts"
click node_api_client "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/core/services/api.service.ts"
click node_landing "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/landing/landing.ts"
click node_dashboard "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/dashboard/dashboard.ts"
click node_dataset_ui "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/dataset-explorer/pages/dataset-explorer-page.ts"
click node_model_ui "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/model-lab/pages/model-lab-page.ts"
click node_fairness_ui "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/fairness/pages/fairness-page.ts"
click node_weat_ui "https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/weat/pages/weat-page.ts"
click node_api_app "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/main.py"
click node_api_router "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/router.py"
click node_projects "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/projects.py"
click node_resumes "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/resumes.py"
click node_analysis "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/analysis.py"
click node_parser "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/parsing/text_extraction.py"
click node_interfaces "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/interfaces.py"
click node_stubs "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/stubs.py"
click node_repo "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/repository.py"
click node_db "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/db/session.py"
click node_resume_model "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/models/resume.py"
click node_project_model "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/models/project.py"
click node_datasets "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/datasets/service.py"
click node_model_lab "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/model_lab/service.py"
click node_fairness "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/fairness/service.py"
click node_fairness_metrics "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/fairness/metrics.py"
click node_weat "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/weat/service.py"
click node_embedding_provider "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/weat/embedding_provider.py"
click node_evaluation "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/evaluation/metrics.py"
click node_preprocessing "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/preprocessing/pipeline.py"
click node_training "https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/training/trainer.py"

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_routes,node_api_client,node_landing,node_dashboard,node_dataset_ui,node_model_ui,node_fairness_ui,node_weat_ui toneBlue
class node_api_app,node_api_router,node_projects,node_resumes,node_analysis,node_parser,node_interfaces,node_stubs toneAmber
class node_datasets,node_model_lab,node_fairness,node_fairness_metrics,node_weat,node_embedding_provider,node_evaluation,node_preprocessing,node_training toneMint
class node_repo,node_db,node_resume_model,node_project_model toneRose
class node_user toneIndigo
```

## Components

### Angular workspace

- [App shell](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/app.ts): `frontend/src/app/app.ts`
- [Feature routes](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`
- [API gateway](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/core/services/api.service.ts): `frontend/src/app/core/services/api.service.ts`
- [Landing page](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/landing/landing.ts): `frontend/src/app/features/landing/landing.ts`
- [Research dashboard](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/dashboard/dashboard.ts): `frontend/src/app/features/dashboard/dashboard.ts`
- [Dataset explorer](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/dataset-explorer/pages/dataset-explorer-page.ts): `frontend/src/app/features/dataset-explorer/pages/dataset-explorer-page.ts`
- [Model laboratory](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/model-lab/pages/model-lab-page.ts): `frontend/src/app/features/model-lab/pages/model-lab-page.ts`
- [Fairness analysis](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/fairness/pages/fairness-page.ts): `frontend/src/app/features/fairness/pages/fairness-page.ts`
- [WEAT laboratory](https://github.com/justanothercodingirl/fairresume-ai/blob/main/frontend/src/app/features/weat/pages/weat-page.ts): `frontend/src/app/features/weat/pages/weat-page.ts`

### API and resume workflow

- [FastAPI application](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [API v1 router](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/router.py): `backend/app/api/v1/router.py`
- [Project management](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/projects.py): `backend/app/api/v1/endpoints/projects.py`
- [Resume upload and retrieval](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/resumes.py): `backend/app/api/v1/endpoints/resumes.py`
- [Resume analysis](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/api/v1/endpoints/analysis.py): `backend/app/api/v1/endpoints/analysis.py`
- [Text extraction](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/parsing/text_extraction.py): `backend/app/services/parsing/text_extraction.py`
- [Service interfaces](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/interfaces.py): `backend/app/services/interfaces.py`
- [Stub adapters](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/stubs.py): `backend/app/services/stubs.py`

### Research audit features

- [Dataset catalog](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/datasets/service.py): `backend/app/features/datasets/service.py`
- [Classifier training](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/model_lab/service.py): `backend/app/features/model_lab/service.py`
- [Outcome fairness](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/fairness/service.py): `backend/app/features/fairness/service.py`
- [Fairness metrics](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/fairness/metrics.py): `backend/app/features/fairness/metrics.py`
- [Embedding association test](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/weat/service.py): `backend/app/features/weat/service.py`
- [Embedding provider](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/features/weat/embedding_provider.py): `backend/app/features/weat/embedding_provider.py`
- [Classifier evaluation](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/evaluation/metrics.py): `backend/app/ml/evaluation/metrics.py`
- [ML preprocessing](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/preprocessing/pipeline.py): `backend/app/ml/preprocessing/pipeline.py`
- [Model trainer](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/ml/training/trainer.py): `backend/app/ml/training/trainer.py`

### Resume persistence

- [Repositories](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/services/repository.py): `backend/app/services/repository.py`
- [SQL database](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/db/session.py): `backend/app/db/session.py`
- [Resume records and versions](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/models/resume.py): `backend/app/models/resume.py`
- [Project records](https://github.com/justanothercodingirl/fairresume-ai/blob/main/backend/app/models/project.py): `backend/app/models/project.py`

### Other components

- **Job seeker / researcher**

## Connections

- Job seeker / researcher → App shell: uses
- App shell → Feature routes: hosts routes (evidence: `frontend/src/app/app.ts`)
- Feature routes → Landing page: loads (evidence: `frontend/src/app/app.routes.ts`)
- Feature routes → Research dashboard: loads (evidence: `frontend/src/app/app.routes.ts`)
- Feature routes → Dataset explorer: loads (evidence: `frontend/src/app/app.routes.ts`)
- Feature routes → Model laboratory: loads (evidence: `frontend/src/app/app.routes.ts`)
- Feature routes → Fairness analysis: loads (evidence: `frontend/src/app/app.routes.ts`)
- Feature routes → WEAT laboratory: loads (evidence: `frontend/src/app/app.routes.ts`)
- Job seeker / researcher → API gateway: requests workspace data
- API gateway → FastAPI application: HTTP requests
- FastAPI application → API v1 router: mounts (evidence: `backend/app/main.py`)
- API v1 router → Project management: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Resume upload and retrieval: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Resume analysis: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Dataset catalog: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Classifier training: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Outcome fairness: dispatches (evidence: `backend/app/api/v1/router.py`)
- API v1 router → Embedding association test: dispatches (evidence: `backend/app/api/v1/router.py`)
- Resume upload and retrieval → Text extraction: extracts text
- Resume analysis → Service interfaces: uses services
- Service interfaces → Stub adapters: bound adapters
- Project management → Repositories: persists projects
- Resume upload and retrieval → Repositories: persists resumes
- Resume analysis → Repositories: loads resumes
- Repositories → SQL database: queries (evidence: `backend/app/services/repository.py`)
- Repositories → Resume records and versions: reads and writes (evidence: `backend/app/services/repository.py`)
- Repositories → Project records: reads and writes (evidence: `backend/app/services/repository.py`)
- FastAPI application → SQL database: initializes (evidence: `backend/app/main.py`)
- Dataset explorer → API gateway: uses gateway
- Model laboratory → API gateway: uses gateway
- Fairness analysis → API gateway: uses gateway
- WEAT laboratory → API gateway: uses gateway
- Dataset catalog → Dataset catalog: serves catalog (evidence: `backend/app/features/datasets/router.py`)
- Classifier training → ML preprocessing: training pipeline
- Classifier training → Model trainer: trains model
- Classifier training → Classifier evaluation: evaluates classifier
- Outcome fairness → Fairness metrics: computes metrics
- Embedding association test → Embedding provider: gets embeddings
