# polishettysreeja-stack/career-os architecture

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

- Interactive diagram: https://gitdiagram.com/polishettysreeja-stack/career-os
- Repository: https://github.com/polishettysreeja-stack/career-os

## Overview

CareerOS is a personalized career-guidance web app. Users start from the dashboard, complete an interest assessment, explore career options, and can request detailed guidance, scenario simulations, a seven-day action plan, or assistant answers. The React app coordinates these views and keeps profile state in browser local storage; feature views call a shared API client for AI-backed results. The README identifies Gemini and Cloud Run, but server implementation details were not excerpted, so backend/provider connections are shown only as unverified.

Main entry points: [`src/App.tsx`](https://github.com/polishettysreeja-stack/career-os/blob/main/src/App.tsx) (App coordinator), [`src/utils/api.ts`](https://github.com/polishettysreeja-stack/career-os/blob/main/src/utils/api.ts) (API client), [`src/data/careerData.ts`](https://github.com/polishettysreeja-stack/career-os/blob/main/src/data/careerData.ts) (Career reference data), [`src/components/WhatIfSimulatorView.tsx`](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/WhatIfSimulatorView.tsx) (What-if simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Career experience"]
  node_dashboard["Dashboard<br/>[DashboardView.tsx]"]
end

subgraph group_guidance["Guidance features"]
  node_assessment["Interest assessment<br/>[AssessmentView.tsx]"]
  node_explorer["Career explorer"]
  node_career_guidance["Career guidance"]
  node_simulator["What-if simulator"]
  node_plan["Seven-day plan<br/>[ActionPlanView.tsx]"]
  node_assistant["Doubt assistant<br/>[AssistantView.tsx]"]
end

subgraph group_client["Client foundation"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App coordinator<br/>[App.tsx]"]
  node_shell["Layout shell<br/>[LayoutShell.tsx]"]
  node_errors["Error boundary<br/>[ErrorBoundary.tsx]"]
  node_profile["Career profile"]
  node_local[("Browser storage")]
  node_types["Career types<br/>[career.ts]"]
  node_data["Career reference data<br/>[careerData.ts]"]
end

subgraph group_backend["AI backend"]
  node_api["API client<br/>[api.ts]"]
  node_server["API server<br/>[server.ts]"]
  node_gemini{{"Gemini AI"}}
end

node_person(("Career seeker"))

node_person -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_shell
node_app -->|"wraps views"| node_errors
node_app -->|"uses state"| node_profile
node_profile -->|"reads and writes"| node_local
node_app -->|"routes views"| node_dashboard
node_app -->|"routes views"| node_assessment
node_app -->|"routes views"| node_explorer
node_app -->|"routes views"| node_career_guidance
node_app -->|"routes views"| node_simulator
node_app -->|"routes views"| node_plan
node_app -->|"routes views"| node_assistant
node_assessment -->|"requests analysis"| node_api
node_career_guidance -->|"requests guidance"| node_api
node_simulator -->|"requests simulation"| node_api
node_plan -->|"requests plan"| node_api
node_assistant -->|"sends messages"| node_api
node_explorer -->|"reads career data"| node_data
node_dashboard -->|"reads stage data"| node_data
node_simulator -->|"reads presets"| node_data
node_assistant -->|"reads prompts"| node_data
node_api -.->|"posts API requests"| node_server
node_server -.->|"uses AI provider"| node_gemini

click node_entry "https://github.com/polishettysreeja-stack/career-os/blob/main/src/main.tsx"
click node_app "https://github.com/polishettysreeja-stack/career-os/blob/main/src/App.tsx"
click node_shell "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/LayoutShell.tsx"
click node_errors "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/ErrorBoundary.tsx"
click node_profile "https://github.com/polishettysreeja-stack/career-os/blob/main/src/hooks/useCareerProfile.ts"
click node_types "https://github.com/polishettysreeja-stack/career-os/blob/main/src/types/career.ts"
click node_data "https://github.com/polishettysreeja-stack/career-os/blob/main/src/data/careerData.ts"
click node_dashboard "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/DashboardView.tsx"
click node_assessment "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/AssessmentView.tsx"
click node_explorer "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/CareerExplorerView.tsx"
click node_career_guidance "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/CareerGuidanceView.tsx"
click node_simulator "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/WhatIfSimulatorView.tsx"
click node_plan "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/ActionPlanView.tsx"
click node_assistant "https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/AssistantView.tsx"
click node_api "https://github.com/polishettysreeja-stack/career-os/blob/main/src/utils/api.ts"
click node_server "https://github.com/polishettysreeja-stack/career-os/blob/main/server.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 toneBlue
class node_assessment,node_explorer,node_career_guidance,node_simulator,node_plan,node_assistant toneAmber
class node_entry,node_app,node_shell,node_errors,node_profile,node_local,node_types,node_data toneMint
class node_api,node_server,node_gemini toneRose
class node_person toneIndigo
```

## Components

### Career experience

- [Dashboard](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/DashboardView.tsx): `src/components/DashboardView.tsx`

### Guidance features

- [Interest assessment](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/AssessmentView.tsx): `src/components/AssessmentView.tsx`
- [Career explorer](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/CareerExplorerView.tsx): `src/components/CareerExplorerView.tsx`
- [Career guidance](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/CareerGuidanceView.tsx): `src/components/CareerGuidanceView.tsx`
- [What-if simulator](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/WhatIfSimulatorView.tsx): `src/components/WhatIfSimulatorView.tsx`
- [Seven-day plan](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/ActionPlanView.tsx): `src/components/ActionPlanView.tsx`
- [Doubt assistant](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/AssistantView.tsx): `src/components/AssistantView.tsx`

### Client foundation

- [React entry](https://github.com/polishettysreeja-stack/career-os/blob/main/src/main.tsx): `src/main.tsx`
- [App coordinator](https://github.com/polishettysreeja-stack/career-os/blob/main/src/App.tsx): `src/App.tsx`
- [Layout shell](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/LayoutShell.tsx): `src/components/LayoutShell.tsx`
- [Error boundary](https://github.com/polishettysreeja-stack/career-os/blob/main/src/components/ErrorBoundary.tsx): `src/components/ErrorBoundary.tsx`
- [Career profile](https://github.com/polishettysreeja-stack/career-os/blob/main/src/hooks/useCareerProfile.ts): `src/hooks/useCareerProfile.ts`
- **Browser storage**
- [Career types](https://github.com/polishettysreeja-stack/career-os/blob/main/src/types/career.ts): `src/types/career.ts`
- [Career reference data](https://github.com/polishettysreeja-stack/career-os/blob/main/src/data/careerData.ts): `src/data/careerData.ts`

### AI backend

- [API client](https://github.com/polishettysreeja-stack/career-os/blob/main/src/utils/api.ts): `src/utils/api.ts`
- [API server](https://github.com/polishettysreeja-stack/career-os/blob/main/server.ts): `server.ts`
- **Gemini AI**

### Other components

- **Career seeker**

## Connections

- Career seeker → React entry: opens app (evidence: `src/main.tsx`)
- React entry → App coordinator: renders (evidence: `src/main.tsx`)
- App coordinator → Layout shell: renders (evidence: `src/App.tsx`)
- App coordinator → Error boundary: wraps views (evidence: `src/App.tsx`)
- App coordinator → Career profile: uses state (evidence: `src/App.tsx`)
- Career profile → Browser storage: reads and writes (evidence: `src/hooks/useCareerProfile.ts`)
- App coordinator → Dashboard: routes views (evidence: `src/App.tsx`)
- App coordinator → Interest assessment: routes views (evidence: `src/App.tsx`)
- App coordinator → Career explorer: routes views (evidence: `src/App.tsx`)
- App coordinator → Career guidance: routes views (evidence: `src/App.tsx`)
- App coordinator → What-if simulator: routes views (evidence: `src/App.tsx`)
- App coordinator → Seven-day plan: routes views (evidence: `src/App.tsx`)
- App coordinator → Doubt assistant: routes views (evidence: `src/App.tsx`)
- Interest assessment → API client: requests analysis (evidence: `src/components/AssessmentView.tsx`)
- Career guidance → API client: requests guidance (evidence: `src/components/CareerGuidanceView.tsx`)
- What-if simulator → API client: requests simulation (evidence: `src/components/WhatIfSimulatorView.tsx`)
- Seven-day plan → API client: requests plan (evidence: `src/components/ActionPlanView.tsx`)
- Doubt assistant → API client: sends messages (evidence: `src/components/AssistantView.tsx`)
- Career explorer → Career reference data: reads career data (evidence: `src/components/CareerExplorerView.tsx`)
- Dashboard → Career reference data: reads stage data (evidence: `src/components/DashboardView.tsx`)
- What-if simulator → Career reference data: reads presets (evidence: `src/components/WhatIfSimulatorView.tsx`)
- Doubt assistant → Career reference data: reads prompts (evidence: `src/components/AssistantView.tsx`)
- API client → API server: posts API requests
- API server → Gemini AI: uses AI provider
