# learnorbit/smart_learn architecture

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

- Interactive diagram: https://gitdiagram.com/learnorbit/smart_learn
- Repository: https://github.com/learnorbit/smart_learn

## Overview

Smart Learn is an AI-assisted learning and course-outcome analytics platform. Teachers manage subjects and CO–PO mappings, create assessments, and review grading; students use dashboards, assignments, and support features. The backend exposes application APIs and includes LES scoring and AI tooling, while web and mobile clients provide user-facing access. The graph combines sampled implementation links with documented product capabilities; several major feature implementations are not present in the supplied tree, so their internal connections are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/learnorbit/smart_learn/blob/main/src/App.tsx) (Web app), [`backend/main.py`](https://github.com/learnorbit/smart_learn/blob/main/backend/main.py) (Backend API), [`src/pages/OutcomesManager.tsx`](https://github.com/learnorbit/smart_learn/blob/main/src/pages/OutcomesManager.tsx) (CO–PO outcomes), [`src/integrations/api/client.ts`](https://github.com/learnorbit/smart_learn/blob/main/src/integrations/api/client.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["User clients"]
  node_web["Web app<br/>[App.tsx]"]
  node_mobile["Mobile app<br/>[App.tsx]"]
end

subgraph group_learning["Course learning"]
  node_subjects["Subject management"]
  node_outcomes["CO–PO outcomes"]
  node_dashboards["Role dashboards"]
  node_classroom["Classroom features"]
  node_announcements["Announcements<br/>[main.py]"]
end

subgraph group_assessment["Assessment and analytics"]
  node_assignments["Assignments"]
  node_evaluation["Evaluation review"]
  node_analytics["LES analytics<br/>[les_engine.py]"]
  node_reports["Reports and trends"]
end

subgraph group_platform["Application platform"]
  node_auth["Authentication<br/>[AuthProvider.tsx]"]
  node_backend["Backend API<br/>[main.py]"]
  node_api["API client<br/>[client.ts]"]
  node_database[("Application data<br/>[database.py]")]
  node_schemas["API schemas<br/>[schemas.py]"]
end

subgraph group_ai["AI services"]
  node_tools["Learning tools<br/>[tools_routes.py]"]
  node_generators["AI assessment generation"]
  node_aiui["AI student support<br/>[aiService.ts]"]
end

node_teacher(("Teacher"))
node_student(("Student"))

node_teacher -.->|"uses"| node_web
node_student -.->|"uses"| node_web
node_student -.->|"uses"| node_mobile
node_web -->|"provides auth"| node_auth
node_web -->|"routes to"| node_subjects
node_web -->|"routes to"| node_outcomes
node_web -->|"routes to"| node_evaluation
node_subjects -->|"requests data"| node_api
node_outcomes -->|"uses API"| node_api
node_web -->|"routes to"| node_dashboards
node_teacher -.->|"maps outcomes"| node_outcomes
node_teacher -.->|"creates assessments"| node_assignments
node_teacher -.->|"reviews grading"| node_evaluation
node_student -.->|"views scores"| node_dashboards
node_student -.->|"gets updates"| node_announcements
node_student -.->|"asks questions"| node_aiui
node_web -.->|"calls API"| node_backend
node_mobile -.->|"calls API"| node_backend
node_backend -.->|"reads and writes"| node_database
node_backend -.->|"validates responses"| node_schemas
node_backend -.->|"serves LES"| node_analytics
node_backend -.->|"serves classroom routes"| node_classroom
node_backend -.->|"serves tools"| node_tools
node_backend -.->|"generates assessments"| node_generators
node_aiui -->|"uses API"| node_api
node_teacher -.->|"reviews analytics"| node_reports

click node_web "https://github.com/learnorbit/smart_learn/blob/main/src/App.tsx"
click node_mobile "https://github.com/learnorbit/smart_learn/blob/main/mobile/App.tsx"
click node_auth "https://github.com/learnorbit/smart_learn/blob/main/src/hooks/AuthProvider.tsx"
click node_subjects "https://github.com/learnorbit/smart_learn/blob/main/src/pages/SubjectsManager.tsx"
click node_outcomes "https://github.com/learnorbit/smart_learn/blob/main/src/pages/OutcomesManager.tsx"
click node_dashboards "https://github.com/learnorbit/smart_learn/tree/main/src/pages"
click node_classroom "https://github.com/learnorbit/smart_learn/blob/main/backend/Classroom_routes.py"
click node_assignments "https://github.com/learnorbit/smart_learn/tree/main/src/pages"
click node_evaluation "https://github.com/learnorbit/smart_learn/blob/main/src/pages/EvaluationReview.tsx"
click node_analytics "https://github.com/learnorbit/smart_learn/blob/main/backend/les_engine.py"
click node_backend "https://github.com/learnorbit/smart_learn/blob/main/backend/main.py"
click node_api "https://github.com/learnorbit/smart_learn/blob/main/src/integrations/api/client.ts"
click node_database "https://github.com/learnorbit/smart_learn/blob/main/backend/database.py"
click node_schemas "https://github.com/learnorbit/smart_learn/blob/main/backend/schemas.py"
click node_tools "https://github.com/learnorbit/smart_learn/blob/main/backend/tools_routes.py"
click node_generators "https://github.com/learnorbit/smart_learn/tree/main/backend/services/ai"
click node_aiui "https://github.com/learnorbit/smart_learn/blob/main/src/services/aiService.ts"
click node_announcements "https://github.com/learnorbit/smart_learn/blob/main/backend/main.py"
click node_reports "https://github.com/learnorbit/smart_learn/tree/main/src/pages"

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_web,node_mobile toneBlue
class node_subjects,node_outcomes,node_dashboards,node_classroom,node_announcements toneAmber
class node_assignments,node_evaluation,node_analytics,node_reports toneMint
class node_auth,node_backend,node_api,node_database,node_schemas toneRose
class node_tools,node_generators,node_aiui,node_teacher,node_student toneIndigo
```

## Components

### User clients

- [Web app](https://github.com/learnorbit/smart_learn/blob/main/src/App.tsx): `src/App.tsx`
- [Mobile app](https://github.com/learnorbit/smart_learn/blob/main/mobile/App.tsx): `mobile/App.tsx`

### Course learning

- [Subject management](https://github.com/learnorbit/smart_learn/blob/main/src/pages/SubjectsManager.tsx): `src/pages/SubjectsManager.tsx`
- [CO–PO outcomes](https://github.com/learnorbit/smart_learn/blob/main/src/pages/OutcomesManager.tsx): `src/pages/OutcomesManager.tsx`
- [Role dashboards](https://github.com/learnorbit/smart_learn/tree/main/src/pages): `src/pages`
- [Classroom features](https://github.com/learnorbit/smart_learn/blob/main/backend/Classroom_routes.py): `backend/Classroom_routes.py`
- [Announcements](https://github.com/learnorbit/smart_learn/blob/main/backend/main.py): `backend/main.py`

### Assessment and analytics

- [Assignments](https://github.com/learnorbit/smart_learn/tree/main/src/pages): `src/pages`
- [Evaluation review](https://github.com/learnorbit/smart_learn/blob/main/src/pages/EvaluationReview.tsx): `src/pages/EvaluationReview.tsx`
- [LES analytics](https://github.com/learnorbit/smart_learn/blob/main/backend/les_engine.py): `backend/les_engine.py`
- [Reports and trends](https://github.com/learnorbit/smart_learn/tree/main/src/pages): `src/pages`

### Application platform

- [Authentication](https://github.com/learnorbit/smart_learn/blob/main/src/hooks/AuthProvider.tsx): `src/hooks/AuthProvider.tsx`
- [Backend API](https://github.com/learnorbit/smart_learn/blob/main/backend/main.py): `backend/main.py`
- [API client](https://github.com/learnorbit/smart_learn/blob/main/src/integrations/api/client.ts): `src/integrations/api/client.ts`
- [Application data](https://github.com/learnorbit/smart_learn/blob/main/backend/database.py): `backend/database.py`
- [API schemas](https://github.com/learnorbit/smart_learn/blob/main/backend/schemas.py): `backend/schemas.py`

### AI services

- [Learning tools](https://github.com/learnorbit/smart_learn/blob/main/backend/tools_routes.py): `backend/tools_routes.py`
- [AI assessment generation](https://github.com/learnorbit/smart_learn/tree/main/backend/services/ai): `backend/services/ai`
- [AI student support](https://github.com/learnorbit/smart_learn/blob/main/src/services/aiService.ts): `src/services/aiService.ts`

### Other components

- **Teacher**
- **Student**

## Connections

- Teacher → Web app: uses (evidence: `README.md`)
- Student → Web app: uses (evidence: `README.md`)
- Student → Mobile app: uses
- Web app → Authentication: provides auth (evidence: `src/App.tsx`)
- Web app → Subject management: routes to (evidence: `src/App.tsx`)
- Web app → CO–PO outcomes: routes to (evidence: `src/App.tsx`)
- Web app → Evaluation review: routes to (evidence: `src/App.tsx`)
- Subject management → API client: requests data (evidence: `src/pages/SubjectsManager.tsx`)
- CO–PO outcomes → API client: uses API (evidence: `src/pages/OutcomesManager.tsx`)
- Web app → Role dashboards: routes to (evidence: `src/App.tsx`)
- Teacher → CO–PO outcomes: maps outcomes (evidence: `README.md`)
- Teacher → Assignments: creates assessments (evidence: `README.md`)
- Teacher → Evaluation review: reviews grading (evidence: `README.md`)
- Student → Role dashboards: views scores (evidence: `README.md`)
- Student → Announcements: gets updates (evidence: `README.md`)
- Student → AI student support: asks questions (evidence: `README.md`)
- Web app → Backend API: calls API (evidence: `README.md`)
- Mobile app → Backend API: calls API
- Backend API → Application data: reads and writes (evidence: `backend/main.py`)
- Backend API → API schemas: validates responses (evidence: `backend/main.py`)
- Backend API → LES analytics: serves LES (evidence: `backend/main.py`)
- Backend API → Classroom features: serves classroom routes
- Backend API → Learning tools: serves tools (evidence: `backend/main.py`)
- Backend API → AI assessment generation: generates assessments (evidence: `backend/tools_routes.py`)
- AI student support → API client: uses API (evidence: `src/services/aiService.ts`)
- Teacher → Reports and trends: reviews analytics (evidence: `README.md`)
