# aswijayan/signtoon architecture

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

- Interactive diagram: https://gitdiagram.com/aswijayan/signtoon
- Repository: https://github.com/aswijayan/signtoon

## Overview

SignToon is a browser-based Indian Sign Language learning app with account registration/login and lessons for alphabet and numbers. Learners enter through the auth screen, reach a dashboard, choose a lesson, mark signs learned, and take a chapter quiz; quiz scores and lesson progress are stored in browser localStorage. The backend handles registration/login with password hashing and MySQL persistence. The README is only a generic React/Vite template and does not document additional product capabilities. The graph reflects sampled source; no client-to-API request is visible in the Auth excerpt, so that relationship is omitted.

Main entry points: [`src/App.jsx`](https://github.com/aswijayan/signtoon/blob/main/src/App.jsx) (Route selector), [`src/pages/Dashboard.jsx`](https://github.com/aswijayan/signtoon/blob/main/src/pages/Dashboard.jsx) (Learning dashboard), [`src/pages/AlphabetLearning.jsx`](https://github.com/aswijayan/signtoon/blob/main/src/pages/AlphabetLearning.jsx) (Alphabet lessons), [`src/pages/NumberLearning.jsx`](https://github.com/aswijayan/signtoon/blob/main/src/pages/NumberLearning.jsx) (Number lessons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Learning app"]
  node_entry["App entry<br/>[main.jsx]"]
  node_routes["Route selector<br/>[App.jsx]"]
  node_auth["Sign in / up<br/>[Auth.jsx]"]
  node_dashboard["Learning dashboard<br/>[Dashboard.jsx]"]
  node_alphabet["Alphabet lessons"]
  node_numbers["Number lessons<br/>[NumberLearning.jsx]"]
  node_quiz["Chapter quiz<br/>[ChapterQuiz.jsx]"]
end

subgraph group_backend["Account backend"]
  node_api["Auth API<br/>[server.js]"]
  node_passwords["Password hashing<br/>[server.js]"]
end

subgraph group_storage["Persistence"]
  node_mysql[("MySQL pool<br/>[db.js]")]
  node_browserstore["Browser progress<br/>[ChapterQuiz.jsx]"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_entry
node_entry -->|"renders"| node_routes
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_alphabet
node_routes -->|"routes to"| node_numbers
node_auth -.-> node_api
node_api -->|"hashes passwords"| node_passwords
node_api -->|"queries users"| node_mysql
node_alphabet -->|"opens quiz"| node_quiz
node_numbers -->|"opens quiz"| node_quiz
node_alphabet -->|"saves progress"| node_browserstore
node_numbers -->|"saves progress"| node_browserstore
node_quiz -->|"saves score"| node_browserstore
node_dashboard -->|"reads progress"| node_browserstore
node_dashboard -.-> node_alphabet
node_dashboard -.-> node_numbers

click node_entry "https://github.com/aswijayan/signtoon/blob/main/src/main.jsx"
click node_routes "https://github.com/aswijayan/signtoon/blob/main/src/App.jsx"
click node_auth "https://github.com/aswijayan/signtoon/blob/main/src/pages/Auth.jsx"
click node_dashboard "https://github.com/aswijayan/signtoon/blob/main/src/pages/Dashboard.jsx"
click node_alphabet "https://github.com/aswijayan/signtoon/blob/main/src/pages/AlphabetLearning.jsx"
click node_numbers "https://github.com/aswijayan/signtoon/blob/main/src/pages/NumberLearning.jsx"
click node_quiz "https://github.com/aswijayan/signtoon/blob/main/src/components/ChapterQuiz.jsx"
click node_api "https://github.com/aswijayan/signtoon/blob/main/server/server.js"
click node_passwords "https://github.com/aswijayan/signtoon/blob/main/server/server.js"
click node_mysql "https://github.com/aswijayan/signtoon/blob/main/server/db.js"
click node_browserstore "https://github.com/aswijayan/signtoon/blob/main/src/components/ChapterQuiz.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_entry,node_routes,node_auth,node_dashboard,node_alphabet,node_numbers,node_quiz toneBlue
class node_api,node_passwords toneAmber
class node_mysql,node_browserstore toneMint
class node_learner toneIndigo
```

## Components

### Learning app

- [App entry](https://github.com/aswijayan/signtoon/blob/main/src/main.jsx): `src/main.jsx`
- [Route selector](https://github.com/aswijayan/signtoon/blob/main/src/App.jsx): `src/App.jsx`
- [Sign in / up](https://github.com/aswijayan/signtoon/blob/main/src/pages/Auth.jsx): `src/pages/Auth.jsx`
- [Learning dashboard](https://github.com/aswijayan/signtoon/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Alphabet lessons](https://github.com/aswijayan/signtoon/blob/main/src/pages/AlphabetLearning.jsx): `src/pages/AlphabetLearning.jsx`
- [Number lessons](https://github.com/aswijayan/signtoon/blob/main/src/pages/NumberLearning.jsx): `src/pages/NumberLearning.jsx`
- [Chapter quiz](https://github.com/aswijayan/signtoon/blob/main/src/components/ChapterQuiz.jsx): `src/components/ChapterQuiz.jsx`

### Account backend

- [Auth API](https://github.com/aswijayan/signtoon/blob/main/server/server.js): `server/server.js`
- [Password hashing](https://github.com/aswijayan/signtoon/blob/main/server/server.js): `server/server.js`

### Persistence

- [MySQL pool](https://github.com/aswijayan/signtoon/blob/main/server/db.js): `server/db.js`
- [Browser progress](https://github.com/aswijayan/signtoon/blob/main/src/components/ChapterQuiz.jsx): `src/components/ChapterQuiz.jsx`

### Other components

- **Learner**

## Connections

- Learner → App entry: opens app (evidence: `src/main.jsx`)
- App entry → Route selector: renders (evidence: `src/main.jsx`)
- Route selector → Sign in / up: routes to (evidence: `src/App.jsx`)
- Route selector → Learning dashboard: routes to (evidence: `src/App.jsx`)
- Route selector → Alphabet lessons: routes to (evidence: `src/App.jsx`)
- Route selector → Number lessons: routes to (evidence: `src/App.jsx`)
- Sign in / up → Auth API
- Auth API → Password hashing: hashes passwords (evidence: `server/server.js`)
- Auth API → MySQL pool: queries users (evidence: `server/server.js`)
- Alphabet lessons → Chapter quiz: opens quiz (evidence: `src/pages/AlphabetLearning.jsx`)
- Number lessons → Chapter quiz: opens quiz (evidence: `src/pages/NumberLearning.jsx`)
- Alphabet lessons → Browser progress: saves progress (evidence: `src/pages/AlphabetLearning.jsx`)
- Number lessons → Browser progress: saves progress (evidence: `src/pages/NumberLearning.jsx`)
- Chapter quiz → Browser progress: saves score (evidence: `src/components/ChapterQuiz.jsx`)
- Learning dashboard → Browser progress: reads progress (evidence: `src/pages/Dashboard.jsx`)
- Learning dashboard → Alphabet lessons
- Learning dashboard → Number lessons
