# narendra1431-dot/nexvora architecture

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

- Interactive diagram: https://gitdiagram.com/narendra1431-dot/nexvora
- Repository: https://github.com/narendra1431-dot/nexvora

## Overview

Personalized Learning & Career Intelligence is a React/FastAPI learning and career platform. A student signs in, adds evidence or completes an assessment, and sees server-computed competency, career-readiness, resume-coverage, and prerequisite-aware roadmap projections. Separate capabilities include project review, coding practice, certificates, learning resources, and an AI mentor with retrieval. The README documents these product flows; several internal relationships below are documented there, while links among unsampled subsystems are omitted rather than inferred.

Main entry points: [`backend/app/main.py`](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/main.py) (HTTP API), [`backend/app/routers`](https://github.com/narendra1431-dot/nexvora/tree/master/backend/app/routers) (Domain Routes), [`src/lib/state/app-state.tsx`](https://github.com/narendra1431-dot/nexvora/blob/master/src/lib/state/app-state.tsx) (Workspace State), [`src/components/mentor/AiMentor.tsx`](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/mentor/AiMentor.tsx) (AI Mentor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Student Experience"]
  node_webapp["Web Application<br/>[App.tsx]"]
  node_clientstate["Workspace State<br/>[app-state.tsx]"]
end

subgraph group_domain["Learning and Career Domain"]
  node_assessments["Assessments"]
  node_careerui["Career Workspace"]
  node_resumeui["Resume Tools"]
  node_projectreview["Project Review<br/>[RubricReview.tsx]"]
  node_coding["Coding Practice<br/>[CodingSpace.tsx]"]
  node_certificates["Certificates<br/>[MyCertificates.tsx]"]
  node_engine["State Engine<br/>[state.py]"]
  node_agentstate["Canonical Snapshot<br/>[state.py]"]
end

subgraph group_intelligence["AI and Intelligence"]
  node_mentor["AI Mentor<br/>[AiMentor.tsx]"]
  node_agentgraph["Agent Workflows<br/>[graph.py]"]
  node_rag["RAG Retrieval<br/>[rag.py]"]
  node_providers["LLM Providers<br/>[router.py]"]
  node_ml["Advisory Models<br/>[advisory.py]"]
end

subgraph group_platform["API and Persistence"]
  node_api["HTTP API<br/>[main.py]"]
  node_auth["Authentication<br/>[security.py]"]
  node_mongo[("MongoDB<br/>[db.py]")]
  node_routes["Domain Routes"]
  node_worker["Background Jobs<br/>[tasks.py]"]
end

node_student(("Student"))

node_student -->|"uses"| node_webapp
node_webapp -->|"renders"| node_clientstate
node_clientstate -->|"reads snapshot"| node_api
node_assessments -.->|"submits answers"| node_clientstate
node_careerui -.->|"shows projections"| node_clientstate
node_resumeui -->|"uploads resume"| node_api
node_projectreview -.->|"submits review"| node_api
node_coding -.->|"sends attempts"| node_api
node_certificates -.->|"requests certificates"| node_api
node_mentor -->|"sends chat"| node_api
node_api -->|"registers routes"| node_routes
node_routes -->|"authenticates requests"| node_auth
node_routes -->|"reads and writes"| node_mongo
node_routes -->|"recalculates state"| node_engine
node_engine -.->|"loads domain data"| node_mongo
node_agentstate -->|"recalculates projection"| node_engine
node_routes -->|"queues document jobs"| node_worker
node_worker -->|"indexes documents"| node_rag
node_mentor -->|"retrieves context"| node_rag
node_mentor -->|"generates response"| node_providers
node_agentgraph -->|"generates workflow output"| node_providers
node_agentstate -->|"computes advisory"| node_ml

click node_webapp "https://github.com/narendra1431-dot/nexvora/blob/master/src/App.tsx"
click node_clientstate "https://github.com/narendra1431-dot/nexvora/blob/master/src/lib/state/app-state.tsx"
click node_assessments "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/assessments/AssessmentEngine.tsx"
click node_careerui "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/career/CareerIntelligence.tsx"
click node_resumeui "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/resume/ResumeGenerator.tsx"
click node_projectreview "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/projects/RubricReview.tsx"
click node_coding "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/coding/CodingSpace.tsx"
click node_certificates "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/certificates/MyCertificates.tsx"
click node_mentor "https://github.com/narendra1431-dot/nexvora/blob/master/src/components/mentor/AiMentor.tsx"
click node_api "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/main.py"
click node_auth "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/security.py"
click node_mongo "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/db.py"
click node_routes "https://github.com/narendra1431-dot/nexvora/tree/master/backend/app/routers"
click node_engine "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/engine/state.py"
click node_agentstate "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/agents/state.py"
click node_agentgraph "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/agents/graph.py"
click node_rag "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/services/rag.py"
click node_providers "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/providers/router.py"
click node_worker "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/workers/tasks.py"
click node_ml "https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/ml/inference/advisory.py"

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_webapp,node_clientstate toneBlue
class node_assessments,node_careerui,node_resumeui,node_projectreview,node_coding,node_certificates,node_engine,node_agentstate toneAmber
class node_mentor,node_agentgraph,node_rag,node_providers,node_ml toneMint
class node_api,node_auth,node_mongo,node_routes,node_worker toneRose
class node_student toneIndigo
```

## Components

### Student Experience

- [Web Application](https://github.com/narendra1431-dot/nexvora/blob/master/src/App.tsx): `src/App.tsx`
- [Workspace State](https://github.com/narendra1431-dot/nexvora/blob/master/src/lib/state/app-state.tsx): `src/lib/state/app-state.tsx`

### Learning and Career Domain

- [Assessments](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/assessments/AssessmentEngine.tsx): `src/components/assessments/AssessmentEngine.tsx`
- [Career Workspace](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/career/CareerIntelligence.tsx): `src/components/career/CareerIntelligence.tsx`
- [Resume Tools](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/resume/ResumeGenerator.tsx): `src/components/resume/ResumeGenerator.tsx`
- [Project Review](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/projects/RubricReview.tsx): `src/components/projects/RubricReview.tsx`
- [Coding Practice](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/coding/CodingSpace.tsx): `src/components/coding/CodingSpace.tsx`
- [Certificates](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/certificates/MyCertificates.tsx): `src/components/certificates/MyCertificates.tsx`
- [State Engine](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/engine/state.py): `backend/app/engine/state.py`
- [Canonical Snapshot](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/agents/state.py): `backend/app/agents/state.py`

### AI and Intelligence

- [AI Mentor](https://github.com/narendra1431-dot/nexvora/blob/master/src/components/mentor/AiMentor.tsx): `src/components/mentor/AiMentor.tsx`
- [Agent Workflows](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/agents/graph.py): `backend/app/agents/graph.py`
- [RAG Retrieval](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/services/rag.py): `backend/app/services/rag.py`
- [LLM Providers](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/providers/router.py): `backend/app/providers/router.py`
- [Advisory Models](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/ml/inference/advisory.py): `backend/app/ml/inference/advisory.py`

### API and Persistence

- [HTTP API](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/main.py): `backend/app/main.py`
- [Authentication](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/security.py): `backend/app/security.py`
- [MongoDB](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/db.py): `backend/app/db.py`
- [Domain Routes](https://github.com/narendra1431-dot/nexvora/tree/master/backend/app/routers): `backend/app/routers`
- [Background Jobs](https://github.com/narendra1431-dot/nexvora/blob/master/backend/app/workers/tasks.py): `backend/app/workers/tasks.py`

### Other components

- **Student**

## Connections

- Student → Web Application: uses (evidence: `README.md`)
- Web Application → Workspace State: renders (evidence: `src/App.tsx`)
- Workspace State → HTTP API: reads snapshot (evidence: `README.md`)
- Assessments → Workspace State: submits answers (evidence: `src/components/assessments/AssessmentEngine.tsx`)
- Career Workspace → Workspace State: shows projections
- Resume Tools → HTTP API: uploads resume (evidence: `README.md`)
- Project Review → HTTP API: submits review
- Coding Practice → HTTP API: sends attempts
- Certificates → HTTP API: requests certificates
- AI Mentor → HTTP API: sends chat (evidence: `README.md`)
- HTTP API → Domain Routes: registers routes (evidence: `backend/app/main.py`)
- Domain Routes → Authentication: authenticates requests (evidence: `backend/app/routers/auth.py`)
- Domain Routes → MongoDB: reads and writes (evidence: `backend/app/routers/auth.py`)
- Domain Routes → State Engine: recalculates state (evidence: `backend/app/routers/documents.py`)
- State Engine → MongoDB: loads domain data
- Canonical Snapshot → State Engine: recalculates projection (evidence: `backend/app/agents/state.py`)
- Domain Routes → Background Jobs: queues document jobs (evidence: `backend/app/routers/documents.py`)
- Background Jobs → RAG Retrieval: indexes documents (evidence: `backend/app/workers/tasks.py`)
- AI Mentor → RAG Retrieval: retrieves context (evidence: `README.md`)
- AI Mentor → LLM Providers: generates response (evidence: `README.md`)
- Agent Workflows → LLM Providers: generates workflow output (evidence: `backend/app/agents/graph.py`)
- Canonical Snapshot → Advisory Models: computes advisory (evidence: `backend/app/agents/state.py`)
