# aelasefa/coditent architecture

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

- Interactive diagram: https://gitdiagram.com/aelasefa/coditent
- Repository: https://github.com/aelasefa/coditent

## Overview

CODITENT is a two-sided talent workflow platform: candidates create profiles, discover and apply to offers; company recruiters publish offers, review and advance applicants, then chat with shortlisted candidates. Platform administrators manage access and moderation. The graph includes the documented AI, invitation, CV, security, and observability capabilities. Some router and frontend implementation details were not sampled, so those links are documented at subsystem level rather than inferred from folder structure.

Main entry points: [`apps/api/app/main.py`](https://github.com/aelasefa/coditent/blob/main/apps/api/app/main.py) (API application), [`apps/api/app/routers/applications.py`](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/applications.py) (Applications), [`apps/api/app/tasks.py`](https://github.com/aelasefa/coditent/blob/main/apps/api/app/tasks.py) (AI job processing), [`apps/api/app/routers/auth.py`](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/auth.py) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Candidate and recruiter"]
  node_candidate["Candidate workspace<br/>[page.tsx]"]
  node_profile["Profile and CV<br/>[page.tsx]"]
  node_recommendations["Offer discovery<br/>[page.tsx]"]
  node_applications_ui["Applications<br/>[page.tsx]"]
  node_recruiter["Recruiter workspace<br/>[page.tsx]"]
  node_offer_management["Offer management<br/>[page.tsx]"]
  node_candidate_review["Candidate review<br/>[page.tsx]"]
  node_chat_ui["Recruitment chat<br/>[page.tsx]"]
end

subgraph group_api["API workflows"]
  node_api_app["API application<br/>[main.py]"]
  node_offer_routes["Offers<br/>[offers.py]"]
  node_application_routes["Applications<br/>[applications.py]"]
  node_chat_routes["Chat routes<br/>[chat.py]"]
  node_chat_service["Chat services"]
end

subgraph group_ai["AI and background work"]
  node_recommendation_routes["Recommendations<br/>[recommendations.py]"]
  node_ai_jobs["AI job processing<br/>[tasks.py]"]
  node_ai_services["Screening and scoring<br/>[screening.py]"]
  node_gemini{{"Gemini AI"}}
end

subgraph group_identity["Identity and governance"]
  node_auth_routes["Authentication<br/>[auth.py]"]
  node_admin["Admin governance<br/>[admin.py]"]
  node_resend{{"Resend email"}}
end

subgraph group_state["Data and integrations"]
  node_database[("Supabase database<br/>[database.py]")]
  node_object_storage[("Supabase file storage<br/>[cv_storage.py]")]
  node_redis[("Redis cache and jobs<br/>[cache.py]")]
end

node_admin_user(("Platform administrator"))
node_jobseeker(("Candidate"))
node_company_user(("Company recruiter"))

node_jobseeker -->|"uses"| node_candidate
node_candidate -->|"builds profile"| node_profile
node_profile -->|"enables matching"| node_recommendations
node_recommendations -->|"selects offers"| node_applications_ui
node_applications_ui -.->|"submits applications"| node_application_routes
node_company_user -->|"uses"| node_recruiter
node_recruiter -->|"publishes offers"| node_offer_management
node_offer_management -.->|"manages offers"| node_offer_routes
node_candidate_review -.->|"reviews applicants"| node_application_routes
node_application_routes -->|"queues screening"| node_ai_jobs
node_ai_jobs -->|"runs screening"| node_ai_services
node_ai_services -.->|"requests AI"| node_gemini
node_recommendation_routes -.->|"starts ranking"| node_ai_jobs
node_candidate_review -->|"continues shortlisted"| node_chat_ui
node_chat_ui -.->|"exchanges messages"| node_chat_routes
node_chat_routes -->|"delegates chat"| node_chat_service
node_api_app -->|"registers routes"| node_auth_routes
node_api_app -->|"registers routes"| node_offer_routes
node_api_app -->|"registers routes"| node_application_routes
node_api_app -->|"registers routes"| node_chat_routes
node_api_app -->|"registers routes"| node_recommendation_routes
node_api_app -->|"registers routes"| node_admin
node_admin_user -->|"moderates platform"| node_admin
node_auth_routes -->|"persists accounts"| node_database
node_application_routes -->|"reads and writes"| node_database
node_application_routes -->|"accesses CVs"| node_object_storage
node_ai_jobs -->|"updates job state"| node_database
node_ai_jobs -->|"uses job broker"| node_redis
node_auth_routes -.->|"sends verification"| node_resend

click node_candidate "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/page.tsx"
click node_profile "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/profile/page.tsx"
click node_recommendations "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/recommendations/page.tsx"
click node_applications_ui "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/applications/page.tsx"
click node_recruiter "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/page.tsx"
click node_offer_management "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/jobs/page.tsx"
click node_candidate_review "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/candidates/page.tsx"
click node_chat_ui "https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/chat/recruitment/%5BapplicationId%5D/page.tsx"
click node_api_app "https://github.com/aelasefa/coditent/blob/main/apps/api/app/main.py"
click node_auth_routes "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/auth.py"
click node_offer_routes "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/offers.py"
click node_application_routes "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/applications.py"
click node_chat_routes "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/chat.py"
click node_recommendation_routes "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/recommendations.py"
click node_ai_jobs "https://github.com/aelasefa/coditent/blob/main/apps/api/app/tasks.py"
click node_ai_services "https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/screening.py"
click node_chat_service "https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/recruitment_chat.py"
click node_admin "https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/admin.py"
click node_database "https://github.com/aelasefa/coditent/blob/main/apps/api/app/database.py"
click node_object_storage "https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/cv_storage.py"
click node_redis "https://github.com/aelasefa/coditent/blob/main/apps/api/app/cache.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_candidate,node_profile,node_recommendations,node_applications_ui,node_recruiter,node_offer_management,node_candidate_review,node_chat_ui toneBlue
class node_api_app,node_offer_routes,node_application_routes,node_chat_routes,node_chat_service toneAmber
class node_recommendation_routes,node_ai_jobs,node_ai_services,node_gemini toneMint
class node_auth_routes,node_admin,node_resend toneRose
class node_database,node_object_storage,node_redis,node_admin_user,node_jobseeker,node_company_user toneIndigo
```

## Components

### Candidate and recruiter

- [Candidate workspace](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/page.tsx): `apps/web/src/app/dashboard/page.tsx`
- [Profile and CV](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/profile/page.tsx): `apps/web/src/app/dashboard/profile/page.tsx`
- [Offer discovery](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/recommendations/page.tsx): `apps/web/src/app/dashboard/recommendations/page.tsx`
- [Applications](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/dashboard/applications/page.tsx): `apps/web/src/app/dashboard/applications/page.tsx`
- [Recruiter workspace](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/page.tsx): `apps/web/src/app/company/page.tsx`
- [Offer management](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/jobs/page.tsx): `apps/web/src/app/company/jobs/page.tsx`
- [Candidate review](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/company/candidates/page.tsx): `apps/web/src/app/company/candidates/page.tsx`
- [Recruitment chat](https://github.com/aelasefa/coditent/blob/main/apps/web/src/app/chat/recruitment/%5BapplicationId%5D/page.tsx): `apps/web/src/app/chat/recruitment/[applicationId]/page.tsx`

### API workflows

- [API application](https://github.com/aelasefa/coditent/blob/main/apps/api/app/main.py): `apps/api/app/main.py`
- [Offers](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/offers.py): `apps/api/app/routers/offers.py`
- [Applications](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/applications.py): `apps/api/app/routers/applications.py`
- [Chat routes](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/chat.py): `apps/api/app/routers/chat.py`
- [Chat services](https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/recruitment_chat.py): `apps/api/app/services/recruitment_chat.py`

### AI and background work

- [Recommendations](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/recommendations.py): `apps/api/app/routers/recommendations.py`
- [AI job processing](https://github.com/aelasefa/coditent/blob/main/apps/api/app/tasks.py): `apps/api/app/tasks.py`
- [Screening and scoring](https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/screening.py): `apps/api/app/services/screening.py`
- **Gemini AI**

### Identity and governance

- [Authentication](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/auth.py): `apps/api/app/routers/auth.py`
- [Admin governance](https://github.com/aelasefa/coditent/blob/main/apps/api/app/routers/admin.py): `apps/api/app/routers/admin.py`
- **Resend email**

### Data and integrations

- [Supabase database](https://github.com/aelasefa/coditent/blob/main/apps/api/app/database.py): `apps/api/app/database.py`
- [Supabase file storage](https://github.com/aelasefa/coditent/blob/main/apps/api/app/services/cv_storage.py): `apps/api/app/services/cv_storage.py`
- [Redis cache and jobs](https://github.com/aelasefa/coditent/blob/main/apps/api/app/cache.py): `apps/api/app/cache.py`

### Other components

- **Platform administrator**
- **Candidate**
- **Company recruiter**

## Connections

- Candidate → Candidate workspace: uses (evidence: `README.md`)
- Candidate workspace → Profile and CV: builds profile (evidence: `README.md`)
- Profile and CV → Offer discovery: enables matching (evidence: `README.md`)
- Offer discovery → Applications: selects offers (evidence: `README.md`)
- Applications → Applications: submits applications
- Company recruiter → Recruiter workspace: uses (evidence: `README.md`)
- Recruiter workspace → Offer management: publishes offers (evidence: `README.md`)
- Offer management → Offers: manages offers
- Candidate review → Applications: reviews applicants
- Applications → AI job processing: queues screening (evidence: `apps/api/app/tasks.py`)
- AI job processing → Screening and scoring: runs screening (evidence: `apps/api/app/tasks.py`)
- Screening and scoring → Gemini AI: requests AI
- Recommendations → AI job processing: starts ranking
- Candidate review → Recruitment chat: continues shortlisted (evidence: `README.md`)
- Recruitment chat → Chat routes: exchanges messages
- Chat routes → Chat services: delegates chat (evidence: `apps/api/app/routers/chat.py`)
- API application → Authentication: registers routes (evidence: `apps/api/app/main.py`)
- API application → Offers: registers routes (evidence: `apps/api/app/main.py`)
- API application → Applications: registers routes (evidence: `apps/api/app/main.py`)
- API application → Chat routes: registers routes (evidence: `apps/api/app/main.py`)
- API application → Recommendations: registers routes (evidence: `apps/api/app/main.py`)
- API application → Admin governance: registers routes (evidence: `apps/api/app/main.py`)
- Platform administrator → Admin governance: moderates platform (evidence: `README.md`)
- Authentication → Supabase database: persists accounts (evidence: `apps/api/app/routers/auth.py`)
- Applications → Supabase database: reads and writes (evidence: `apps/api/app/routers/applications.py`)
- Applications → Supabase file storage: accesses CVs (evidence: `apps/api/app/routers/applications.py`)
- AI job processing → Supabase database: updates job state (evidence: `apps/api/app/tasks.py`)
- AI job processing → Redis cache and jobs: uses job broker (evidence: `apps/api/app/tasks.py`)
- Authentication → Resend email: sends verification
