# padmesh004/career-lens-ai-agent architecture

> Architecture diagram of the GitHub repository padmesh004/career-lens-ai-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/padmesh004/career-lens-ai-agent
- Repository: https://github.com/padmesh004/career-lens-ai-agent

## Overview

CareerLens.AI is a browser-based career-review app with portfolio and resume analysis, review dashboards, PDF downloads, and a contextual coaching chat. Users choose a review, provide portfolio or resume material and a target role, then inspect results and optionally export or ask follow-up questions. The excerpts establish the app shell, report-to-export usage, and chat request; server.ts is present but its implementation was not excerpted, so its relationship to the client is left unverified.

Main entry points: [`src/App.tsx`](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/App.tsx) (App and navigation), [`src/components/PortfolioReportView.tsx`](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/PortfolioReportView.tsx) (Portfolio review), [`src/components/ResumeReportView.tsx`](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ResumeReportView.tsx) (Resume review), [`src/components/ChatAssistant.tsx`](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ChatAssistant.tsx) (Career coach chat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_app["App and navigation<br/>[App.tsx]"]
  node_header["Tab navigation<br/>[Header.tsx]"]
  node_hero["Review entry<br/>[Hero.tsx]"]
  node_how_it_works["How it works<br/>[HowItWorks.tsx]"]
  node_about["Product information<br/>[About.tsx]"]
end

subgraph group_reviews["Career reviews"]
  node_portfolio_form["Portfolio submission"]
  node_resume_form["Resume submission"]
end

subgraph group_results["Results and coaching"]
  node_portfolio_report["Portfolio review"]
  node_resume_report["Resume review"]
  node_chat["Career coach chat<br/>[ChatAssistant.tsx]"]
  node_pdf["PDF report generator<br/>[pdfGenerator.ts]"]
  node_report_types["Report data types<br/>[types.ts]"]
end

subgraph group_service["Backend service"]
  node_backend["API server<br/>[server.ts]"]
end

node_career_user(("Career user"))

node_career_user -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_how_it_works
node_app -->|"renders"| node_about
node_app -->|"renders"| node_portfolio_report
node_app -->|"renders"| node_resume_report
node_portfolio_report -->|"generates download"| node_pdf
node_resume_report -->|"generates download"| node_pdf
node_resume_report -->|"renders"| node_chat
node_portfolio_report -->|"uses"| node_chat
node_chat -.->|"requests assistant"| node_backend

click node_app "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/App.tsx"
click node_header "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/Header.tsx"
click node_hero "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/Hero.tsx"
click node_how_it_works "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/HowItWorks.tsx"
click node_about "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/About.tsx"
click node_portfolio_form "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/PortfolioAnalyzerForm.tsx"
click node_resume_form "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ResumeAnalyzerForm.tsx"
click node_portfolio_report "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/PortfolioReportView.tsx"
click node_resume_report "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ResumeReportView.tsx"
click node_chat "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ChatAssistant.tsx"
click node_pdf "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/utils/pdfGenerator.ts"
click node_report_types "https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/types.ts"
click node_backend "https://github.com/padmesh004/career-lens-ai-agent/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_app,node_header,node_hero,node_how_it_works,node_about,node_career_user toneBlue
class node_portfolio_form,node_resume_form toneAmber
class node_portfolio_report,node_resume_report,node_chat,node_pdf,node_report_types toneMint
class node_backend toneRose
```

## Components

### App shell

- [App and navigation](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/App.tsx): `src/App.tsx`
- [Tab navigation](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Review entry](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [How it works](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/HowItWorks.tsx): `src/components/HowItWorks.tsx`
- [Product information](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/About.tsx): `src/components/About.tsx`

### Career reviews

- [Portfolio submission](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/PortfolioAnalyzerForm.tsx): `src/components/PortfolioAnalyzerForm.tsx`
- [Resume submission](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ResumeAnalyzerForm.tsx): `src/components/ResumeAnalyzerForm.tsx`

### Results and coaching

- [Portfolio review](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/PortfolioReportView.tsx): `src/components/PortfolioReportView.tsx`
- [Resume review](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ResumeReportView.tsx): `src/components/ResumeReportView.tsx`
- [Career coach chat](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/components/ChatAssistant.tsx): `src/components/ChatAssistant.tsx`
- [PDF report generator](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/utils/pdfGenerator.ts): `src/utils/pdfGenerator.ts`
- [Report data types](https://github.com/padmesh004/career-lens-ai-agent/blob/main/src/types.ts): `src/types.ts`

### Backend service

- [API server](https://github.com/padmesh004/career-lens-ai-agent/blob/main/server.ts): `server.ts`

### Other components

- **Career user**

## Connections

- Career user → App and navigation: uses (evidence: `src/App.tsx`)
- App and navigation → Tab navigation: renders (evidence: `src/App.tsx`)
- App and navigation → Review entry: renders (evidence: `src/App.tsx`)
- App and navigation → How it works: renders (evidence: `src/App.tsx`)
- App and navigation → Product information: renders (evidence: `src/App.tsx`)
- App and navigation → Portfolio review: renders (evidence: `src/App.tsx`)
- App and navigation → Resume review: renders (evidence: `src/App.tsx`)
- Portfolio review → PDF report generator: generates download (evidence: `src/components/PortfolioReportView.tsx`)
- Resume review → PDF report generator: generates download (evidence: `src/components/ResumeReportView.tsx`)
- Resume review → Career coach chat: renders (evidence: `src/components/ResumeReportView.tsx`)
- Portfolio review → Career coach chat: uses (evidence: `src/components/PortfolioReportView.tsx`)
- Career coach chat → API server: requests assistant
