# gunakr/careeros architecture

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

- Interactive diagram: https://gitdiagram.com/gunakr/careeros
- Repository: https://github.com/gunakr/careeros

## Overview

1. **Overall shape**
   - This is a two-tier product: a **React single-page frontend** and a **Python backend**.
   - The app appears to be a **career coaching / job-search workflow** that guides a user through profile setup, resume processing, skill mapping, interview prep, job search, and auto-apply.

2. **Frontend boundary**
   - The frontend lives under `frontend/` and is the user-facing orchestration layer.
   - It is a routed SPA with pages for `Landing`, `Dashboard`, `Settings`, `Upgrade`, `AuthCallback`, `PaymentSuccess`, and a multi-step wizard under `pages/steps/`.
   - The step pages define the product flow: `Profile → Resume Upload → Skill Mapping → ATS Resume → Roadmap → Learning → Interview → Jobs → Auto Apply`.

3. **Frontend UI system**
   - UI is built from a large local component library under `src/components/ui/`, suggesting a **design-system-style approach** rather than ad hoc UI.
   - Styling/tooling uses **Tailwind CSS** plus CRACO, and there is a small custom health-check plugin in `frontend/plugins/health-check/`.
   - `App.js`, `index.js`, and shared hooks like `use-toast` form the shell around the page flow.

4. **Backend entry point**
   - The backend entry point is `backend/server.py`, which likely exposes the HTTP API consumed by the SPA.
   - The backend is structured as a **single application with service modules**, not a cluster of separate microservices.

5. **Backend service layer**
   - The backend is split by responsibility:
     - `auth.py` for authentication/session flows
     - `payment_service.py` for billing/upgrade handling
     - `email_service.py` for user notifications
     - `pdf_service.py` for document generation/export
     - `ai_service.py` for AI/LLM-driven features
     - `scraper.py` for external job-data extraction
   - This suggests the backend is an orchestrator that combines user data with AI and external integrations.

6. **Domain and persistence**
   - `backend/models.py` likely contains the core data structures for user profile, resume data, roadmap/skill state, job records, and related workflow entities.
   - The repo does not show a standalone database service; persistence is probably handled inside the backend application layer, with models as the domain boundary.

7. **Key data flow**
   - A typical flow is: the user starts in the SPA, completes onboarding steps, uploads a resume, and the frontend sends that data to the backend.
   - The backend then transforms it through AI, scraping, and document services to produce outputs such as skill maps, ATS-friendly resumes, roadmap content, learning plans, interview prep, and job/apply actions.
   - Payment and auth are cross-cutting flows that gate parts of the experience, especially `Upgrade` and `AuthCallback`.

8. **External integration boundaries**
   - `auth.py` and `payment_service.py` imply external identity and billing dependencies.
   - `email_service.py` indicates outbound messaging for confirmations, alerts, or progress updates.
   - `scraper.py` is an explicit boundary to third-party sites/data sources, likely for job listings or company/job intelligence.
   - `ai_service.py` is the main intelligence boundary, where user inputs are turned into personalized recommendations and generated assets.

9. **Document and artifact generation**
   - `pdf_service.py` and the presence of `test_resume.docx` indicate the system can produce or process exportable resume artifacts.
   - This fits the product’s workflow around resume optimization and ATS-ready output.

10. **Testing and validation**
   - `backend_test.py` plus the `tests/` directory show backend-centric testing.
   - `test_reports/` and `memory/` look like local artifacts used for iteration, regression tracking, or agent/evaluation runs rather than runtime components.

11. **Operational/configuration notes**
   - `backend/requirements.txt` and frontend package/config files define two independent build/runtime stacks: Python backend and Node/React frontend.
   - `design_guidelines.json` suggests some UI behavior or generation constraints are codified outside the app code.

12. **Architecture diagram takeaway**
   - The clean diagram is: **React SPA on the left**, **Python API/backend in the middle**, and **external services on the right** (auth, payments, email, AI, scraping).
   - The strongest internal subdivision is the backend service layer, where each feature area is isolated by module, while the frontend is organized around a guided user journey rather than generic pages.

Main entry points: [`frontend/src/App.js`](https://github.com/gunakr/careeros/blob/main/frontend/src/App.js) (App shell), [`backend/server.py`](https://github.com/gunakr/careeros/blob/main/backend/server.py) (Server), [`backend/ai_service.py`](https://github.com/gunakr/careeros/blob/main/backend/ai_service.py) (AI service), [`frontend/src/pages/steps/Step1_ResumeUpload.js`](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step1_ResumeUpload.js) (Resume upload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_app["App shell<br/>React SPA shell<br/>[App.js]"]
  node_frontend_pages_landing["Landing<br/>entry page<br/>[Landing.js]"]
  node_frontend_pages_dashboard["Dashboard<br/>workspace page<br/>[Dashboard.js]"]
  node_frontend_pages_settings["Settings<br/>account page<br/>[Settings.js]"]
  node_frontend_pages_upgrade["Upgrade<br/>billing page<br/>[Upgrade.js]"]
  node_frontend_pages_callback["Auth callback<br/>auth page<br/>[AuthCallback.js]"]
  node_frontend_pages_payment["Payment success<br/>billing page<br/>[PaymentSuccess.js]"]
  node_frontend_step_profile["Profile<br/>wizard step<br/>[Step0_Profile.js]"]
  node_frontend_step_resume["Resume upload<br/>wizard step"]
  node_frontend_step_mapping["Skill mapping<br/>wizard step"]
  node_frontend_step_ats["ATS resume<br/>wizard step<br/>[Step3_ATSResume.js]"]
  node_frontend_step_roadmap["Roadmap<br/>wizard step<br/>[Step4_Roadmap.js]"]
  node_frontend_step_learning["Learning<br/>wizard step<br/>[Step5_Learning.js]"]
  node_frontend_step_interview["Interview<br/>wizard step<br/>[Step6_Interview.js]"]
  node_frontend_step_jobs["Jobs<br/>wizard step<br/>[Step7_Jobs.js]"]
  node_frontend_step_apply["Auto apply<br/>wizard step<br/>[Step8_AutoApply.js]"]
  node_frontend_ui["UI kit<br/>component library<br/>[button.jsx]"]
  node_frontend_hooks["Toast hook<br/>shared hook<br/>[use-toast.js]"]
  node_frontend_health["Health plugin<br/>build plugin"]
end

subgraph group_backend["Backend"]
  node_backend_server["Server<br/>API entrypoint<br/>[server.py]"]
  node_backend_models[("Models<br/>domain model<br/>[models.py]")]
  node_backend_auth["Auth<br/>service module<br/>[auth.py]"]
  node_backend_payment["Payments<br/>service module<br/>[payment_service.py]"]
  node_backend_email["Email<br/>service module<br/>[email_service.py]"]
  node_backend_pdf["PDF<br/>service module<br/>[pdf_service.py]"]
  node_backend_ai["AI service<br/>service module<br/>[ai_service.py]"]
  node_backend_scraper["Scraper<br/>service module<br/>[scraper.py]"]
end

subgraph group_artifacts["Artifacts"]
  node_tests_backend["Backend tests<br/>test suite<br/>[backend_test.py]"]
  node_tests_dir["Tests<br/>test package<br/>[__init__.py]"]
  node_artifact_resume["Resume sample<br/>document asset<br/>[test_resume.docx]"]
  node_artifact_reports["Reports<br/>local artifacts<br/>[iteration_1.json]"]
end

node_frontend_app -->|"routes to"| node_frontend_pages_landing
node_frontend_app -->|"routes to"| node_frontend_pages_dashboard
node_frontend_app -->|"routes to"| node_frontend_pages_settings
node_frontend_app -->|"routes to"| node_frontend_pages_upgrade
node_frontend_app -->|"routes to"| node_frontend_pages_callback
node_frontend_app -->|"routes to"| node_frontend_pages_payment
node_frontend_app -->|"orchestrates"| node_frontend_step_profile
node_frontend_app -->|"orchestrates"| node_frontend_step_apply
node_frontend_step_profile -->|"next"| node_frontend_step_resume
node_frontend_step_resume -->|"next"| node_frontend_step_mapping
node_frontend_step_mapping -->|"next"| node_frontend_step_ats
node_frontend_step_ats -->|"next"| node_frontend_step_roadmap
node_frontend_step_roadmap -->|"next"| node_frontend_step_learning
node_frontend_step_learning -->|"next"| node_frontend_step_interview
node_frontend_step_interview -->|"next"| node_frontend_step_jobs
node_frontend_step_jobs -->|"next"| node_frontend_step_apply
node_frontend_app -->|"uses"| node_frontend_ui
node_frontend_app -->|"uses"| node_frontend_hooks
node_frontend_health -.->|"extends"| node_frontend_app
node_frontend_pages_upgrade -->|"calls"| node_backend_payment
node_frontend_pages_callback -->|"calls"| node_backend_auth
node_frontend_step_resume -->|"calls"| node_backend_pdf
node_frontend_step_mapping -->|"calls"| node_backend_ai
node_frontend_step_ats -->|"calls"| node_backend_pdf
node_frontend_step_roadmap -->|"calls"| node_backend_ai
node_frontend_step_learning -->|"calls"| node_backend_ai
node_frontend_step_interview -->|"calls"| node_backend_ai
node_frontend_step_jobs -->|"calls"| node_backend_scraper
node_frontend_step_apply -->|"calls"| node_backend_server
node_backend_server -->|"uses"| node_backend_models
node_backend_server -->|"delegates"| node_backend_auth
node_backend_server -->|"delegates"| node_backend_payment
node_backend_server -->|"delegates"| node_backend_email
node_backend_server -->|"delegates"| node_backend_pdf
node_backend_server -->|"delegates"| node_backend_ai
node_backend_server -->|"delegates"| node_backend_scraper
node_backend_auth -->|"triggers"| node_backend_email
node_backend_payment -->|"triggers"| node_backend_email
node_backend_ai -->|"reads/writes"| node_backend_models
node_backend_scraper -->|"enriches"| node_backend_models
node_tests_backend -.->|"validates"| node_backend_server
node_artifact_resume -.->|"sample for"| node_frontend_step_resume
node_artifact_reports -.->|"records"| node_tests_backend

click node_frontend_app "https://github.com/gunakr/careeros/blob/main/frontend/src/App.js"
click node_frontend_pages_landing "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Landing.js"
click node_frontend_pages_dashboard "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Dashboard.js"
click node_frontend_pages_settings "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Settings.js"
click node_frontend_pages_upgrade "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Upgrade.js"
click node_frontend_pages_callback "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/AuthCallback.js"
click node_frontend_pages_payment "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/PaymentSuccess.js"
click node_frontend_step_profile "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step0_Profile.js"
click node_frontend_step_resume "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step1_ResumeUpload.js"
click node_frontend_step_mapping "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step2_SkillMapping.js"
click node_frontend_step_ats "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step3_ATSResume.js"
click node_frontend_step_roadmap "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step4_Roadmap.js"
click node_frontend_step_learning "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step5_Learning.js"
click node_frontend_step_interview "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step6_Interview.js"
click node_frontend_step_jobs "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step7_Jobs.js"
click node_frontend_step_apply "https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step8_AutoApply.js"
click node_frontend_ui "https://github.com/gunakr/careeros/blob/main/frontend/src/components/ui/button.jsx"
click node_frontend_hooks "https://github.com/gunakr/careeros/blob/main/frontend/src/hooks/use-toast.js"
click node_frontend_health "https://github.com/gunakr/careeros/blob/main/frontend/plugins/health-check/webpack-health-plugin.js"
click node_backend_server "https://github.com/gunakr/careeros/blob/main/backend/server.py"
click node_backend_models "https://github.com/gunakr/careeros/blob/main/backend/models.py"
click node_backend_auth "https://github.com/gunakr/careeros/blob/main/backend/auth.py"
click node_backend_payment "https://github.com/gunakr/careeros/blob/main/backend/payment_service.py"
click node_backend_email "https://github.com/gunakr/careeros/blob/main/backend/email_service.py"
click node_backend_pdf "https://github.com/gunakr/careeros/blob/main/backend/pdf_service.py"
click node_backend_ai "https://github.com/gunakr/careeros/blob/main/backend/ai_service.py"
click node_backend_scraper "https://github.com/gunakr/careeros/blob/main/backend/scraper.py"
click node_tests_backend "https://github.com/gunakr/careeros/blob/main/backend_test.py"
click node_tests_dir "https://github.com/gunakr/careeros/blob/main/tests/__init__.py"
click node_artifact_resume "https://github.com/gunakr/careeros/blob/main/test_resume.docx"
click node_artifact_reports "https://github.com/gunakr/careeros/blob/main/test_reports/iteration_1.json"

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_frontend_app,node_frontend_pages_landing,node_frontend_pages_dashboard,node_frontend_pages_settings,node_frontend_pages_upgrade,node_frontend_pages_callback,node_frontend_pages_payment,node_frontend_step_profile,node_frontend_step_resume,node_frontend_step_mapping,node_frontend_step_ats,node_frontend_step_roadmap,node_frontend_step_learning,node_frontend_step_interview,node_frontend_step_jobs,node_frontend_step_apply,node_frontend_ui,node_frontend_hooks,node_frontend_health toneBlue
class node_backend_server,node_backend_models,node_backend_auth,node_backend_payment,node_backend_email,node_backend_pdf,node_backend_ai,node_backend_scraper toneAmber
class node_tests_backend,node_tests_dir,node_artifact_resume,node_artifact_reports toneMint
```

## Components

### Frontend

React SPA and UI shell

- [App shell](https://github.com/gunakr/careeros/blob/main/frontend/src/App.js): React SPA shell · Routing, bootstrap, and global app wiring · `frontend/src/App.js`
- [Landing](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Landing.js): entry page · Public marketing and entry point · `frontend/src/pages/Landing.js`
- [Dashboard](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Dashboard.js): workspace page · Primary logged-in overview · `frontend/src/pages/Dashboard.js`
- [Settings](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Settings.js): account page · User preferences and profile settings · `frontend/src/pages/Settings.js`
- [Upgrade](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/Upgrade.js): billing page · Plan selection and paid feature gating · `frontend/src/pages/Upgrade.js`
- [Auth callback](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/AuthCallback.js): auth page · Completes external sign-in flow · `frontend/src/pages/AuthCallback.js`
- [Payment success](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/PaymentSuccess.js): billing page · Post-checkout confirmation and redirect · `frontend/src/pages/PaymentSuccess.js`
- [Profile](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step0_Profile.js): wizard step · Initial career profile setup · `frontend/src/pages/steps/Step0_Profile.js`
- [Resume upload](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step1_ResumeUpload.js): wizard step · Resume ingest and parsing start · `frontend/src/pages/steps/Step1_ResumeUpload.js`
- [Skill mapping](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step2_SkillMapping.js): wizard step · Maps resume content to skills and gaps · `frontend/src/pages/steps/Step2_SkillMapping.js`
- [ATS resume](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step3_ATSResume.js): wizard step · Generates ATS-friendly resume output · `frontend/src/pages/steps/Step3_ATSResume.js`
- [Roadmap](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step4_Roadmap.js): wizard step · Creates a career plan and milestones · `frontend/src/pages/steps/Step4_Roadmap.js`
- [Learning](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step5_Learning.js): wizard step · Recommends learning resources and gaps · `frontend/src/pages/steps/Step5_Learning.js`
- [Interview](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step6_Interview.js): wizard step · Interview prep and practice flow · `frontend/src/pages/steps/Step6_Interview.js`
- [Jobs](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step7_Jobs.js): wizard step · Job discovery and matching · `frontend/src/pages/steps/Step7_Jobs.js`
- [Auto apply](https://github.com/gunakr/careeros/blob/main/frontend/src/pages/steps/Step8_AutoApply.js): wizard step · Automated application submission · `frontend/src/pages/steps/Step8_AutoApply.js`
- [UI kit](https://github.com/gunakr/careeros/blob/main/frontend/src/components/ui/button.jsx): component library · Shared design-system style components · `frontend/src/components/ui/button.jsx`
- [Toast hook](https://github.com/gunakr/careeros/blob/main/frontend/src/hooks/use-toast.js): shared hook · Global notification helper · `frontend/src/hooks/use-toast.js`
- [Health plugin](https://github.com/gunakr/careeros/blob/main/frontend/plugins/health-check/webpack-health-plugin.js): build plugin · Custom frontend health-check integration · `frontend/plugins/health-check/webpack-health-plugin.js`

### Backend

Python API and service modules

- [Server](https://github.com/gunakr/careeros/blob/main/backend/server.py): API entrypoint · HTTP API entry and request orchestration · `backend/server.py`
- [Models](https://github.com/gunakr/careeros/blob/main/backend/models.py): domain model · Core user, resume, job, and workflow structures · `backend/models.py`
- [Auth](https://github.com/gunakr/careeros/blob/main/backend/auth.py): service module · Authentication and session flows · `backend/auth.py`
- [Payments](https://github.com/gunakr/careeros/blob/main/backend/payment_service.py): service module · Billing and upgrade handling · `backend/payment_service.py`
- [Email](https://github.com/gunakr/careeros/blob/main/backend/email_service.py): service module · Outbound notifications and messaging · `backend/email_service.py`
- [PDF](https://github.com/gunakr/careeros/blob/main/backend/pdf_service.py): service module · Document generation and export · `backend/pdf_service.py`
- [AI service](https://github.com/gunakr/careeros/blob/main/backend/ai_service.py): service module · LLM-driven analysis and generation · `backend/ai_service.py`
- [Scraper](https://github.com/gunakr/careeros/blob/main/backend/scraper.py): service module · External job-data and web extraction · `backend/scraper.py`

### Artifacts

Tests, reports, and local assets

- [Backend tests](https://github.com/gunakr/careeros/blob/main/backend_test.py): test suite · Backend-centric validation and regression coverage · `backend_test.py`
- [Tests](https://github.com/gunakr/careeros/blob/main/tests/__init__.py): test package · Additional test package scaffolding · `tests/__init__.py`
- [Resume sample](https://github.com/gunakr/careeros/blob/main/test_resume.docx): document asset · Example resume input or output artifact · `test_resume.docx`
- [Reports](https://github.com/gunakr/careeros/blob/main/test_reports/iteration_1.json): local artifacts · Iterative test and evaluation outputs · `test_reports/iteration_1.json`

## Connections

- App shell → Landing: routes to · Public entry route
- App shell → Dashboard: routes to · Authenticated workspace
- App shell → Settings: routes to · Account settings
- App shell → Upgrade: routes to · Billing gate
- App shell → Auth callback: routes to · External auth completion
- App shell → Payment success: routes to · Checkout confirmation
- App shell → Profile: orchestrates · Guided onboarding flow
- App shell → Auto apply: orchestrates · End of workflow
- Profile → Resume upload: next · Step progression
- Resume upload → Skill mapping: next · Step progression
- Skill mapping → ATS resume: next · Step progression
- ATS resume → Roadmap: next · Step progression
- Roadmap → Learning: next · Step progression
- Learning → Interview: next · Step progression
- Interview → Jobs: next · Step progression
- Jobs → Auto apply: next · Step progression
- App shell → UI kit: uses · Shared UI primitives
- App shell → Toast hook: uses · Global toast notifications
- Health plugin → App shell: extends · Build-time health checks
- Upgrade → Payments: calls · Plan purchase and upgrade flow
- Auth callback → Auth: calls · Login callback completion
- Resume upload → PDF: calls · Resume/document handling
- Skill mapping → AI service: calls · Skill analysis and recommendations
- ATS resume → PDF: calls · Generate ATS-ready output
- Roadmap → AI service: calls · Roadmap generation
- Learning → AI service: calls · Learning plan generation
- Interview → AI service: calls · Interview prep generation
- Jobs → Scraper: calls · Job discovery and enrichment
- Auto apply → Server: calls · Application submission flow
- Server → Models: uses · Domain state and persistence boundary
- Server → Auth: delegates · Authentication workflows
- Server → Payments: delegates · Billing workflows
- Server → Email: delegates · Notifications
- Server → PDF: delegates · Document generation
- Server → AI service: delegates · AI-driven feature work
- Server → Scraper: delegates · External data acquisition
- Auth → Email: triggers · Account and login messaging
- Payments → Email: triggers · Receipts and purchase status
- AI service → Models: reads/writes · Profile and workflow context
- Scraper → Models: enriches · Job and market data
- Backend tests → Server: validates · API and orchestration behavior
- Resume sample → Resume upload: sample for · Resume input/output artifact
- Reports → Backend tests: records · Run outputs and iteration history
