# isyara-dev/isyara-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/isyara-dev/isyara-frontend
- Repository: https://github.com/isyara-dev/isyara-frontend

## Overview

ISYARA is a web platform for learning BISINDO through structured lessons, real-time gesture practice, and word-building challenges. Users enter through routed, protected pages; authentication establishes their session, and learning/practice pages present material and use gesture detection for feedback. Dashboard, profile, and leaderboard provide progress and scoring views. The README documents the MediaPipe-to-TensorFlow gesture stages and Supabase OAuth; source excerpts show the app routing, auth/session handling, API client, and selected feature calls. Unsampled feature internals are represented at their known source paths, with only indexed or documented relationships shown.

Main entry points: [`src/App.jsx`](https://github.com/isyara-dev/isyara-frontend/blob/main/src/App.jsx) (App routing), [`src/services/api/apiClient.js`](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/api/apiClient.js) (API client), [`src/contexts/AuthContext.jsx`](https://github.com/isyara-dev/isyara-frontend/blob/main/src/contexts/AuthContext.jsx) (Auth context), [`src/features/belajar/belajar/presenter/BelajarPresenter.jsx`](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/belajar/presenter/BelajarPresenter.jsx) (Lesson presenter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and access"]
  node_router["App routing<br/>[App.jsx]"]
  node_auth_pages["Auth pages"]
  node_sidebar["Navigation<br/>[Sidebar.jsx]"]
end

subgraph group_learn["Learning and gestures"]
  node_learning["Lesson presenter"]
  node_lesson_view["Lesson view<br/>[BelajarView.jsx]"]
  node_learning_model["Learning model<br/>[LearningModel.js]"]
  node_practice["Practice presenter"]
  node_practice_model["Practice model<br/>[PracticeModel.js]"]
  node_camera["Gesture detector"]
  node_camera_test["Camera practice<br/>[CameraTest.jsx]"]
  node_gesture_service["Gesture service"]
  node_gesture_model["Gesture classifier"]
end

subgraph group_engage["Progress and challenges"]
  node_dashboard["Dashboard<br/>[DashboardPage.jsx]"]
  node_challenge["Word challenge"]
  node_leaderboard["Leaderboard"]
  node_leaderboard_view["Leaderboard view"]
  node_profile["Profile<br/>[ProfilePage.jsx]"]
  node_profile_presenter["Profile presenter"]
end

subgraph group_services["Identity and services"]
  node_auth_context["Auth context<br/>[AuthContext.jsx]"]
  node_auth_service["Auth service<br/>[authService.js]"]
  node_supabase["Supabase client<br/>[supabaseClient.js]"]
  node_api["API client<br/>[apiClient.js]"]
  node_notifications["Notifications"]
end

node_learner(("Learner"))
node_backend[("ISYARA backend")]

node_learner -->|"opens app"| node_router
node_router -->|"routes auth"| node_auth_pages
node_router -->|"routes protected"| node_dashboard
node_router -->|"routes learning"| node_learning
node_router -->|"routes challenge"| node_challenge
node_router -->|"routes ranking"| node_leaderboard
node_router -->|"routes profile"| node_profile
node_auth_pages -->|"completes callback"| node_auth_context
node_auth_context -->|"saves user"| node_auth_service
node_auth_context -->|"manages session"| node_supabase
node_auth_service -->|"auth requests"| node_backend
node_auth_context -.->|"starts OAuth"| node_learner
node_auth_context -.->|"uses profile API"| node_api
node_dashboard -->|"loads progress"| node_api
node_dashboard -->|"renders navigation"| node_sidebar
node_learning -.->|"presents lesson"| node_lesson_view
node_learning -.->|"uses lesson data"| node_learning_model
node_learner -.->|"practices signs"| node_practice
node_practice -.->|"uses practice logic"| node_practice_model
node_camera_test -->|"renders detector"| node_camera
node_camera -.->|"classifies signs"| node_gesture_model
node_challenge -->|"checks gestures"| node_gesture_service
node_gesture_service -->|"fetches hints"| node_api
node_challenge -->|"submits challenge data"| node_api
node_leaderboard -->|"provides view data"| node_leaderboard_view
node_leaderboard -.->|"loads rankings"| node_api
node_profile -->|"uses presenter"| node_profile_presenter
node_profile_presenter -->|"shows notices"| node_notifications
node_profile_presenter -.->|"uses profile data"| node_api

click node_router "https://github.com/isyara-dev/isyara-frontend/blob/main/src/App.jsx"
click node_auth_pages "https://github.com/isyara-dev/isyara-frontend/tree/main/src/features/auth/pages"
click node_auth_context "https://github.com/isyara-dev/isyara-frontend/blob/main/src/contexts/AuthContext.jsx"
click node_auth_service "https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/auth/authService.js"
click node_supabase "https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/supabaseClient.js"
click node_api "https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/api/apiClient.js"
click node_sidebar "https://github.com/isyara-dev/isyara-frontend/blob/main/src/common/components/layout/Sidebar.jsx"
click node_dashboard "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/dashboard/pages/DashboardPage.jsx"
click node_learning "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/belajar/presenter/BelajarPresenter.jsx"
click node_lesson_view "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/belajar/view/BelajarView.jsx"
click node_learning_model "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/core/models/LearningModel.js"
click node_practice "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/practice/presenter/PracticePresenter.jsx"
click node_practice_model "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/practice/model/PracticeModel.js"
click node_camera "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/components/HandGestureDetector.jsx"
click node_camera_test "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/view/CameraTest.jsx"
click node_gesture_service "https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/gesture/GestureDetectionService.js"
click node_challenge "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/tantangan/presenters/SusunKataPresenter.js"
click node_leaderboard "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/peringkat/presenters/LeaderboardPresenter.jsx"
click node_leaderboard_view "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/peringkat/views/LeaderboardView.jsx"
click node_profile "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/profile/pages/ProfilePage.jsx"
click node_profile_presenter "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/profile/presenters/ProfilePresenter.js"
click node_notifications "https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/NotificationService.jsx"
click node_gesture_model "https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/models/GestureDetectionModel.js"

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_auth_pages,node_sidebar toneBlue
class node_learning,node_lesson_view,node_learning_model,node_practice,node_practice_model,node_camera,node_camera_test,node_gesture_service,node_gesture_model,node_backend toneAmber
class node_dashboard,node_challenge,node_leaderboard,node_leaderboard_view,node_profile,node_profile_presenter toneMint
class node_auth_context,node_auth_service,node_supabase,node_api,node_notifications toneRose
class node_learner toneIndigo
```

## Components

### Application and access

- [App routing](https://github.com/isyara-dev/isyara-frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Auth pages](https://github.com/isyara-dev/isyara-frontend/tree/main/src/features/auth/pages): `src/features/auth/pages`
- [Navigation](https://github.com/isyara-dev/isyara-frontend/blob/main/src/common/components/layout/Sidebar.jsx): `src/common/components/layout/Sidebar.jsx`

### Learning and gestures

- [Lesson presenter](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/belajar/presenter/BelajarPresenter.jsx): `src/features/belajar/belajar/presenter/BelajarPresenter.jsx`
- [Lesson view](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/belajar/view/BelajarView.jsx): `src/features/belajar/belajar/view/BelajarView.jsx`
- [Learning model](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/core/models/LearningModel.js): `src/features/belajar/core/models/LearningModel.js`
- [Practice presenter](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/practice/presenter/PracticePresenter.jsx): `src/features/belajar/practice/presenter/PracticePresenter.jsx`
- [Practice model](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/belajar/practice/model/PracticeModel.js): `src/features/belajar/practice/model/PracticeModel.js`
- [Gesture detector](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/components/HandGestureDetector.jsx): `src/features/gesture/components/HandGestureDetector.jsx`
- [Camera practice](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/view/CameraTest.jsx): `src/features/gesture/view/CameraTest.jsx`
- [Gesture service](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/gesture/GestureDetectionService.js): `src/services/gesture/GestureDetectionService.js`
- [Gesture classifier](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/gesture/models/GestureDetectionModel.js): `src/features/gesture/models/GestureDetectionModel.js`

### Progress and challenges

- [Dashboard](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/dashboard/pages/DashboardPage.jsx): `src/features/dashboard/pages/DashboardPage.jsx`
- [Word challenge](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/tantangan/presenters/SusunKataPresenter.js): `src/features/tantangan/presenters/SusunKataPresenter.js`
- [Leaderboard](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/peringkat/presenters/LeaderboardPresenter.jsx): `src/features/peringkat/presenters/LeaderboardPresenter.jsx`
- [Leaderboard view](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/peringkat/views/LeaderboardView.jsx): `src/features/peringkat/views/LeaderboardView.jsx`
- [Profile](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/profile/pages/ProfilePage.jsx): `src/features/profile/pages/ProfilePage.jsx`
- [Profile presenter](https://github.com/isyara-dev/isyara-frontend/blob/main/src/features/profile/presenters/ProfilePresenter.js): `src/features/profile/presenters/ProfilePresenter.js`

### Identity and services

- [Auth context](https://github.com/isyara-dev/isyara-frontend/blob/main/src/contexts/AuthContext.jsx): `src/contexts/AuthContext.jsx`
- [Auth service](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/auth/authService.js): `src/services/auth/authService.js`
- [Supabase client](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/supabaseClient.js): `src/services/supabaseClient.js`
- [API client](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/api/apiClient.js): `src/services/api/apiClient.js`
- [Notifications](https://github.com/isyara-dev/isyara-frontend/blob/main/src/services/NotificationService.jsx): `src/services/NotificationService.jsx`

### Other components

- **Learner**
- **ISYARA backend**

## Connections

- Learner → App routing: opens app (evidence: `src/App.jsx`)
- App routing → Auth pages: routes auth (evidence: `src/App.jsx`)
- App routing → Dashboard: routes protected (evidence: `src/App.jsx`)
- App routing → Lesson presenter: routes learning (evidence: `src/App.jsx`)
- App routing → Word challenge: routes challenge (evidence: `src/App.jsx`)
- App routing → Leaderboard: routes ranking (evidence: `src/App.jsx`)
- App routing → Profile: routes profile (evidence: `src/App.jsx`)
- Auth pages → Auth context: completes callback (evidence: `src/features/auth/pages/AuthCallback.jsx`)
- Auth context → Auth service: saves user (evidence: `src/contexts/AuthContext.jsx`)
- Auth context → Supabase client: manages session (evidence: `src/contexts/AuthContext.jsx`)
- Auth service → ISYARA backend: auth requests (evidence: `src/services/auth/authService.js`)
- Auth context → Learner: starts OAuth (evidence: `src/contexts/AuthContext.jsx`)
- Auth context → API client: uses profile API
- Dashboard → API client: loads progress (evidence: `src/features/dashboard/pages/DashboardPage.jsx`)
- Dashboard → Navigation: renders navigation (evidence: `src/features/dashboard/pages/DashboardPage.jsx`)
- Lesson presenter → Lesson view: presents lesson (evidence: `src/features/belajar/index.jsx`)
- Lesson presenter → Learning model: uses lesson data (evidence: `src/features/belajar/index.jsx`)
- Learner → Practice presenter: practices signs (evidence: `README.md`)
- Practice presenter → Practice model: uses practice logic (evidence: `src/features/belajar/index.jsx`)
- Camera practice → Gesture detector: renders detector (evidence: `src/features/gesture/view/CameraTest.jsx`)
- Gesture detector → Gesture classifier: classifies signs (evidence: `README.md`)
- Word challenge → Gesture service: checks gestures (evidence: `src/features/tantangan/presenters/SusunKataPresenter.js`)
- Gesture service → API client: fetches hints (evidence: `src/services/gesture/GestureDetectionService.js`)
- Word challenge → API client: submits challenge data (evidence: `src/features/tantangan/presenters/SusunKataPresenter.js`)
- Leaderboard → Leaderboard view: provides view data (evidence: `src/features/peringkat/presenters/LeaderboardPresenter.jsx`)
- Leaderboard → API client: loads rankings
- Profile → Profile presenter: uses presenter (evidence: `src/features/profile/pages/ProfilePage.jsx`)
- Profile presenter → Notifications: shows notices (evidence: `src/features/profile/presenters/ProfilePresenter.js`)
- Profile presenter → API client: uses profile data
