# mohammadyasar786/eduverse-ai-by-yasar-3b403769 architecture

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

- Interactive diagram: https://gitdiagram.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769
- Repository: https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769

## Overview

EduVerse is a web learning app combining tutoring, AR concept visualization, focus monitoring, voice-based coding, and adaptive study. Its main user journey begins at the routed web app, continues through a selected learning feature, and can draw on account and role state. The README describes the broader learning cycle, but the sampled source does not establish how feature pages invoke the listed backend functions, so those connections are omitted. Unsampled capabilities are represented by their exact feature directories or page paths.

Main entry points: [`src/App.tsx`](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/App.tsx) (App routes), [`src/pages/Auth.tsx`](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Auth.tsx) (Sign in), [`src/integrations/supabase/client.ts`](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/integrations/supabase/client.ts) (Supabase), [`src/pages/ResearchDashboardPage.tsx`](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ResearchDashboardPage.tsx) (Role dashboards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Web app"]
  node_router["App routes<br/>[App.tsx]"]
  node_home["Feature hub<br/>[Index.tsx]"]
end

subgraph group_learning["Learning experiences"]
  node_tutor["AI tutor<br/>[AITutor.tsx]"]
  node_ar["AR learning<br/>[ARLearning.tsx]"]
  node_mindpulse["MindPulse<br/>[MindPulse.tsx]"]
  node_talkcode["Talk2Code<br/>[Talk2Code.tsx]"]
  node_learnflow["LearnFlow<br/>[LearnFlow.tsx]"]
  node_adaptive["Adaptive learning"]
  node_adaptivefn["Adaptive service<br/>[index.ts]"]
  node_quizfn["Quiz generation<br/>[index.ts]"]
  node_mcpfn["Learning tools API<br/>[index.ts]"]
end

subgraph group_insights["Learning insights"]
  node_progress["Progress board<br/>[ProgressBoard.tsx]"]
  node_dashboards["Role dashboards"]
  node_research["Research insights"]
end

subgraph group_identity["Identity and data"]
  node_authpage["Sign in<br/>[Auth.tsx]"]
  node_auth["Auth state<br/>[useAuth.tsx]"]
  node_role["Role state<br/>[useUserRole.tsx]"]
  node_supabase[("Supabase<br/>[client.ts]")]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_authpage
node_router -->|"routes to"| node_tutor
node_router -->|"routes to"| node_ar
node_router -->|"routes to"| node_mindpulse
node_router -->|"routes to"| node_talkcode
node_router -->|"routes to"| node_learnflow
node_router -->|"routes to"| node_adaptive
node_router -->|"routes to"| node_progress
node_router -->|"routes to"| node_dashboards
node_authpage -->|"uses"| node_auth
node_authpage -->|"uses"| node_role
node_auth -->|"auth requests"| node_supabase
node_role -->|"reads and writes"| node_supabase
node_dashboards -->|"renders"| node_research
node_research -->|"reads and writes"| node_supabase

click node_router "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/App.tsx"
click node_home "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Index.tsx"
click node_authpage "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Auth.tsx"
click node_tutor "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/AITutor.tsx"
click node_ar "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ARLearning.tsx"
click node_mindpulse "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/MindPulse.tsx"
click node_talkcode "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Talk2Code.tsx"
click node_learnflow "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/LearnFlow.tsx"
click node_adaptive "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/AdaptiveLearning.tsx"
click node_progress "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ProgressBoard.tsx"
click node_dashboards "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ResearchDashboardPage.tsx"
click node_research "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/components/AdaptiveLearning/ResearchExpertDashboard.tsx"
click node_auth "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/hooks/useAuth.tsx"
click node_role "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/hooks/useUserRole.tsx"
click node_supabase "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/integrations/supabase/client.ts"
click node_adaptivefn "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/adaptive-learning/index.ts"
click node_quizfn "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/generate-quiz/index.ts"
click node_mcpfn "https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/mcp/index.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_router,node_home toneBlue
class node_tutor,node_ar,node_mindpulse,node_talkcode,node_learnflow,node_adaptive,node_adaptivefn,node_quizfn,node_mcpfn toneAmber
class node_progress,node_dashboards,node_research toneMint
class node_authpage,node_auth,node_role,node_supabase toneRose
class node_learner toneIndigo
```

## Components

### Web app

- [App routes](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/App.tsx): `src/App.tsx`
- [Feature hub](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`

### Learning experiences

- [AI tutor](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/AITutor.tsx): `src/pages/AITutor.tsx`
- [AR learning](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ARLearning.tsx): `src/pages/ARLearning.tsx`
- [MindPulse](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/MindPulse.tsx): `src/pages/MindPulse.tsx`
- [Talk2Code](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Talk2Code.tsx): `src/pages/Talk2Code.tsx`
- [LearnFlow](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/LearnFlow.tsx): `src/pages/LearnFlow.tsx`
- [Adaptive learning](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/AdaptiveLearning.tsx): `src/pages/AdaptiveLearning.tsx`
- [Adaptive service](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/adaptive-learning/index.ts): `supabase/functions/adaptive-learning/index.ts`
- [Quiz generation](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/generate-quiz/index.ts): `supabase/functions/generate-quiz/index.ts`
- [Learning tools API](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/supabase/functions/mcp/index.ts): `supabase/functions/mcp/index.ts`

### Learning insights

- [Progress board](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ProgressBoard.tsx): `src/pages/ProgressBoard.tsx`
- [Role dashboards](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/ResearchDashboardPage.tsx): `src/pages/ResearchDashboardPage.tsx`
- [Research insights](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/components/AdaptiveLearning/ResearchExpertDashboard.tsx): `src/components/AdaptiveLearning/ResearchExpertDashboard.tsx`

### Identity and data

- [Sign in](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/pages/Auth.tsx): `src/pages/Auth.tsx`
- [Auth state](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/hooks/useAuth.tsx): `src/hooks/useAuth.tsx`
- [Role state](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/hooks/useUserRole.tsx): `src/hooks/useUserRole.tsx`
- [Supabase](https://github.com/mohammadyasar786/eduverse-ai-by-yasar-3b403769/blob/main/src/integrations/supabase/client.ts): `src/integrations/supabase/client.ts`

### Other components

- **Learner**

## Connections

- Learner → App routes: opens (evidence: `src/App.tsx`)
- App routes → Feature hub: routes to (evidence: `src/App.tsx`)
- App routes → Sign in: routes to (evidence: `src/App.tsx`)
- App routes → AI tutor: routes to (evidence: `src/App.tsx`)
- App routes → AR learning: routes to (evidence: `src/App.tsx`)
- App routes → MindPulse: routes to (evidence: `src/App.tsx`)
- App routes → Talk2Code: routes to (evidence: `src/App.tsx`)
- App routes → LearnFlow: routes to (evidence: `src/App.tsx`)
- App routes → Adaptive learning: routes to (evidence: `src/App.tsx`)
- App routes → Progress board: routes to (evidence: `src/App.tsx`)
- App routes → Role dashboards: routes to (evidence: `src/App.tsx`)
- Sign in → Auth state: uses (evidence: `src/pages/Auth.tsx`)
- Sign in → Role state: uses (evidence: `src/pages/Auth.tsx`)
- Auth state → Supabase: auth requests (evidence: `src/hooks/useAuth.tsx`)
- Role state → Supabase: reads and writes (evidence: `src/hooks/useUserRole.tsx`)
- Role dashboards → Research insights: renders (evidence: `src/pages/ResearchDashboardPage.tsx`)
- Research insights → Supabase: reads and writes (evidence: `src/components/AdaptiveLearning/ResearchExpertDashboard.tsx`)
