# parvsurana26/career-compass-ai architecture

> Architecture diagram of the GitHub repository parvsurana26/career-compass-ai, 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/parvsurana26/career-compass-ai
- Repository: https://github.com/parvsurana26/career-compass-ai

## Overview

Career Compass AI is a React career-guidance web app. Users discover the product on the landing page, sign up or log in, and enter a dashboard that links to profile building, career matches, courses, AI assistance, achievements, and job tracking. Authentication uses Firebase Auth; the repository configures Firestore and Storage, but the sampled code does not establish product data flows through them. Page and layout relationships are based on excerpts or SOURCE INDEX references; unsampled feature internals and data connections are intentionally not inferred.

Main entry points: [`src/App.tsx`](https://github.com/parvsurana26/career-compass-ai/blob/main/src/App.tsx) (Application router), [`src/components/DashboardLayout.tsx`](https://github.com/parvsurana26/career-compass-ai/blob/main/src/components/DashboardLayout.tsx) (Dashboard navigation), [`src/contexts/AuthContext.tsx`](https://github.com/parvsurana26/career-compass-ai/blob/main/src/contexts/AuthContext.tsx) (Authentication context), [`src/pages/Dashboard.tsx`](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Dashboard.tsx) (Dashboard overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Product discovery"]
  node_landing["Landing sections"]
  node_landing_page["Landing page<br/>[Index.tsx]"]
end

subgraph group_identity["Identity and routing"]
  node_app["Application router<br/>[App.tsx]"]
  node_login["Login<br/>[Login.tsx]"]
  node_signup["Signup<br/>[Signup.tsx]"]
  node_auth_context["Authentication context<br/>[AuthContext.tsx]"]
  node_firebase["Firebase services<br/>[firebase.ts]"]
end

subgraph group_career["Career workspace"]
  node_dashboard["Dashboard overview<br/>[Dashboard.tsx]"]
  node_layout["Dashboard navigation"]
  node_profile["Profile builder<br/>[ProfileBuilder.tsx]"]
  node_matches["Career matches<br/>[CareerMatches.tsx]"]
  node_courses["Course suggestions<br/>[Courses.tsx]"]
  node_assistant["AI assistant<br/>[AIAssistant.tsx]"]
  node_achievements["Achievements<br/>[Achievements.tsx]"]
  node_job_tracker["Job tracker<br/>[JobTracker.tsx]"]
end

subgraph group_shared["Shared interface"]
  node_ui_primitives["UI primitives"]
  node_toast_hook["Toast state hook<br/>[use-toast.ts]"]
end

node_visitor(("Visitor or user"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing_page
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_matches
node_app -->|"routes to"| node_courses
node_app -->|"routes to"| node_assistant
node_app -->|"routes to"| node_achievements
node_app -->|"routes to"| node_job_tracker
node_app -->|"provides"| node_auth_context
node_landing_page -->|"renders"| node_landing
node_login -->|"uses auth"| node_auth_context
node_signup -->|"uses auth"| node_auth_context
node_auth_context -->|"calls Auth"| node_firebase
node_dashboard -->|"checks session"| node_auth_context
node_dashboard -->|"renders"| node_layout
node_profile -->|"renders"| node_layout
node_matches -->|"renders"| node_layout
node_courses -->|"renders"| node_layout
node_assistant -->|"renders"| node_layout
node_achievements -->|"renders"| node_layout
node_job_tracker -->|"renders"| node_layout
node_layout -->|"uses session"| node_auth_context
node_layout -->|"uses notifications"| node_toast_hook
node_toast_hook -->|"uses toast types"| node_ui_primitives

click node_app "https://github.com/parvsurana26/career-compass-ai/blob/main/src/App.tsx"
click node_landing "https://github.com/parvsurana26/career-compass-ai/tree/main/src/components/landing"
click node_landing_page "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Index.tsx"
click node_login "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Login.tsx"
click node_signup "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Signup.tsx"
click node_auth_context "https://github.com/parvsurana26/career-compass-ai/blob/main/src/contexts/AuthContext.tsx"
click node_firebase "https://github.com/parvsurana26/career-compass-ai/blob/main/src/lib/firebase.ts"
click node_dashboard "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Dashboard.tsx"
click node_layout "https://github.com/parvsurana26/career-compass-ai/blob/main/src/components/DashboardLayout.tsx"
click node_profile "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/ProfileBuilder.tsx"
click node_matches "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/CareerMatches.tsx"
click node_courses "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Courses.tsx"
click node_assistant "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/AIAssistant.tsx"
click node_achievements "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Achievements.tsx"
click node_job_tracker "https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/JobTracker.tsx"
click node_ui_primitives "https://github.com/parvsurana26/career-compass-ai/tree/main/src/components/ui"
click node_toast_hook "https://github.com/parvsurana26/career-compass-ai/blob/main/src/hooks/use-toast.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_landing_page,node_visitor toneBlue
class node_app,node_login,node_signup,node_auth_context,node_firebase toneAmber
class node_dashboard,node_layout,node_profile,node_matches,node_courses,node_assistant,node_achievements,node_job_tracker toneMint
class node_ui_primitives,node_toast_hook toneRose
```

## Components

### Product discovery

- [Landing sections](https://github.com/parvsurana26/career-compass-ai/tree/main/src/components/landing): `src/components/landing`
- [Landing page](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`

### Identity and routing

- [Application router](https://github.com/parvsurana26/career-compass-ai/blob/main/src/App.tsx): `src/App.tsx`
- [Login](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Signup](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Signup.tsx): `src/pages/Signup.tsx`
- [Authentication context](https://github.com/parvsurana26/career-compass-ai/blob/main/src/contexts/AuthContext.tsx): `src/contexts/AuthContext.tsx`
- [Firebase services](https://github.com/parvsurana26/career-compass-ai/blob/main/src/lib/firebase.ts): `src/lib/firebase.ts`

### Career workspace

- [Dashboard overview](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`
- [Dashboard navigation](https://github.com/parvsurana26/career-compass-ai/blob/main/src/components/DashboardLayout.tsx): `src/components/DashboardLayout.tsx`
- [Profile builder](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/ProfileBuilder.tsx): `src/pages/ProfileBuilder.tsx`
- [Career matches](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/CareerMatches.tsx): `src/pages/CareerMatches.tsx`
- [Course suggestions](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Courses.tsx): `src/pages/Courses.tsx`
- [AI assistant](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/AIAssistant.tsx): `src/pages/AIAssistant.tsx`
- [Achievements](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/Achievements.tsx): `src/pages/Achievements.tsx`
- [Job tracker](https://github.com/parvsurana26/career-compass-ai/blob/main/src/pages/JobTracker.tsx): `src/pages/JobTracker.tsx`

### Shared interface

- [UI primitives](https://github.com/parvsurana26/career-compass-ai/tree/main/src/components/ui): `src/components/ui`
- [Toast state hook](https://github.com/parvsurana26/career-compass-ai/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`

### Other components

- **Visitor or user**

## Connections

- Visitor or user → Application router: opens (evidence: `src/App.tsx`)
- Application router → Landing page: routes to (evidence: `src/App.tsx`)
- Application router → Login: routes to (evidence: `src/App.tsx`)
- Application router → Signup: routes to (evidence: `src/App.tsx`)
- Application router → Dashboard overview: routes to (evidence: `src/App.tsx`)
- Application router → Profile builder: routes to (evidence: `src/App.tsx`)
- Application router → Career matches: routes to (evidence: `src/App.tsx`)
- Application router → Course suggestions: routes to (evidence: `src/App.tsx`)
- Application router → AI assistant: routes to (evidence: `src/App.tsx`)
- Application router → Achievements: routes to (evidence: `src/App.tsx`)
- Application router → Job tracker: routes to (evidence: `src/App.tsx`)
- Application router → Authentication context: provides (evidence: `src/App.tsx`)
- Landing page → Landing sections: renders (evidence: `src/pages/Index.tsx`)
- Login → Authentication context: uses auth (evidence: `src/pages/Login.tsx`)
- Signup → Authentication context: uses auth (evidence: `src/pages/Signup.tsx`)
- Authentication context → Firebase services: calls Auth (evidence: `src/contexts/AuthContext.tsx`)
- Dashboard overview → Authentication context: checks session (evidence: `src/pages/Dashboard.tsx`)
- Dashboard overview → Dashboard navigation: renders (evidence: `src/pages/Dashboard.tsx`)
- Profile builder → Dashboard navigation: renders (evidence: `src/pages/ProfileBuilder.tsx`)
- Career matches → Dashboard navigation: renders (evidence: `src/pages/CareerMatches.tsx`)
- Course suggestions → Dashboard navigation: renders (evidence: `src/pages/Courses.tsx`)
- AI assistant → Dashboard navigation: renders (evidence: `src/pages/AIAssistant.tsx`)
- Achievements → Dashboard navigation: renders (evidence: `src/pages/Achievements.tsx`)
- Job tracker → Dashboard navigation: renders (evidence: `src/pages/JobTracker.tsx`)
- Dashboard navigation → Authentication context: uses session (evidence: `src/components/DashboardLayout.tsx`)
- Dashboard navigation → Toast state hook: uses notifications (evidence: `src/components/DashboardLayout.tsx`)
- Toast state hook → UI primitives: uses toast types (evidence: `src/hooks/use-toast.ts`)
