# hokoro/rossetta architecture

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

## Overview

Rossetta is an AI-assisted sign-language learning platform. Learners choose word or sentence lessons, study sign or text material, and practice signing through camera-based capture and model predictions; incorrect answers can be reviewed in a wrong-answer notebook. The Next.js client also supports account management, inquiry-board workflows, and a chatbot, while Django exposes REST endpoints backed by application models. README and sampled code establish the broad client/API and AI integration; several feature-specific routes and backend details were not sampled, so their internal connections are left unspecified.

Main entry points: [`server/api/urls.py`](https://github.com/hokoro/rossetta/blob/master/server/api/urls.py) (REST API routes), [`client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx) (Sign practice), [`server/api/views.py`](https://github.com/hokoro/rossetta/blob/master/server/api/views.py) (API handlers), [`client/my-app/src/app/sign-edu/select-type/page.tsx`](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/page.tsx) (Lesson selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Learner client"]
  node_home["Platform home<br/>[page.tsx]"]
end

subgraph group_learning["Learning and practice"]
  node_sign_lessons["Sign lessons"]
  node_lesson_selection["Lesson selection<br/>[page.tsx]"]
  node_text_memorize["Text memorization<br/>[page.tsx]"]
  node_sign_practice["Sign practice<br/>[page.tsx]"]
  node_camera_capture["Camera capture<br/>[webCamMemorize.tsx]"]
  node_wrong_notes["Wrong-answer review"]
end

subgraph group_account["Accounts and support"]
  node_auth_ui["Account access<br/>[page.tsx]"]
  node_find_id["Find account ID<br/>[page.tsx]"]
  node_find_password["Recover password<br/>[page.tsx]"]
  node_profile["Profile management<br/>[page.tsx]"]
  node_inquiry_board["Inquiry board<br/>[page.tsx]"]
  node_chatbot["Scenario chatbot"]
end

subgraph group_backend["Backend services"]
  node_api_routes["REST API routes<br/>[urls.py]"]
  node_api_views["API handlers<br/>[views.py]"]
end

subgraph group_domain["API domain and AI"]
  node_serializers["Validation serializers<br/>[serializers.py]"]
  node_models[("Domain records<br/>[models.py]")]
  node_email_service["Email verification<br/>[email.py]"]
  node_sign_model["Sign prediction<br/>[views.py]"]
end

node_learner(("Learner"))
node_mail_provider["Email service"]

node_learner -->|"opens platform"| node_home
node_learner -.->|"starts learning"| node_sign_lessons
node_sign_lessons -.->|"offers lesson choices"| node_lesson_selection
node_lesson_selection -.->|"selects text practice"| node_text_memorize
node_lesson_selection -.->|"selects sign practice"| node_sign_practice
node_sign_practice -->|"reads landmarks"| node_camera_capture
node_sign_practice -->|"requests questions"| node_api_routes
node_sign_practice -->|"submits landmarks"| node_api_routes
node_sign_practice -->|"records practice"| node_api_routes
node_sign_practice -.->|"supports error review"| node_wrong_notes
node_learner -.->|"signs in or registers"| node_auth_ui
node_learner -->|"requests ID recovery"| node_find_id
node_learner -->|"requests password recovery"| node_find_password
node_find_id -->|"sends recovery requests"| node_api_routes
node_find_password -->|"sends recovery requests"| node_api_routes
node_learner -->|"manages profile"| node_profile
node_profile -->|"fetches account details"| node_api_routes
node_learner -.->|"uses support board"| node_inquiry_board
node_learner -.->|"uses scenarios"| node_chatbot
node_api_routes -->|"routes requests"| node_api_views
node_api_views -->|"validates API data"| node_serializers
node_api_views -->|"queries domain records"| node_models
node_serializers -->|"validates model data"| node_models
node_api_views -->|"uses email helpers"| node_email_service
node_email_service -.->|"sends verification mail"| node_mail_provider
node_api_views -->|"dispatches prediction"| node_sign_model

click node_home "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/page.tsx"
click node_sign_lessons "https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/sign-edu"
click node_lesson_selection "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/page.tsx"
click node_text_memorize "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/text-memorize/page.tsx"
click node_sign_practice "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx"
click node_camera_capture "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/components/webCamMemorize.tsx"
click node_wrong_notes "https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/wrong_note"
click node_auth_ui "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/page.tsx"
click node_find_id "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/find_id/page.tsx"
click node_find_password "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/find_pw/page.tsx"
click node_profile "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/mypage/page.tsx"
click node_inquiry_board "https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/board/page.tsx"
click node_chatbot "https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/chatbot"
click node_api_routes "https://github.com/hokoro/rossetta/blob/master/server/api/urls.py"
click node_api_views "https://github.com/hokoro/rossetta/blob/master/server/api/views.py"
click node_serializers "https://github.com/hokoro/rossetta/blob/master/server/api/serializers.py"
click node_models "https://github.com/hokoro/rossetta/blob/master/server/api/models.py"
click node_email_service "https://github.com/hokoro/rossetta/blob/master/server/api/email.py"
click node_sign_model "https://github.com/hokoro/rossetta/blob/master/server/api/views.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_home toneBlue
class node_sign_lessons,node_lesson_selection,node_text_memorize,node_sign_practice,node_camera_capture,node_wrong_notes toneAmber
class node_auth_ui,node_find_id,node_find_password,node_profile,node_inquiry_board,node_chatbot toneMint
class node_api_routes,node_api_views toneRose
class node_serializers,node_models,node_email_service,node_sign_model,node_learner,node_mail_provider toneIndigo
```

## Components

### Learner client

- [Platform home](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/page.tsx): `client/my-app/src/app/page.tsx`

### Learning and practice

- [Sign lessons](https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/sign-edu): `client/my-app/src/app/sign-edu`
- [Lesson selection](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/page.tsx): `client/my-app/src/app/sign-edu/select-type/page.tsx`
- [Text memorization](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/text-memorize/page.tsx): `client/my-app/src/app/sign-edu/select-type/text-memorize/page.tsx`
- [Sign practice](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx): `client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`
- [Camera capture](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/components/webCamMemorize.tsx): `client/my-app/src/app/components/webCamMemorize.tsx`
- [Wrong-answer review](https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/wrong_note): `client/my-app/src/app/wrong_note`

### Accounts and support

- [Account access](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/page.tsx): `client/my-app/src/app/auth/page.tsx`
- [Find account ID](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/find_id/page.tsx): `client/my-app/src/app/auth/find_id/page.tsx`
- [Recover password](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/auth/find_pw/page.tsx): `client/my-app/src/app/auth/find_pw/page.tsx`
- [Profile management](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/mypage/page.tsx): `client/my-app/src/app/mypage/page.tsx`
- [Inquiry board](https://github.com/hokoro/rossetta/blob/master/client/my-app/src/app/board/page.tsx): `client/my-app/src/app/board/page.tsx`
- [Scenario chatbot](https://github.com/hokoro/rossetta/tree/master/client/my-app/src/app/chatbot): `client/my-app/src/app/chatbot`

### Backend services

- [REST API routes](https://github.com/hokoro/rossetta/blob/master/server/api/urls.py): `server/api/urls.py`
- [API handlers](https://github.com/hokoro/rossetta/blob/master/server/api/views.py): `server/api/views.py`

### API domain and AI

- [Validation serializers](https://github.com/hokoro/rossetta/blob/master/server/api/serializers.py): `server/api/serializers.py`
- [Domain records](https://github.com/hokoro/rossetta/blob/master/server/api/models.py): `server/api/models.py`
- [Email verification](https://github.com/hokoro/rossetta/blob/master/server/api/email.py): `server/api/email.py`
- [Sign prediction](https://github.com/hokoro/rossetta/blob/master/server/api/views.py): `server/api/views.py`

### Other components

- **Learner**
- **Email service**

## Connections

- Learner → Platform home: opens platform (evidence: `client/my-app/src/app/page.tsx`)
- Learner → Sign lessons: starts learning
- Sign lessons → Lesson selection: offers lesson choices
- Lesson selection → Text memorization: selects text practice (evidence: `client/my-app/src/app/sign-edu/select-type/page.tsx`)
- Lesson selection → Sign practice: selects sign practice (evidence: `client/my-app/src/app/sign-edu/select-type/page.tsx`)
- Sign practice → Camera capture: reads landmarks (evidence: `client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`)
- Sign practice → REST API routes: requests questions (evidence: `client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`)
- Sign practice → REST API routes: submits landmarks (evidence: `client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`)
- Sign practice → REST API routes: records practice (evidence: `client/my-app/src/app/sign-edu/select-type/sign-memorize/page.tsx`)
- Sign practice → Wrong-answer review: supports error review
- Learner → Account access: signs in or registers
- Learner → Find account ID: requests ID recovery (evidence: `client/my-app/src/app/auth/find_id/page.tsx`)
- Learner → Recover password: requests password recovery (evidence: `client/my-app/src/app/auth/find_pw/page.tsx`)
- Find account ID → REST API routes: sends recovery requests (evidence: `client/my-app/src/app/auth/find_id/page.tsx`)
- Recover password → REST API routes: sends recovery requests (evidence: `client/my-app/src/app/auth/find_pw/page.tsx`)
- Learner → Profile management: manages profile (evidence: `client/my-app/src/app/mypage/page.tsx`)
- Profile management → REST API routes: fetches account details (evidence: `client/my-app/src/app/mypage/page.tsx`)
- Learner → Inquiry board: uses support board
- Learner → Scenario chatbot: uses scenarios
- REST API routes → API handlers: routes requests (evidence: `server/api/urls.py`)
- API handlers → Validation serializers: validates API data (evidence: `server/api/views.py`)
- API handlers → Domain records: queries domain records (evidence: `server/api/views.py`)
- Validation serializers → Domain records: validates model data (evidence: `server/api/serializers.py`)
- API handlers → Email verification: uses email helpers (evidence: `server/api/views.py`)
- Email verification → Email service: sends verification mail (evidence: `server/api/email.py`)
- API handlers → Sign prediction: dispatches prediction (evidence: `server/api/views.py`)
