# sudhasunchu28/shanthi-sudha- architecture

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

- Interactive diagram: https://gitdiagram.com/sudhasunchu28/shanthi-sudha-
- Repository: https://github.com/sudhasunchu28/shanthi-sudha-

## Overview

PathPilot AI is a student career companion: a student completes a career assessment, selects a recommended path, and works through a personalized roadmap, learning plan, projects, opportunities, and career-agent guidance. The frontend coordinates these workflows through shared career state and API requests; the server dispatches AI generation and supplies curated fallbacks, while profile state is persisted server-side and mirrored in browser storage. The README documents the full capability set, though some route and view implementations were not sampled, so uncertain connections are omitted.

Main entry points: [`src/App.tsx`](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/App.tsx) (Workspace router), [`src/context/CareerContext.tsx`](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/context/CareerContext.tsx) (Career workflow state), [`src/components/LearnView.tsx`](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/LearnView.tsx) (Learning companion), [`server.ts`](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server.ts) (Career API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Career experience"]
  node_landing["Career landing<br/>[LandingPage.tsx]"]
  node_workspace["Workspace router<br/>[App.tsx]"]
  node_discover["Career discovery<br/>[DiscoverView.tsx]"]
  node_dashboard["Progress dashboard<br/>[DashboardView.tsx]"]
  node_roadmap["Career roadmap<br/>[RoadmapView.tsx]"]
  node_learning["Learning companion<br/>[LearnView.tsx]"]
  node_projects["Project builder<br/>[ProjectsView.tsx]"]
  node_opportunities["Opportunity explorer"]
  node_agent["Career agent<br/>[AgentView.tsx]"]
  node_profile["Student profile<br/>[ProfileView.tsx]"]
  node_source_notice["Source notice<br/>[SourceNotice.tsx]"]
end

subgraph group_state["Career state"]
  node_career_context["Career workflow state<br/>[CareerContext.tsx]"]
  node_career_types["Career domain types<br/>[career.ts]"]
  node_career_metrics["Progress metrics<br/>[careerMetrics.ts]"]
end

subgraph group_services["Generation services"]
  node_api["Career API<br/>[server.ts]"]
  node_gemini["Gemini generation<br/>[gemini.ts]"]
  node_fallback["Curated guidance<br/>[fallbackData.ts]"]
end

subgraph group_persistence["Persistence"]
  node_store[("Profile JSON store<br/>[store.ts]")]
end

node_student(("Student"))
node_gemini_service{{"Google Gemini"}}
node_browser_storage[("Browser localStorage")]
node_learning_links{{"Learning resources"}}
node_opportunity_portals{{"Opportunity portals"}}

node_student -->|"opens"| node_landing
node_landing -->|"opens workspace"| node_workspace
node_workspace -->|"provides state"| node_career_context
node_workspace -->|"routes to"| node_discover
node_workspace -->|"routes to"| node_dashboard
node_workspace -->|"routes to"| node_roadmap
node_workspace -->|"routes to"| node_learning
node_workspace -->|"routes to"| node_projects
node_workspace -->|"routes to"| node_opportunities
node_workspace -->|"routes to"| node_agent
node_workspace -->|"routes to"| node_profile
node_discover -->|"submits assessment"| node_career_context
node_dashboard -->|"reads metrics"| node_career_metrics
node_learning -->|"reads metrics"| node_career_metrics
node_roadmap -->|"reads metrics"| node_career_metrics
node_career_context -->|"requests workflows"| node_api
node_career_context -->|"mirrors state"| node_browser_storage
node_career_context -->|"uses domain types"| node_career_types
node_api -->|"saves profiles"| node_store
node_api -->|"requests generation"| node_gemini
node_api -->|"uses on failure"| node_fallback
node_gemini -->|"calls API"| node_gemini_service
node_learning -->|"opens resources"| node_learning_links
node_opportunities -->|"visits listings"| node_opportunity_portals
node_discover -->|"shows source"| node_source_notice
node_learning -->|"shows source"| node_source_notice
node_projects -->|"shows source"| node_source_notice
node_roadmap -->|"shows source"| node_source_notice

click node_landing "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/LandingPage.tsx"
click node_workspace "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/App.tsx"
click node_discover "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/DiscoverView.tsx"
click node_dashboard "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/DashboardView.tsx"
click node_roadmap "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/RoadmapView.tsx"
click node_learning "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/LearnView.tsx"
click node_projects "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/ProjectsView.tsx"
click node_opportunities "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/OpportunitiesView.tsx"
click node_agent "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/AgentView.tsx"
click node_profile "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/ProfileView.tsx"
click node_source_notice "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/SourceNotice.tsx"
click node_career_context "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/context/CareerContext.tsx"
click node_career_types "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/types/career.ts"
click node_career_metrics "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/utils/careerMetrics.ts"
click node_api "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server.ts"
click node_gemini "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/gemini.ts"
click node_fallback "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/fallbackData.ts"
click node_store "https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/store.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_landing,node_workspace,node_discover,node_dashboard,node_roadmap,node_learning,node_projects,node_opportunities,node_agent,node_profile,node_source_notice toneBlue
class node_career_context,node_career_types,node_career_metrics,node_browser_storage toneAmber
class node_api,node_gemini,node_fallback toneMint
class node_store toneRose
class node_student,node_gemini_service,node_learning_links,node_opportunity_portals toneIndigo
```

## Components

### Career experience

- [Career landing](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/LandingPage.tsx): `src/components/LandingPage.tsx`
- [Workspace router](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/App.tsx): `src/App.tsx`
- [Career discovery](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/DiscoverView.tsx): `src/components/DiscoverView.tsx`
- [Progress dashboard](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/DashboardView.tsx): `src/components/DashboardView.tsx`
- [Career roadmap](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/RoadmapView.tsx): `src/components/RoadmapView.tsx`
- [Learning companion](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/LearnView.tsx): `src/components/LearnView.tsx`
- [Project builder](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/ProjectsView.tsx): `src/components/ProjectsView.tsx`
- [Opportunity explorer](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/OpportunitiesView.tsx): `src/components/OpportunitiesView.tsx`
- [Career agent](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/AgentView.tsx): `src/components/AgentView.tsx`
- [Student profile](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/ProfileView.tsx): `src/components/ProfileView.tsx`
- [Source notice](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/components/SourceNotice.tsx): `src/components/SourceNotice.tsx`

### Career state

- [Career workflow state](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/context/CareerContext.tsx): `src/context/CareerContext.tsx`
- [Career domain types](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/types/career.ts): `src/types/career.ts`
- [Progress metrics](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/src/utils/careerMetrics.ts): `src/utils/careerMetrics.ts`

### Generation services

- [Career API](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server.ts): `server.ts`
- [Gemini generation](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/gemini.ts): `server/gemini.ts`
- [Curated guidance](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/fallbackData.ts): `server/fallbackData.ts`

### Persistence

- [Profile JSON store](https://github.com/sudhasunchu28/shanthi-sudha-/blob/main/server/store.ts): `server/store.ts`

### Other components

- **Student**
- **Google Gemini**
- **Browser localStorage**
- **Learning resources**
- **Opportunity portals**

## Connections

- Student → Career landing: opens (evidence: `README.md`)
- Career landing → Workspace router: opens workspace (evidence: `src/components/LandingPage.tsx`)
- Workspace router → Career workflow state: provides state (evidence: `src/App.tsx`)
- Workspace router → Career discovery: routes to (evidence: `src/App.tsx`)
- Workspace router → Progress dashboard: routes to (evidence: `src/App.tsx`)
- Workspace router → Career roadmap: routes to (evidence: `src/App.tsx`)
- Workspace router → Learning companion: routes to (evidence: `src/App.tsx`)
- Workspace router → Project builder: routes to (evidence: `src/App.tsx`)
- Workspace router → Opportunity explorer: routes to (evidence: `src/App.tsx`)
- Workspace router → Career agent: routes to (evidence: `src/App.tsx`)
- Workspace router → Student profile: routes to (evidence: `src/App.tsx`)
- Career discovery → Career workflow state: submits assessment (evidence: `src/components/DiscoverView.tsx`)
- Progress dashboard → Progress metrics: reads metrics (evidence: `src/components/DashboardView.tsx`)
- Learning companion → Progress metrics: reads metrics (evidence: `src/components/LearnView.tsx`)
- Career roadmap → Progress metrics: reads metrics (evidence: `src/components/RoadmapView.tsx`)
- Career workflow state → Career API: requests workflows (evidence: `src/context/CareerContext.tsx`)
- Career workflow state → Browser localStorage: mirrors state (evidence: `src/context/CareerContext.tsx`)
- Career workflow state → Career domain types: uses domain types (evidence: `src/context/CareerContext.tsx`)
- Career API → Profile JSON store: saves profiles (evidence: `server.ts`)
- Career API → Gemini generation: requests generation (evidence: `server.ts`)
- Career API → Curated guidance: uses on failure (evidence: `server.ts`)
- Gemini generation → Google Gemini: calls API (evidence: `README.md`)
- Learning companion → Learning resources: opens resources (evidence: `src/components/LearnView.tsx`)
- Opportunity explorer → Opportunity portals: visits listings
- Career discovery → Source notice: shows source (evidence: `src/components/DiscoverView.tsx`)
- Learning companion → Source notice: shows source (evidence: `src/components/LearnView.tsx`)
- Project builder → Source notice: shows source (evidence: `src/components/ProjectsView.tsx`)
- Career roadmap → Source notice: shows source (evidence: `src/components/RoadmapView.tsx`)
