# tamon-james/carrer-os architecture

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

- Interactive diagram: https://gitdiagram.com/tamon-james/carrer-os
- Repository: https://github.com/tamon-james/carrer-os

## Overview

Career OS is a personal job-search operations system: a candidate tracks companies and applications, manages selection stages and schedules, then reviews preparation materials and records interview notes. The README documents calendar availability search, company-linked resources, and interview mode; sampled routes show dashboard and company actions delegated to CareerRepository, with upload handling separated into ResourceService. Some major capabilities are documented but their route implementations were not sampled, so those links are labeled as documented rather than inferred from unseen code.

Main entry points: [`public/company.php`](https://github.com/tamon-james/carrer-os/blob/main/public/company.php) (Company workspace), [`src/Repositories/CareerRepository.php`](https://github.com/tamon-james/carrer-os/blob/main/src/Repositories/CareerRepository.php) (Career repository), [`public/index.php`](https://github.com/tamon-james/carrer-os/blob/main/public/index.php) (Dashboard), [`public/campe.php`](https://github.com/tamon-james/carrer-os/blob/main/public/campe.php) (Interview mode)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry points"]
  node_auth["Account access<br/>[login.php]"]
  node_auth_view["Authentication screen<br/>[auth.php]"]
end

subgraph group_workflow["Job search workflow"]
  node_dashboard["Dashboard<br/>[index.php]"]
  node_company_route["Company workspace<br/>[company.php]"]
  node_company_list["Company list<br/>[companyFile.php]"]
  node_calendar["Calendar search<br/>[index.php]"]
  node_flow["Selection flow<br/>[company.php]"]
  node_dashboard_view["Dashboard screen<br/>[dashboard.php]"]
  node_company_view["Company screen<br/>[company.php]"]
end

subgraph group_interview["Interview preparation"]
  node_interview_mode["Interview mode<br/>[campe.php]"]
  node_draft_api["Draft autosave"]
  node_interview_view["Interview screen<br/>[interview.php]"]
  node_notes["Notes and logs<br/>[notes.php]"]
  node_resources["Company resources<br/>[resources.php]"]
end

subgraph group_core["Application core"]
  node_upload_service["Upload handling"]
  node_repo["Career repository"]
  node_app_core["Application services<br/>[app.php]"]
  node_database[("MySQL database")]
  node_private_files["Private uploads"]
end

node_candidate(("Candidate"))

node_candidate -->|"signs in"| node_auth
node_candidate -->|"manages job search"| node_dashboard
node_candidate -->|"reviews company"| node_company_route
node_candidate -->|"prepares interview"| node_interview_mode
node_dashboard -->|"loads bootstrap"| node_app_core
node_dashboard -->|"queries dashboard"| node_repo
node_dashboard -->|"renders"| node_dashboard_view
node_dashboard -->|"searches availability"| node_calendar
node_company_route -->|"loads bootstrap"| node_app_core
node_company_route -->|"loads workspace"| node_repo
node_company_route -->|"renders"| node_company_view
node_company_route -->|"updates stages"| node_flow
node_company_list -->|"uses repository"| node_repo
node_interview_mode -->|"uses repository"| node_repo
node_draft_api -->|"saves draft"| node_repo
node_resources -->|"uses repository"| node_repo
node_resources -->|"stores upload"| node_upload_service
node_repo -->|"reads and writes"| node_database
node_app_core -->|"creates connection"| node_database
node_upload_service -->|"stores files"| node_private_files
node_auth -->|"loads bootstrap"| node_app_core
node_auth -.->|"renders screen"| node_auth_view
node_interview_mode -.->|"renders screen"| node_interview_view
node_interview_mode -.->|"autosaves notes"| node_draft_api
node_company_route -.->|"manages company notes"| node_notes
node_company_route -.->|"manages materials"| node_resources

click node_auth "https://github.com/tamon-james/carrer-os/blob/main/public/login.php"
click node_dashboard "https://github.com/tamon-james/carrer-os/blob/main/public/index.php"
click node_company_route "https://github.com/tamon-james/carrer-os/blob/main/public/company.php"
click node_company_list "https://github.com/tamon-james/carrer-os/blob/main/public/companyFile.php"
click node_calendar "https://github.com/tamon-james/carrer-os/blob/main/public/index.php"
click node_flow "https://github.com/tamon-james/carrer-os/blob/main/public/company.php"
click node_interview_mode "https://github.com/tamon-james/carrer-os/blob/main/public/campe.php"
click node_draft_api "https://github.com/tamon-james/carrer-os/blob/main/public/api/interview-draft.php"
click node_interview_view "https://github.com/tamon-james/carrer-os/blob/main/views/interview.php"
click node_notes "https://github.com/tamon-james/carrer-os/blob/main/public/notes.php"
click node_resources "https://github.com/tamon-james/carrer-os/blob/main/public/resources.php"
click node_upload_service "https://github.com/tamon-james/carrer-os/blob/main/src/Services/ResourceService.php"
click node_auth_view "https://github.com/tamon-james/carrer-os/blob/main/views/auth.php"
click node_dashboard_view "https://github.com/tamon-james/carrer-os/blob/main/views/dashboard.php"
click node_company_view "https://github.com/tamon-james/carrer-os/blob/main/views/company.php"
click node_repo "https://github.com/tamon-james/carrer-os/blob/main/src/Repositories/CareerRepository.php"
click node_app_core "https://github.com/tamon-james/carrer-os/blob/main/public/lib/app.php"

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_auth,node_auth_view toneBlue
class node_dashboard,node_company_route,node_company_list,node_calendar,node_flow,node_dashboard_view,node_company_view toneAmber
class node_interview_mode,node_draft_api,node_interview_view,node_notes,node_resources toneMint
class node_upload_service,node_repo,node_app_core,node_database,node_private_files toneRose
class node_candidate toneIndigo
```

## Components

### Web entry points

- [Account access](https://github.com/tamon-james/carrer-os/blob/main/public/login.php): `public/login.php`
- [Authentication screen](https://github.com/tamon-james/carrer-os/blob/main/views/auth.php): `views/auth.php`

### Job search workflow

- [Dashboard](https://github.com/tamon-james/carrer-os/blob/main/public/index.php): `public/index.php`
- [Company workspace](https://github.com/tamon-james/carrer-os/blob/main/public/company.php): `public/company.php`
- [Company list](https://github.com/tamon-james/carrer-os/blob/main/public/companyFile.php): `public/companyFile.php`
- [Calendar search](https://github.com/tamon-james/carrer-os/blob/main/public/index.php): `public/index.php`
- [Selection flow](https://github.com/tamon-james/carrer-os/blob/main/public/company.php): `public/company.php`
- [Dashboard screen](https://github.com/tamon-james/carrer-os/blob/main/views/dashboard.php): `views/dashboard.php`
- [Company screen](https://github.com/tamon-james/carrer-os/blob/main/views/company.php): `views/company.php`

### Interview preparation

- [Interview mode](https://github.com/tamon-james/carrer-os/blob/main/public/campe.php): `public/campe.php`
- [Draft autosave](https://github.com/tamon-james/carrer-os/blob/main/public/api/interview-draft.php): `public/api/interview-draft.php`
- [Interview screen](https://github.com/tamon-james/carrer-os/blob/main/views/interview.php): `views/interview.php`
- [Notes and logs](https://github.com/tamon-james/carrer-os/blob/main/public/notes.php): `public/notes.php`
- [Company resources](https://github.com/tamon-james/carrer-os/blob/main/public/resources.php): `public/resources.php`

### Application core

- [Upload handling](https://github.com/tamon-james/carrer-os/blob/main/src/Services/ResourceService.php): `src/Services/ResourceService.php`
- [Career repository](https://github.com/tamon-james/carrer-os/blob/main/src/Repositories/CareerRepository.php): `src/Repositories/CareerRepository.php`
- [Application services](https://github.com/tamon-james/carrer-os/blob/main/public/lib/app.php): `public/lib/app.php`
- **MySQL database**
- **Private uploads**

### Other components

- **Candidate**

## Connections

- Candidate → Account access: signs in
- Candidate → Dashboard: manages job search
- Candidate → Company workspace: reviews company
- Candidate → Interview mode: prepares interview
- Dashboard → Application services: loads bootstrap (evidence: `public/index.php`)
- Dashboard → Career repository: queries dashboard (evidence: `public/index.php`)
- Dashboard → Dashboard screen: renders (evidence: `public/index.php`)
- Dashboard → Calendar search: searches availability (evidence: `public/index.php`)
- Company workspace → Application services: loads bootstrap (evidence: `public/company.php`)
- Company workspace → Career repository: loads workspace (evidence: `public/company.php`)
- Company workspace → Company screen: renders (evidence: `public/company.php`)
- Company workspace → Selection flow: updates stages (evidence: `public/company.php`)
- Company list → Career repository: uses repository (evidence: `public/companyFile.php`)
- Interview mode → Career repository: uses repository (evidence: `public/campe.php`)
- Draft autosave → Career repository: saves draft (evidence: `public/api/interview-draft.php`)
- Company resources → Career repository: uses repository (evidence: `public/resources.php`)
- Company resources → Upload handling: stores upload (evidence: `public/resources.php`)
- Career repository → MySQL database: reads and writes (evidence: `src/Repositories/CareerRepository.php`)
- Application services → MySQL database: creates connection (evidence: `public/lib/app.php`)
- Upload handling → Private uploads: stores files (evidence: `src/Services/ResourceService.php`)
- Account access → Application services: loads bootstrap (evidence: `public/login.php`)
- Account access → Authentication screen: renders screen
- Interview mode → Interview screen: renders screen
- Interview mode → Draft autosave: autosaves notes
- Company workspace → Notes and logs: manages company notes
- Company workspace → Company resources: manages materials
