# anveshasawantt/isl architecture

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

- Interactive diagram: https://gitdiagram.com/anveshasawantt/isl
- Repository: https://github.com/anveshasawantt/isl

## Overview

This repository is an Indian Sign Language learning app: learners browse lessons, practice signs using webcam recordings, receive evaluations, and take category quizzes; progress and profiles are tracked through the backend. The React pages call the FastAPI service, which handles authentication, lesson/progress rules, evaluation, and tutorial streaming, backed by SQLite. The README documents the major capabilities; several backend and frontend modules were not excerpted, so their internal call relationships are not asserted. The root-level word-builder is a separate realtime prototype.

Main entry points: [`app/frontend/src/App.tsx`](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/App.tsx) (App routing), [`app/backend/main.py`](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/main.py) (HTTP API), [`app/frontend/src/services/api.ts`](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/services/api.ts) (API client), [`app/backend/database.py`](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/database.py) (SQLite database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Learning interface"]
  node_frontend_app["App routing<br/>[App.tsx]"]
  node_auth_context["Auth state<br/>[AuthContext.tsx]"]
  node_topbar["Navigation and streak<br/>[TopBar.tsx]"]
  node_dashboard["Lesson dashboard<br/>[DashboardPage.tsx]"]
  node_practice["Sign practice<br/>[PracticePage.tsx]"]
  node_quiz["Category quiz<br/>[QuizPage.tsx]"]
  node_login["Login<br/>[LoginPage.tsx]"]
  node_profile["Profile<br/>[ProfilePage.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_service["Backend services"]
  node_backend_api["HTTP API<br/>[main.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_config["Learning configuration<br/>[config.py]"]
  node_database[("SQLite database<br/>[database.py]")]
  node_models["ORM models<br/>[models.py]"]
end

subgraph group_learning["Lessons and progress"]
  node_lesson_registry["Lesson and progress rules<br/>[lessons.py]"]
  node_tutorial_stream["Tutorial streaming<br/>[streaming.py]"]
  node_tutorial_files["Tutorial videos"]
end

subgraph group_evaluation["Sign evaluation"]
  node_evaluation["Video evaluation<br/>[ml.py]"]
  node_scoring["Attempt scoring<br/>[scoring.py]"]
  node_feature_utils["Hand features<br/>[utils.py]"]
end

subgraph group_prototype["Realtime prototype"]
  node_word_realtime["Word recognition loop<br/>[day5_realtime.py]"]
  node_word_builder["Word assembly"]
end

node_learner(("Learner"))
node_webcam(("Webcam recording"))

node_learner -->|"uses"| node_frontend_app
node_frontend_app -->|"provides auth"| node_auth_context
node_frontend_app -->|"renders"| node_topbar
node_frontend_app -->|"routes to"| node_login
node_frontend_app -->|"routes to"| node_dashboard
node_frontend_app -->|"routes to"| node_practice
node_frontend_app -->|"routes to"| node_quiz
node_frontend_app -->|"routes to"| node_profile
node_frontend_app -->|"fetches profile"| node_api_client
node_topbar -->|"reads auth"| node_auth_context
node_dashboard -->|"requests lessons"| node_api_client
node_practice -->|"requests evaluation"| node_api_client
node_quiz -->|"submits answers"| node_api_client
node_practice -->|"records video"| node_webcam
node_quiz -->|"records video"| node_webcam
node_api_client -.->|"calls API"| node_backend_api
node_backend_api -.->|"authenticates requests"| node_auth
node_backend_api -.->|"serves lesson data"| node_lesson_registry
node_backend_api -.->|"evaluates recordings"| node_evaluation
node_backend_api -.->|"scores attempts"| node_scoring
node_backend_api -->|"streams tutorials"| node_tutorial_stream
node_backend_api -.->|"persists app data"| node_database
node_auth -->|"loads users"| node_database
node_auth -->|"queries users"| node_models
node_database -->|"creates tables"| node_models
node_database -->|"uses database URL"| node_config
node_lesson_registry -->|"uses lesson rules"| node_config
node_lesson_registry -->|"reads attempts"| node_models
node_tutorial_stream -.->|"streams video"| node_tutorial_files
node_evaluation -->|"extracts features"| node_feature_utils
node_evaluation -->|"uses evaluation rules"| node_config
node_word_realtime -->|"updates word state"| node_word_builder

click node_frontend_app "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/App.tsx"
click node_auth_context "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/context/AuthContext.tsx"
click node_topbar "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/components/TopBar.tsx"
click node_dashboard "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/DashboardPage.tsx"
click node_practice "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/PracticePage.tsx"
click node_quiz "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/QuizPage.tsx"
click node_login "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/LoginPage.tsx"
click node_profile "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/ProfilePage.tsx"
click node_api_client "https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/services/api.ts"
click node_backend_api "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/main.py"
click node_auth "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/auth.py"
click node_config "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/config.py"
click node_database "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/database.py"
click node_models "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/models.py"
click node_lesson_registry "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/lessons.py"
click node_tutorial_stream "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/streaming.py"
click node_evaluation "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/ml.py"
click node_scoring "https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/scoring.py"
click node_feature_utils "https://github.com/anveshasawantt/isl/blob/alphabet/utils.py"
click node_word_realtime "https://github.com/anveshasawantt/isl/blob/alphabet/day5_realtime.py"
click node_word_builder "https://github.com/anveshasawantt/isl/blob/alphabet/day5_wordbuilder.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_frontend_app,node_auth_context,node_topbar,node_dashboard,node_practice,node_quiz,node_login,node_profile,node_api_client toneBlue
class node_backend_api,node_auth,node_config,node_database,node_models toneAmber
class node_lesson_registry,node_tutorial_stream,node_tutorial_files toneMint
class node_evaluation,node_scoring,node_feature_utils toneRose
class node_word_realtime,node_word_builder,node_learner,node_webcam toneIndigo
```

## Components

### Learning interface

- [App routing](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/App.tsx): `app/frontend/src/App.tsx`
- [Auth state](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/context/AuthContext.tsx): `app/frontend/src/context/AuthContext.tsx`
- [Navigation and streak](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/components/TopBar.tsx): `app/frontend/src/components/TopBar.tsx`
- [Lesson dashboard](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/DashboardPage.tsx): `app/frontend/src/pages/DashboardPage.tsx`
- [Sign practice](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/PracticePage.tsx): `app/frontend/src/pages/PracticePage.tsx`
- [Category quiz](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/QuizPage.tsx): `app/frontend/src/pages/QuizPage.tsx`
- [Login](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/LoginPage.tsx): `app/frontend/src/pages/LoginPage.tsx`
- [Profile](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/pages/ProfilePage.tsx): `app/frontend/src/pages/ProfilePage.tsx`
- [API client](https://github.com/anveshasawantt/isl/blob/alphabet/app/frontend/src/services/api.ts): `app/frontend/src/services/api.ts`

### Backend services

- [HTTP API](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/main.py): `app/backend/main.py`
- [Authentication](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/auth.py): `app/backend/auth.py`
- [Learning configuration](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/config.py): `app/backend/config.py`
- [SQLite database](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/database.py): `app/backend/database.py`
- [ORM models](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/models.py): `app/backend/models.py`

### Lessons and progress

- [Lesson and progress rules](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/lessons.py): `app/backend/lessons.py`
- [Tutorial streaming](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/streaming.py): `app/backend/streaming.py`
- **Tutorial videos**

### Sign evaluation

- [Video evaluation](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/ml.py): `app/backend/ml.py`
- [Attempt scoring](https://github.com/anveshasawantt/isl/blob/alphabet/app/backend/scoring.py): `app/backend/scoring.py`
- [Hand features](https://github.com/anveshasawantt/isl/blob/alphabet/utils.py): `utils.py`

### Realtime prototype

- [Word recognition loop](https://github.com/anveshasawantt/isl/blob/alphabet/day5_realtime.py): `day5_realtime.py`
- [Word assembly](https://github.com/anveshasawantt/isl/blob/alphabet/day5_wordbuilder.py): `day5_wordbuilder.py`

### Other components

- **Learner**
- **Webcam recording**

## Connections

- Learner → App routing: uses
- App routing → Auth state: provides auth (evidence: `app/frontend/src/App.tsx`)
- App routing → Navigation and streak: renders (evidence: `app/frontend/src/App.tsx`)
- App routing → Login: routes to (evidence: `app/frontend/src/App.tsx`)
- App routing → Lesson dashboard: routes to (evidence: `app/frontend/src/App.tsx`)
- App routing → Sign practice: routes to (evidence: `app/frontend/src/App.tsx`)
- App routing → Category quiz: routes to (evidence: `app/frontend/src/App.tsx`)
- App routing → Profile: routes to (evidence: `app/frontend/src/App.tsx`)
- App routing → API client: fetches profile (evidence: `app/frontend/src/App.tsx`)
- Navigation and streak → Auth state: reads auth (evidence: `app/frontend/src/components/TopBar.tsx`)
- Lesson dashboard → API client: requests lessons (evidence: `app/frontend/src/pages/DashboardPage.tsx`)
- Sign practice → API client: requests evaluation (evidence: `app/frontend/src/pages/PracticePage.tsx`)
- Category quiz → API client: submits answers (evidence: `app/frontend/src/pages/QuizPage.tsx`)
- Sign practice → Webcam recording: records video (evidence: `app/frontend/src/pages/PracticePage.tsx`)
- Category quiz → Webcam recording: records video (evidence: `app/frontend/src/pages/QuizPage.tsx`)
- API client → HTTP API: calls API
- HTTP API → Authentication: authenticates requests
- HTTP API → Lesson and progress rules: serves lesson data
- HTTP API → Video evaluation: evaluates recordings
- HTTP API → Attempt scoring: scores attempts
- HTTP API → Tutorial streaming: streams tutorials
- HTTP API → SQLite database: persists app data
- Authentication → SQLite database: loads users (evidence: `app/backend/auth.py`)
- Authentication → ORM models: queries users (evidence: `app/backend/auth.py`)
- SQLite database → ORM models: creates tables (evidence: `app/backend/database.py`)
- SQLite database → Learning configuration: uses database URL (evidence: `app/backend/database.py`)
- Lesson and progress rules → Learning configuration: uses lesson rules (evidence: `app/backend/lessons.py`)
- Lesson and progress rules → ORM models: reads attempts (evidence: `app/backend/lessons.py`)
- Tutorial streaming → Tutorial videos: streams video
- Video evaluation → Hand features: extracts features (evidence: `app/backend/ml.py`)
- Video evaluation → Learning configuration: uses evaluation rules (evidence: `app/backend/ml.py`)
- Word recognition loop → Word assembly: updates word state (evidence: `day5_realtime.py`)
