# yahyanaim/autoapply architecture

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

- Interactive diagram: https://gitdiagram.com/yahyanaim/autoapply
- Repository: https://github.com/yahyanaim/autoapply

## Overview

ApplyAI is a human-controlled job-search workspace: candidates ingest a real resume, discover and evaluate jobs, prepare and review tailored materials, fill an approved package with the extension, and track applications. The graph retains documented security, billing, administration, and public-assistant capabilities. Several links reflect explicit README workflows; sampled source confirms only the specific controller/service, ingestion/adapter, client, and storage relationships shown. Other unsampled subsystem wiring is intentionally omitted.

Main entry points: [`apps/api/src/app.module.ts`](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/app.module.ts) (API application), [`apps/api/src/modules/job/application/job-discovery.service.ts`](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/job/application/job-discovery.service.ts) (Job discovery), [`apps/api/src/modules/ai/application/ai.service.ts`](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/ai/application/ai.service.ts) (Application material generation), [`apps/dashboard/src/app/(dashboard)`](https://github.com/yahyanaim/autoapply/tree/main/apps/dashboard/src/app/(dashboard)) (Dashboard workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Candidate interfaces"]
  node_dashboard["Dashboard workspace"]
  node_extension["Chrome extension<br/>[index.ts]"]
end

subgraph group_identity["Identity and security"]
  node_auth_controller["Auth endpoints<br/>[auth.controller.ts]"]
  node_auth_service["Accounts and sessions<br/>[auth.service.ts]"]
end

subgraph group_career["Career workflow"]
  node_resume["Resume ingestion<br/>[resume.service.ts]"]
  node_job_discovery["Job discovery"]
  node_job_ingestion["Job source ingestion"]
  node_job_sources["Board API adapters"]
  node_match_score["Explainable match score<br/>[match-score.ts]"]
  node_ai_prep["Application material generation<br/>[ai.service.ts]"]
  node_tracker["Application tracker"]
  node_career_chat["Public Career Assistant"]
end

subgraph group_platform["Platform services"]
  node_api["API application<br/>[app.module.ts]"]
  node_storage["Resume file storage"]
  node_billing["Plans and quotas<br/>[billing.service.ts]"]
  node_database[("Application data store<br/>[prisma.service.ts]")]
end

subgraph group_operations["Operations"]
  node_admin["Administration<br/>[admin.service.ts]"]
end

node_candidate(("Candidate"))
node_job_boards["Public job-board APIs"]
node_ai_providers["AI providers"]
node_stripe["Stripe"]

node_candidate -->|"uses"| node_dashboard
node_dashboard -->|"requests"| node_api
node_api -->|"registers"| node_auth_controller
node_auth_controller -->|"calls"| node_auth_service
node_candidate -->|"uploads resume"| node_resume
node_resume -.->|"stores files"| node_storage
node_candidate -->|"requests jobs"| node_job_discovery
node_job_discovery -.->|"refreshes listings"| node_job_ingestion
node_job_ingestion -->|"dispatches fetch"| node_job_sources
node_job_sources -->|"fetches listings"| node_job_boards
node_job_discovery -->|"ranks jobs"| node_match_score
node_candidate -->|"prepares application"| node_ai_prep
node_ai_prep -.->|"generates materials"| node_ai_providers
node_candidate -->|"reviews and tracks"| node_tracker
node_tracker -->|"prepares materials"| node_ai_prep
node_candidate -->|"fills approved package"| node_extension
node_extension -->|"exchanges handoff"| node_api
node_candidate -->|"selects plan"| node_billing
node_billing -.->|"processes payments"| node_stripe
node_candidate -->|"asks questions"| node_career_chat
node_api -.->|"persists data"| node_database
node_admin -->|"manages accounts"| node_candidate

click node_dashboard "https://github.com/yahyanaim/autoapply/tree/main/apps/dashboard/src/app/(dashboard)"
click node_extension "https://github.com/yahyanaim/autoapply/blob/main/apps/extension/src/content-scripts/core/index.ts"
click node_api "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/app.module.ts"
click node_auth_controller "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/auth/interface/auth.controller.ts"
click node_auth_service "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/auth/application/auth.service.ts"
click node_resume "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/resume/application/resume.service.ts"
click node_storage "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/resume/infrastructure/storage/s3-storage.adapter.ts"
click node_job_discovery "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/job/application/job-discovery.service.ts"
click node_job_ingestion "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/job/application/job-ingestion.service.ts"
click node_job_sources "https://github.com/yahyanaim/autoapply/tree/main/apps/api/src/modules/job/infrastructure/sources"
click node_match_score "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/ai/domain/match-score.ts"
click node_ai_prep "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/ai/application/ai.service.ts"
click node_tracker "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/application-tracker/application/application-tracker.service.ts"
click node_billing "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/billing/application/billing.service.ts"
click node_database "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/database/prisma/prisma.service.ts"
click node_career_chat "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/career-chat/application/career-chat.service.ts"
click node_admin "https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/admin/application/admin.service.ts"

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_extension toneBlue
class node_auth_controller,node_auth_service toneAmber
class node_resume,node_job_discovery,node_job_ingestion,node_job_sources,node_match_score,node_ai_prep,node_tracker,node_career_chat,node_job_boards toneMint
class node_api,node_storage,node_billing,node_database toneRose
class node_admin,node_candidate,node_ai_providers,node_stripe toneIndigo
```

## Components

### Candidate interfaces

- [Dashboard workspace](https://github.com/yahyanaim/autoapply/tree/main/apps/dashboard/src/app/(dashboard)): `apps/dashboard/src/app/(dashboard)`
- [Chrome extension](https://github.com/yahyanaim/autoapply/blob/main/apps/extension/src/content-scripts/core/index.ts): `apps/extension/src/content-scripts/core/index.ts`

### Identity and security

- [Auth endpoints](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/auth/interface/auth.controller.ts): `apps/api/src/modules/auth/interface/auth.controller.ts`
- [Accounts and sessions](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/auth/application/auth.service.ts): `apps/api/src/modules/auth/application/auth.service.ts`

### Career workflow

- [Resume ingestion](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/resume/application/resume.service.ts): `apps/api/src/modules/resume/application/resume.service.ts`
- [Job discovery](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/job/application/job-discovery.service.ts): `apps/api/src/modules/job/application/job-discovery.service.ts`
- [Job source ingestion](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/job/application/job-ingestion.service.ts): `apps/api/src/modules/job/application/job-ingestion.service.ts`
- [Board API adapters](https://github.com/yahyanaim/autoapply/tree/main/apps/api/src/modules/job/infrastructure/sources): `apps/api/src/modules/job/infrastructure/sources`
- [Explainable match score](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/ai/domain/match-score.ts): `apps/api/src/modules/ai/domain/match-score.ts`
- [Application material generation](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/ai/application/ai.service.ts): `apps/api/src/modules/ai/application/ai.service.ts`
- [Application tracker](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/application-tracker/application/application-tracker.service.ts): `apps/api/src/modules/application-tracker/application/application-tracker.service.ts`
- [Public Career Assistant](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/career-chat/application/career-chat.service.ts): `apps/api/src/modules/career-chat/application/career-chat.service.ts`

### Platform services

- [API application](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/app.module.ts): `apps/api/src/app.module.ts`
- [Resume file storage](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/resume/infrastructure/storage/s3-storage.adapter.ts): `apps/api/src/modules/resume/infrastructure/storage/s3-storage.adapter.ts`
- [Plans and quotas](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/billing/application/billing.service.ts): `apps/api/src/modules/billing/application/billing.service.ts`
- [Application data store](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/database/prisma/prisma.service.ts): `apps/api/src/database/prisma/prisma.service.ts`

### Operations

- [Administration](https://github.com/yahyanaim/autoapply/blob/main/apps/api/src/modules/admin/application/admin.service.ts): `apps/api/src/modules/admin/application/admin.service.ts`

### Other components

- **Candidate**
- **Public job-board APIs**
- **AI providers**
- **Stripe**

## Connections

- Candidate → Dashboard workspace: uses (evidence: `README.md`)
- Dashboard workspace → API application: requests
- API application → Auth endpoints: registers (evidence: `apps/api/src/app.module.ts`)
- Auth endpoints → Accounts and sessions: calls (evidence: `apps/api/src/modules/auth/interface/auth.controller.ts`)
- Candidate → Resume ingestion: uploads resume (evidence: `README.md`)
- Resume ingestion → Resume file storage: stores files
- Candidate → Job discovery: requests jobs (evidence: `README.md`)
- Job discovery → Job source ingestion: refreshes listings
- Job source ingestion → Board API adapters: dispatches fetch (evidence: `apps/api/src/modules/job/application/job-ingestion.service.ts`)
- Board API adapters → Public job-board APIs: fetches listings (evidence: `README.md`)
- Job discovery → Explainable match score: ranks jobs (evidence: `README.md`)
- Candidate → Application material generation: prepares application (evidence: `README.md`)
- Application material generation → AI providers: generates materials
- Candidate → Application tracker: reviews and tracks (evidence: `README.md`)
- Application tracker → Application material generation: prepares materials
- Candidate → Chrome extension: fills approved package (evidence: `README.md`)
- Chrome extension → API application: exchanges handoff
- Candidate → Plans and quotas: selects plan (evidence: `README.md`)
- Plans and quotas → Stripe: processes payments
- Candidate → Public Career Assistant: asks questions (evidence: `README.md`)
- API application → Application data store: persists data
- Administration → Candidate: manages accounts (evidence: `README.md`)
