# charanvignesh358-ux/linkedai architecture

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

- Interactive diagram: https://gitdiagram.com/charanvignesh358-ux/linkedai
- Repository: https://github.com/charanvignesh358-ux/linkedai

## Overview

LinkedAI is a career-management and LinkedIn automation platform. A signed-in user enters the React SPA, where authentication gates the app and shared context supplies dashboard and workflow data. For automation, the Manager Agent page starts the browser-side pipeline runner, which streams events from the documented backend pipeline; results and account data are reflected through Firebase-backed state. The UI also exposes separate resume, networking, content, interview, Figma, chat, and administration capabilities. Backend implementation files are absent from the tree, so those documented services are represented only at the supported directory level; their internal calls are not inferred.

Main entry points: [`src/App.js`](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/App.js) (React app router), [`src/context/AppContext.js`](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/context/AppContext.js) (App data context), [`backend`](https://github.com/charanvignesh358-ux/linkedai/tree/main/backend) (Automation backend), [`src/pages/ManagerAgent.js`](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ManagerAgent.js) (Manager agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_spa["React app router<br/>[App.js]"]
end

subgraph group_career["Career workflows"]
  node_dashboard["Dashboard<br/>[Dashboard.js]"]
  node_jobs["Job search<br/>[Jobs.js]"]
  node_applications["Application tracker<br/>[Applications.js]"]
  node_resumes["Resume workspace<br/>[Resumes.js]"]
  node_resumeai["Resume AI tools<br/>[ResumeAI.js]"]
  node_networking["Networking<br/>[Networking.js]"]
  node_content["Content studio<br/>[ContentStudio.js]"]
  node_interview["Interview coach<br/>[InterviewCoach.js]"]
  node_figma["Figma portfolio"]
  node_chat["AI chatbot<br/>[ChatBot.js]"]
end

subgraph group_agent["Automation and AI"]
  node_manager["Manager agent<br/>[ManagerAgent.js]"]
  node_safety["Agent safety controls<br/>[managerAgent.js]"]
  node_runner["Pipeline SSE client<br/>[pipelineRunner.js]"]
  node_backend["Automation backend"]
  node_telegram["Telegram sender<br/>[telegram.js]"]
end

subgraph group_state["Identity and data"]
  node_login["Sign-in and profile<br/>[AuthPage.js]"]
  node_auth["Auth context<br/>[AuthContext.js]"]
  node_appctx["App data context<br/>[AppContext.js]"]
  node_firebase["Firebase service<br/>[firebaseService.js]"]
end

subgraph group_integrations["External services"]
  node_firestore[("Firestore")]
  node_relay["Telegram relay<br/>[telegram-relay.js]"]
  node_telegramapi["Telegram Bot API"]
end

node_user(("LinkedAI user"))

node_user -->|"uses"| node_spa
node_spa -->|"provides auth"| node_auth
node_spa -->|"routes unauthenticated"| node_login
node_spa -->|"routes"| node_dashboard
node_spa -->|"routes"| node_jobs
node_spa -->|"routes"| node_applications
node_spa -->|"routes"| node_resumes
node_spa -->|"routes"| node_networking
node_spa -->|"routes"| node_content
node_spa -->|"routes"| node_interview
node_spa -->|"routes"| node_figma
node_spa -->|"routes"| node_chat
node_spa -->|"routes"| node_manager
node_login -->|"uses"| node_auth
node_auth -->|"reads and writes profiles"| node_firestore
node_appctx -->|"loads and persists state"| node_firebase
node_firebase -->|"reads and writes"| node_firestore
node_dashboard -->|"reads shared state"| node_appctx
node_jobs -->|"uses shared state"| node_appctx
node_applications -->|"updates workflow state"| node_appctx
node_resumes -->|"uses shared state"| node_appctx
node_resumeai -->|"uses shared state"| node_appctx
node_networking -->|"uses shared state"| node_appctx
node_manager -->|"uses controls"| node_safety
node_manager -->|"starts pipeline"| node_runner
node_runner -->|"streams events"| node_backend
node_backend -.->|"stores results"| node_firestore
node_content -.->|"syncs content"| node_backend
node_chat -.->|"sends messages"| node_backend
node_telegram -->|"posts notification"| node_relay
node_relay -.->|"forwards message"| node_telegramapi

click node_spa "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/App.js"
click node_login "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/AuthPage.js"
click node_auth "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/context/AuthContext.js"
click node_appctx "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/context/AppContext.js"
click node_firebase "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/firebase/firebaseService.js"
click node_dashboard "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Dashboard.js"
click node_jobs "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Jobs.js"
click node_applications "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Applications.js"
click node_resumes "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Resumes.js"
click node_resumeai "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ResumeAI.js"
click node_networking "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Networking.js"
click node_content "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ContentStudio.js"
click node_interview "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/InterviewCoach.js"
click node_figma "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/FigmaIntegration.js"
click node_chat "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ChatBot.js"
click node_manager "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ManagerAgent.js"
click node_safety "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/managerAgent.js"
click node_runner "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/pipelineRunner.js"
click node_backend "https://github.com/charanvignesh358-ux/linkedai/tree/main/backend"
click node_telegram "https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/telegram.js"
click node_relay "https://github.com/charanvignesh358-ux/linkedai/blob/main/cloudflare-worker/telegram-relay.js"

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_spa,node_user toneBlue
class node_dashboard,node_jobs,node_applications,node_resumes,node_resumeai,node_networking,node_content,node_interview,node_figma,node_chat toneAmber
class node_manager,node_safety,node_runner,node_backend,node_telegram toneMint
class node_login,node_auth,node_appctx,node_firebase toneRose
class node_firestore,node_relay,node_telegramapi toneIndigo
```

## Components

### Application shell

- [React app router](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/App.js): `src/App.js`

### Career workflows

- [Dashboard](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Dashboard.js): `src/pages/Dashboard.js`
- [Job search](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Jobs.js): `src/pages/Jobs.js`
- [Application tracker](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Applications.js): `src/pages/Applications.js`
- [Resume workspace](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Resumes.js): `src/pages/Resumes.js`
- [Resume AI tools](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ResumeAI.js): `src/pages/ResumeAI.js`
- [Networking](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/Networking.js): `src/pages/Networking.js`
- [Content studio](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ContentStudio.js): `src/pages/ContentStudio.js`
- [Interview coach](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/InterviewCoach.js): `src/pages/InterviewCoach.js`
- [Figma portfolio](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/FigmaIntegration.js): `src/pages/FigmaIntegration.js`
- [AI chatbot](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ChatBot.js): `src/pages/ChatBot.js`

### Automation and AI

- [Manager agent](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/ManagerAgent.js): `src/pages/ManagerAgent.js`
- [Agent safety controls](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/managerAgent.js): `src/agents/managerAgent.js`
- [Pipeline SSE client](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/pipelineRunner.js): `src/agents/pipelineRunner.js`
- [Automation backend](https://github.com/charanvignesh358-ux/linkedai/tree/main/backend): `backend`
- [Telegram sender](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/agents/telegram.js): `src/agents/telegram.js`

### Identity and data

- [Sign-in and profile](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/pages/AuthPage.js): `src/pages/AuthPage.js`
- [Auth context](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/context/AuthContext.js): `src/context/AuthContext.js`
- [App data context](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/context/AppContext.js): `src/context/AppContext.js`
- [Firebase service](https://github.com/charanvignesh358-ux/linkedai/blob/main/src/firebase/firebaseService.js): `src/firebase/firebaseService.js`

### External services

- **Firestore**
- [Telegram relay](https://github.com/charanvignesh358-ux/linkedai/blob/main/cloudflare-worker/telegram-relay.js): `cloudflare-worker/telegram-relay.js`
- **Telegram Bot API**

### Other components

- **LinkedAI user**

## Connections

- LinkedAI user → React app router: uses (evidence: `README.md`)
- React app router → Auth context: provides auth (evidence: `src/App.js`)
- React app router → Sign-in and profile: routes unauthenticated (evidence: `src/App.js`)
- React app router → Dashboard: routes (evidence: `src/App.js`)
- React app router → Job search: routes (evidence: `src/App.js`)
- React app router → Application tracker: routes (evidence: `src/App.js`)
- React app router → Resume workspace: routes (evidence: `src/App.js`)
- React app router → Networking: routes (evidence: `src/App.js`)
- React app router → Content studio: routes (evidence: `src/App.js`)
- React app router → Interview coach: routes (evidence: `src/App.js`)
- React app router → Figma portfolio: routes (evidence: `src/App.js`)
- React app router → AI chatbot: routes (evidence: `src/App.js`)
- React app router → Manager agent: routes (evidence: `src/App.js`)
- Sign-in and profile → Auth context: uses (evidence: `src/pages/AuthPage.js`)
- Auth context → Firestore: reads and writes profiles (evidence: `src/context/AuthContext.js`)
- App data context → Firebase service: loads and persists state (evidence: `src/context/AppContext.js`)
- Firebase service → Firestore: reads and writes (evidence: `src/firebase/firebaseService.js`)
- Dashboard → App data context: reads shared state (evidence: `src/pages/Dashboard.js`)
- Job search → App data context: uses shared state (evidence: `src/pages/Jobs.js`)
- Application tracker → App data context: updates workflow state (evidence: `src/pages/Applications.js`)
- Resume workspace → App data context: uses shared state (evidence: `src/pages/Resumes.js`)
- Resume AI tools → App data context: uses shared state (evidence: `src/pages/ResumeAI.js`)
- Networking → App data context: uses shared state (evidence: `src/pages/Networking.js`)
- Manager agent → Agent safety controls: uses controls (evidence: `src/pages/ManagerAgent.js`)
- Manager agent → Pipeline SSE client: starts pipeline (evidence: `src/pages/ManagerAgent.js`)
- Pipeline SSE client → Automation backend: streams events (evidence: `src/agents/pipelineRunner.js`)
- Automation backend → Firestore: stores results (evidence: `README.md`)
- Content studio → Automation backend: syncs content (evidence: `README.md`)
- AI chatbot → Automation backend: sends messages (evidence: `README.md`)
- Telegram sender → Telegram relay: posts notification (evidence: `src/agents/telegram.js`)
- Telegram relay → Telegram Bot API: forwards message (evidence: `cloudflare-worker/telegram-relay.js`)
