# ayush585/edgex architecture

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

- Interactive diagram: https://gitdiagram.com/ayush585/edgex
- Repository: https://github.com/ayush585/edgex

## Overview

Edgex is a React frontend for an AI mentorship suite. Students enter through the home page, navigate to a tool, and—where implemented—send prompts to an AI endpoint and save or revisit conversations. The graph also preserves the documented scholarship, notes, voice, resume, and resource tools. Source excerpts support the principal routing, chat, auth, and persistence links; unsampled feature internals and the separate backend are represented only where the README or routing establishes their role.

Main entry points: [`src/App.jsx`](https://github.com/ayush585/edgex/blob/main/src/App.jsx) (App and routes), [`src/pages/Home.jsx`](https://github.com/ayush585/edgex/blob/main/src/pages/Home.jsx) (Home and discovery), [`src/pages/CareerCrack.jsx`](https://github.com/ayush585/edgex/blob/main/src/pages/CareerCrack.jsx) (CareerCrack mentor), [`src/pages/MoodMirror.jsx`](https://github.com/ayush585/edgex/blob/main/src/pages/MoodMirror.jsx) (MoodMirror analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["App and routes<br/>[App.jsx]"]
  node_home["Home and discovery<br/>[Home.jsx]"]
  node_navbar["Navigation and theme<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_identity["Identity and data"]
  node_login["Sign-in modal<br/>[LoginModal.jsx]"]
  node_firebase_client["Firebase client<br/>[firebase.js]"]
  node_firebase_auth[("Firebase Auth")]
  node_firestore[("Cloud Firestore")]
end

subgraph group_mentorship["AI mentorship"]
  node_career["CareerCrack mentor<br/>[CareerCrack.jsx]"]
  node_mood["MoodMirror analysis<br/>[MoodMirror.jsx]"]
  node_groq{{"Groq AI endpoint"}}
  node_chat_input["Chat input<br/>[ChatInput.jsx]"]
  node_chat_bubble["Chat bubbles<br/>[ChatBubble.jsx]"]
  node_typing["Typing indicator"]
end

subgraph group_student_tools["Student tools"]
  node_scholarships["Scholarship Scout"]
  node_scholarship_data["Scholarship data<br/>[scholarships.json]"]
  node_notes["Smart Notes<br/>[SmartNotes.jsx]"]
  node_voice["Voice Feedback<br/>[VoiceFeedback.jsx]"]
  node_resume["Resume Analyzer<br/>[ResumeAnalyzer.jsx]"]
  node_vault["Resource Vault<br/>[ResourceVault.jsx]"]
end

node_student(("Student"))

node_student -->|"opens"| node_home
node_home -->|"links to"| node_career
node_home -->|"links to"| node_mood
node_home -->|"links to"| node_scholarships
node_home -->|"links to"| node_notes
node_home -->|"links to"| node_voice
node_home -->|"links to"| node_resume
node_home -->|"links to"| node_vault
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_career
node_app -->|"routes to"| node_mood
node_app -->|"routes to"| node_scholarships
node_app -->|"routes to"| node_notes
node_app -->|"routes to"| node_voice
node_app -->|"routes to"| node_resume
node_app -->|"routes to"| node_vault
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_login
node_app -->|"checks session"| node_firebase_client
node_login -->|"uses auth"| node_firebase_client
node_login -->|"reads and writes profiles"| node_firestore
node_firebase_client -->|"initializes"| node_firebase_auth
node_firebase_client -->|"initializes"| node_firestore
node_career -->|"renders"| node_chat_input
node_career -->|"renders"| node_chat_bubble
node_chat_bubble -->|"renders"| node_typing
node_career -->|"stores chat and memory"| node_firestore
node_career -->|"posts prompts"| node_groq
node_mood -->|"renders"| node_chat_input
node_mood -->|"renders"| node_chat_bubble
node_mood -->|"stores chat history"| node_firestore
node_mood -->|"posts prompts"| node_groq
node_scholarships -->|"loads data"| node_scholarship_data
node_student -.->|"exports chat PDF"| node_career
node_student -.->|"exports chat PDF"| node_mood

click node_app "https://github.com/ayush585/edgex/blob/main/src/App.jsx"
click node_home "https://github.com/ayush585/edgex/blob/main/src/pages/Home.jsx"
click node_navbar "https://github.com/ayush585/edgex/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/ayush585/edgex/blob/main/src/components/Footer.jsx"
click node_login "https://github.com/ayush585/edgex/blob/main/src/components/LoginModal.jsx"
click node_firebase_client "https://github.com/ayush585/edgex/blob/main/src/firebase.js"
click node_career "https://github.com/ayush585/edgex/blob/main/src/pages/CareerCrack.jsx"
click node_mood "https://github.com/ayush585/edgex/blob/main/src/pages/MoodMirror.jsx"
click node_chat_input "https://github.com/ayush585/edgex/blob/main/src/components/chat/ChatInput.jsx"
click node_chat_bubble "https://github.com/ayush585/edgex/blob/main/src/components/ChatBubble.jsx"
click node_typing "https://github.com/ayush585/edgex/blob/main/src/components/TypingIndicator.tsx"
click node_scholarships "https://github.com/ayush585/edgex/blob/main/src/pages/ScholarshipScout.jsx"
click node_scholarship_data "https://github.com/ayush585/edgex/blob/main/src/data/scholarships.json"
click node_notes "https://github.com/ayush585/edgex/blob/main/src/pages/SmartNotes.jsx"
click node_voice "https://github.com/ayush585/edgex/blob/main/src/pages/VoiceFeedback.jsx"
click node_resume "https://github.com/ayush585/edgex/blob/main/src/pages/ResumeAnalyzer.jsx"
click node_vault "https://github.com/ayush585/edgex/blob/main/src/pages/ResourceVault.jsx"

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_home,node_navbar,node_footer toneBlue
class node_login,node_firebase_client,node_firebase_auth,node_firestore toneAmber
class node_career,node_mood,node_groq,node_chat_input,node_chat_bubble,node_typing toneMint
class node_scholarships,node_scholarship_data,node_notes,node_voice,node_resume,node_vault toneRose
class node_student toneIndigo
```

## Components

### Application shell

- [App and routes](https://github.com/ayush585/edgex/blob/main/src/App.jsx): `src/App.jsx`
- [Home and discovery](https://github.com/ayush585/edgex/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Navigation and theme](https://github.com/ayush585/edgex/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/ayush585/edgex/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Identity and data

- [Sign-in modal](https://github.com/ayush585/edgex/blob/main/src/components/LoginModal.jsx): `src/components/LoginModal.jsx`
- [Firebase client](https://github.com/ayush585/edgex/blob/main/src/firebase.js): `src/firebase.js`
- **Firebase Auth**
- **Cloud Firestore**

### AI mentorship

- [CareerCrack mentor](https://github.com/ayush585/edgex/blob/main/src/pages/CareerCrack.jsx): `src/pages/CareerCrack.jsx`
- [MoodMirror analysis](https://github.com/ayush585/edgex/blob/main/src/pages/MoodMirror.jsx): `src/pages/MoodMirror.jsx`
- **Groq AI endpoint**
- [Chat input](https://github.com/ayush585/edgex/blob/main/src/components/chat/ChatInput.jsx): `src/components/chat/ChatInput.jsx`
- [Chat bubbles](https://github.com/ayush585/edgex/blob/main/src/components/ChatBubble.jsx): `src/components/ChatBubble.jsx`
- [Typing indicator](https://github.com/ayush585/edgex/blob/main/src/components/TypingIndicator.tsx): `src/components/TypingIndicator.tsx`

### Student tools

- [Scholarship Scout](https://github.com/ayush585/edgex/blob/main/src/pages/ScholarshipScout.jsx): `src/pages/ScholarshipScout.jsx`
- [Scholarship data](https://github.com/ayush585/edgex/blob/main/src/data/scholarships.json): `src/data/scholarships.json`
- [Smart Notes](https://github.com/ayush585/edgex/blob/main/src/pages/SmartNotes.jsx): `src/pages/SmartNotes.jsx`
- [Voice Feedback](https://github.com/ayush585/edgex/blob/main/src/pages/VoiceFeedback.jsx): `src/pages/VoiceFeedback.jsx`
- [Resume Analyzer](https://github.com/ayush585/edgex/blob/main/src/pages/ResumeAnalyzer.jsx): `src/pages/ResumeAnalyzer.jsx`
- [Resource Vault](https://github.com/ayush585/edgex/blob/main/src/pages/ResourceVault.jsx): `src/pages/ResourceVault.jsx`

### Other components

- **Student**

## Connections

- Student → Home and discovery: opens
- Home and discovery → CareerCrack mentor: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → MoodMirror analysis: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → Scholarship Scout: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → Smart Notes: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → Voice Feedback: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → Resume Analyzer: links to (evidence: `src/pages/Home.jsx`)
- Home and discovery → Resource Vault: links to (evidence: `src/pages/Home.jsx`)
- App and routes → Home and discovery: routes to (evidence: `src/App.jsx`)
- App and routes → CareerCrack mentor: routes to (evidence: `src/App.jsx`)
- App and routes → MoodMirror analysis: routes to (evidence: `src/App.jsx`)
- App and routes → Scholarship Scout: routes to (evidence: `src/App.jsx`)
- App and routes → Smart Notes: routes to (evidence: `src/App.jsx`)
- App and routes → Voice Feedback: routes to (evidence: `src/App.jsx`)
- App and routes → Resume Analyzer: routes to (evidence: `src/App.jsx`)
- App and routes → Resource Vault: routes to (evidence: `src/App.jsx`)
- App and routes → Navigation and theme: renders (evidence: `src/App.jsx`)
- App and routes → Footer: renders (evidence: `src/App.jsx`)
- App and routes → Sign-in modal: routes to (evidence: `src/App.jsx`)
- App and routes → Firebase client: checks session (evidence: `src/App.jsx`)
- Sign-in modal → Firebase client: uses auth (evidence: `src/components/LoginModal.jsx`)
- Sign-in modal → Cloud Firestore: reads and writes profiles (evidence: `src/components/LoginModal.jsx`)
- Firebase client → Firebase Auth: initializes (evidence: `src/firebase.js`)
- Firebase client → Cloud Firestore: initializes (evidence: `src/firebase.js`)
- CareerCrack mentor → Chat input: renders (evidence: `src/pages/CareerCrack.jsx`)
- CareerCrack mentor → Chat bubbles: renders (evidence: `src/pages/CareerCrack.jsx`)
- Chat bubbles → Typing indicator: renders (evidence: `src/components/ChatBubble.jsx`)
- CareerCrack mentor → Cloud Firestore: stores chat and memory (evidence: `src/pages/CareerCrack.jsx`)
- CareerCrack mentor → Groq AI endpoint: posts prompts (evidence: `src/pages/CareerCrack.jsx`)
- MoodMirror analysis → Chat input: renders (evidence: `src/pages/MoodMirror.jsx`)
- MoodMirror analysis → Chat bubbles: renders (evidence: `src/pages/MoodMirror.jsx`)
- MoodMirror analysis → Cloud Firestore: stores chat history (evidence: `src/pages/MoodMirror.jsx`)
- MoodMirror analysis → Groq AI endpoint: posts prompts (evidence: `src/pages/MoodMirror.jsx`)
- Scholarship Scout → Scholarship data: loads data (evidence: `src/pages/ScholarshipScout.jsx`)
- Student → CareerCrack mentor: exports chat PDF (evidence: `README.md`)
- Student → MoodMirror analysis: exports chat PDF (evidence: `README.md`)
