# tanyasanghavi/aslingo architecture

> Architecture diagram of the GitHub repository tanyasanghavi/aslingo, 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/tanyasanghavi/aslingo
- Repository: https://github.com/tanyasanghavi/aslingo

## Overview

ASLingo is a browser-based ASL learning app: users sign in, choose a learning path, watch a 3D sign demonstration, then practice with camera-based hand and face feedback; scores feed progress. Separate game modes include solo challenges, online battles, leaderboards, and teams. The sampled client shows local scoring and a WebSocket client; the README describes broader capabilities, while server implementation details and several screens were not excerpted, so those connections are shown only where documented or clearly marked unverified.

Main entry points: [`src/App.jsx`](https://github.com/tanyasanghavi/aslingo/blob/main/src/App.jsx) (App coordinator), [`src/screens/Games.jsx`](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Games.jsx) (Game hub), [`src/components/Challenge.jsx`](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Challenge.jsx) (Sign challenge), [`src/screens/Practice.jsx`](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Practice.jsx) (Practice lesson)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_app["App coordinator<br/>[App.jsx]"]
  node_signin["Sign in<br/>[SignIn.jsx]"]
  node_onboarding["Onboarding<br/>[Onboarding.jsx]"]
  node_home["Learning path<br/>[Home.jsx]"]
  node_progress["Progress<br/>[Progress.jsx]"]
  node_props["3D scene props<br/>[Props3D.jsx]"]
end

subgraph group_learning["Sign learning"]
  node_curriculum["Sign curriculum<br/>[curriculum.js]"]
  node_practice["Practice lesson<br/>[Practice.jsx]"]
  node_camera["Camera tracking<br/>[Camera.jsx]"]
  node_features["Pose features<br/>[features.js]"]
  node_scoring["Sign scoring<br/>[scoring.js]"]
  node_wizard["3D wizard coach<br/>[Wizard3D.jsx]"]
  node_hand["3D sign hand<br/>[Hand3D.jsx]"]
end

subgraph group_games["Games and social"]
  node_challenge["Sign challenge<br/>[Challenge.jsx]"]
  node_games["Game hub<br/>[Games.jsx]"]
  node_online["Online battle<br/>[OnlineBattle.jsx]"]
  node_social["Leaderboard and teams<br/>[Social.jsx]"]
end

subgraph group_runtime["Runtime services"]
  node_auth[("Local accounts<br/>[auth.js]")]
  node_profile[("Learner state<br/>[profile.js]")]
  node_net["WebSocket client<br/>[net.js]"]
  node_server["Game server<br/>[index.js]"]
  node_persistence[("Server persistence<br/>[persist.js]")]
end

node_learner(("Learner"))
node_mediapipe["MediaPipe models"]

node_learner -->|"uses"| node_app
node_app -->|"routes to"| node_signin
node_app -->|"routes to"| node_onboarding
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_practice
node_app -->|"routes to"| node_progress
node_app -->|"routes to"| node_games
node_app -->|"authenticates with"| node_auth
node_app -->|"loads and saves"| node_profile
node_app -->|"sends player status"| node_net
node_app -->|"renders"| node_wizard
node_app -->|"renders"| node_props
node_home -->|"reads lessons"| node_curriculum
node_practice -->|"reads sign targets"| node_curriculum
node_practice -->|"receives frames"| node_camera
node_practice -->|"scores signs"| node_scoring
node_practice -->|"derives pose cues"| node_features
node_camera -->|"tracks hands and face"| node_mediapipe
node_camera -->|"summarizes face"| node_features
node_challenge -->|"receives frames"| node_camera
node_challenge -->|"reads sign targets"| node_curriculum
node_challenge -->|"scores signs"| node_scoring
node_challenge -->|"checks palm direction"| node_features
node_games -->|"starts challenges"| node_challenge
node_games -->|"opens battle"| node_online
node_games -->|"opens social tabs"| node_social
node_games -->|"chooses game signs"| node_curriculum
node_games -->|"reads player identity"| node_net
node_online -->|"runs each round"| node_challenge
node_online -->|"chooses targets"| node_curriculum
node_online -->|"sends and receives match data"| node_net
node_social -->|"uses shared connection"| node_net
node_wizard -->|"renders sign demo"| node_hand
node_net -.->|"connects by WebSocket"| node_server
node_server -->|"uses persistence"| node_persistence
node_server -.->|"supports online play"| node_learner

click node_app "https://github.com/tanyasanghavi/aslingo/blob/main/src/App.jsx"
click node_signin "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/SignIn.jsx"
click node_onboarding "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Onboarding.jsx"
click node_home "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Home.jsx"
click node_progress "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Progress.jsx"
click node_auth "https://github.com/tanyasanghavi/aslingo/blob/main/src/store/auth.js"
click node_profile "https://github.com/tanyasanghavi/aslingo/blob/main/src/store/profile.js"
click node_curriculum "https://github.com/tanyasanghavi/aslingo/blob/main/src/data/curriculum.js"
click node_practice "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Practice.jsx"
click node_camera "https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Camera.jsx"
click node_features "https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/features.js"
click node_scoring "https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/scoring.js"
click node_challenge "https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Challenge.jsx"
click node_games "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Games.jsx"
click node_online "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/OnlineBattle.jsx"
click node_social "https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Social.jsx"
click node_net "https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/net.js"
click node_server "https://github.com/tanyasanghavi/aslingo/blob/main/server/server/index.js"
click node_persistence "https://github.com/tanyasanghavi/aslingo/blob/main/server/server/persist.js"
click node_wizard "https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Wizard3D.jsx"
click node_hand "https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Hand3D.jsx"
click node_props "https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Props3D.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_app,node_signin,node_onboarding,node_home,node_progress,node_props toneBlue
class node_curriculum,node_practice,node_camera,node_features,node_scoring,node_wizard,node_hand toneAmber
class node_challenge,node_games,node_online,node_social,node_mediapipe toneMint
class node_auth,node_profile,node_net,node_server,node_persistence toneRose
class node_learner toneIndigo
```

## Components

### App flow

- [App coordinator](https://github.com/tanyasanghavi/aslingo/blob/main/src/App.jsx): `src/App.jsx`
- [Sign in](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/SignIn.jsx): `src/screens/SignIn.jsx`
- [Onboarding](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Onboarding.jsx): `src/screens/Onboarding.jsx`
- [Learning path](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Home.jsx): `src/screens/Home.jsx`
- [Progress](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Progress.jsx): `src/screens/Progress.jsx`
- [3D scene props](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Props3D.jsx): `src/components/Props3D.jsx`

### Sign learning

- [Sign curriculum](https://github.com/tanyasanghavi/aslingo/blob/main/src/data/curriculum.js): `src/data/curriculum.js`
- [Practice lesson](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Practice.jsx): `src/screens/Practice.jsx`
- [Camera tracking](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Camera.jsx): `src/components/Camera.jsx`
- [Pose features](https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/features.js): `src/lib/features.js`
- [Sign scoring](https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/scoring.js): `src/lib/scoring.js`
- [3D wizard coach](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Wizard3D.jsx): `src/components/Wizard3D.jsx`
- [3D sign hand](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Hand3D.jsx): `src/components/Hand3D.jsx`

### Games and social

- [Sign challenge](https://github.com/tanyasanghavi/aslingo/blob/main/src/components/Challenge.jsx): `src/components/Challenge.jsx`
- [Game hub](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Games.jsx): `src/screens/Games.jsx`
- [Online battle](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/OnlineBattle.jsx): `src/screens/OnlineBattle.jsx`
- [Leaderboard and teams](https://github.com/tanyasanghavi/aslingo/blob/main/src/screens/Social.jsx): `src/screens/Social.jsx`

### Runtime services

- [Local accounts](https://github.com/tanyasanghavi/aslingo/blob/main/src/store/auth.js): `src/store/auth.js`
- [Learner state](https://github.com/tanyasanghavi/aslingo/blob/main/src/store/profile.js): `src/store/profile.js`
- [WebSocket client](https://github.com/tanyasanghavi/aslingo/blob/main/src/lib/net.js): `src/lib/net.js`
- [Game server](https://github.com/tanyasanghavi/aslingo/blob/main/server/server/index.js): `server/server/index.js`
- [Server persistence](https://github.com/tanyasanghavi/aslingo/blob/main/server/server/persist.js): `server/server/persist.js`

### Other components

- **Learner**
- **MediaPipe models**

## Connections

- Learner → App coordinator: uses (evidence: `README.md`)
- App coordinator → Sign in: routes to (evidence: `src/App.jsx`)
- App coordinator → Onboarding: routes to (evidence: `src/App.jsx`)
- App coordinator → Learning path: routes to (evidence: `src/App.jsx`)
- App coordinator → Practice lesson: routes to (evidence: `src/App.jsx`)
- App coordinator → Progress: routes to (evidence: `src/App.jsx`)
- App coordinator → Game hub: routes to (evidence: `src/App.jsx`)
- App coordinator → Local accounts: authenticates with (evidence: `src/App.jsx`)
- App coordinator → Learner state: loads and saves (evidence: `src/App.jsx`)
- App coordinator → WebSocket client: sends player status (evidence: `src/App.jsx`)
- App coordinator → 3D wizard coach: renders (evidence: `src/App.jsx`)
- App coordinator → 3D scene props: renders (evidence: `src/App.jsx`)
- Learning path → Sign curriculum: reads lessons (evidence: `src/screens/Home.jsx`)
- Practice lesson → Sign curriculum: reads sign targets (evidence: `src/screens/Practice.jsx`)
- Practice lesson → Camera tracking: receives frames (evidence: `src/screens/Practice.jsx`)
- Practice lesson → Sign scoring: scores signs (evidence: `src/screens/Practice.jsx`)
- Practice lesson → Pose features: derives pose cues (evidence: `src/screens/Practice.jsx`)
- Camera tracking → MediaPipe models: tracks hands and face (evidence: `src/components/Camera.jsx`)
- Camera tracking → Pose features: summarizes face (evidence: `src/components/Camera.jsx`)
- Sign challenge → Camera tracking: receives frames (evidence: `src/components/Challenge.jsx`)
- Sign challenge → Sign curriculum: reads sign targets (evidence: `src/components/Challenge.jsx`)
- Sign challenge → Sign scoring: scores signs (evidence: `src/components/Challenge.jsx`)
- Sign challenge → Pose features: checks palm direction (evidence: `src/components/Challenge.jsx`)
- Game hub → Sign challenge: starts challenges (evidence: `src/screens/Games.jsx`)
- Game hub → Online battle: opens battle (evidence: `src/screens/Games.jsx`)
- Game hub → Leaderboard and teams: opens social tabs (evidence: `src/screens/Games.jsx`)
- Game hub → Sign curriculum: chooses game signs (evidence: `src/screens/Games.jsx`)
- Game hub → WebSocket client: reads player identity (evidence: `src/screens/Games.jsx`)
- Online battle → Sign challenge: runs each round (evidence: `src/screens/OnlineBattle.jsx`)
- Online battle → Sign curriculum: chooses targets (evidence: `src/screens/OnlineBattle.jsx`)
- Online battle → WebSocket client: sends and receives match data (evidence: `src/screens/OnlineBattle.jsx`)
- Leaderboard and teams → WebSocket client: uses shared connection (evidence: `src/screens/Social.jsx`)
- 3D wizard coach → 3D sign hand: renders sign demo (evidence: `src/components/Wizard3D.jsx`)
- WebSocket client → Game server: connects by WebSocket
- Game server → Server persistence: uses persistence (evidence: `server/server/index.js`)
- Game server → Learner: supports online play (evidence: `README.md`)
