# rik-maghi/sibi-ai-web architecture

> Architecture diagram of the GitHub repository rik-maghi/sibi-ai-web, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rik-maghi/sibi-ai-web
- Repository: https://github.com/rik-maghi/sibi-ai-web

## Overview

SIGNARA Web is a legacy Flutter prototype for translating SIBI sign language. Its apparent user workflow is to open the app, use a camera or blackboard interaction, interpret gestures, and view or speak results; the filenames also indicate dictionary, quiz, and settings features. The README confirms the translator purpose but does not describe these screen-to-service calls. Dart implementations were not sampled, so those relationships are shown as unverified rather than asserted.

Main entry points: [`lib/dashboard_layout.dart`](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/dashboard_layout.dart) (Dashboard), [`lib/services/interpreter_service.dart`](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service.dart) (Interpreter service), [`lib/screens/camera_screen.dart`](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/camera_screen.dart) (Camera input), [`lib/services/interpreter_service_mobile.dart`](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_mobile.dart) (Mobile interpreter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["App entry<br/>[main.dart]"]
  node_dashboard["Dashboard"]
end

subgraph group_input["Sign input"]
  node_camera["Camera input<br/>[camera_screen.dart]"]
  node_camera_web["Web camera input"]
  node_blackboard["Blackboard input"]
  node_skeleton["Hand skeleton view"]
end

subgraph group_interpretation["Interpretation"]
  node_gesture_utils["Gesture utilities<br/>[gesture_utils.dart]"]
  node_interpreter["Interpreter service"]
  node_interpreter_mobile["Mobile interpreter"]
  node_interpreter_web["Web interpreter"]
  node_interpreter_stub["Fallback interpreter"]
  node_model["SIBI model<br/>[sibi_model.tflite]"]
  node_hand_model["Hand landmark model"]
  node_classification["Classification results"]
  node_prediction["Word prediction"]
  node_tts["Text to speech<br/>[tts_service.dart]"]
end

subgraph group_learning["Learning and preferences"]
  node_dictionary["Dictionary"]
  node_quiz["Quiz<br/>[quiz_screen.dart]"]
  node_quiz_web["Web quiz"]
  node_settings["Settings"]
end

node_user(("User"))

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_dashboard
node_dashboard -.->|"opens"| node_camera
node_dashboard -.->|"opens"| node_camera_web
node_dashboard -.->|"opens"| node_blackboard
node_camera -.->|"submits gestures"| node_interpreter
node_camera_web -.->|"submits gestures"| node_interpreter
node_blackboard -.->|"submits gestures"| node_interpreter
node_camera -.->|"renders"| node_skeleton
node_interpreter -.->|"uses"| node_gesture_utils
node_interpreter -.->|"selects"| node_interpreter_mobile
node_interpreter -.->|"selects"| node_interpreter_web
node_interpreter -.->|"selects"| node_interpreter_stub
node_interpreter_mobile -.->|"loads"| node_model
node_interpreter_mobile -.->|"loads"| node_hand_model
node_interpreter -.->|"returns results"| node_classification
node_classification -.->|"requests suggestions"| node_prediction
node_classification -.->|"speaks result"| node_tts
node_dashboard -.->|"opens"| node_dictionary
node_dashboard -.->|"opens"| node_quiz
node_dashboard -.->|"opens"| node_quiz_web
node_dashboard -.->|"opens"| node_settings

click node_entry "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/main.dart"
click node_dashboard "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/dashboard_layout.dart"
click node_camera "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/camera_screen.dart"
click node_camera_web "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/camera_screen_web.dart"
click node_blackboard "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/blackboard_screen.dart"
click node_skeleton "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/widgets/hand_skeleton_painter.dart"
click node_gesture_utils "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/gesture_utils.dart"
click node_interpreter "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service.dart"
click node_interpreter_mobile "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_mobile.dart"
click node_interpreter_web "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_web.dart"
click node_interpreter_stub "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_stub.dart"
click node_model "https://github.com/rik-maghi/sibi-ai-web/blob/main/assets/sibi_model.tflite"
click node_hand_model "https://github.com/rik-maghi/sibi-ai-web/blob/main/assets/hand_landmarker.task"
click node_classification "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/classification_screen.dart"
click node_prediction "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/word_prediction_service.dart"
click node_tts "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/tts_service.dart"
click node_dictionary "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/dictionary_screen.dart"
click node_quiz "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/quiz_screen.dart"
click node_quiz_web "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/quiz_screen_web.dart"
click node_settings "https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/settings_screen.dart"

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_dashboard,node_user toneBlue
class node_camera,node_camera_web,node_blackboard,node_skeleton toneAmber
class node_gesture_utils,node_interpreter,node_interpreter_mobile,node_interpreter_web,node_interpreter_stub,node_model,node_hand_model,node_classification,node_prediction,node_tts toneMint
class node_dictionary,node_quiz,node_quiz_web,node_settings toneRose
```

## Components

### App and navigation

- [App entry](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/main.dart): `lib/main.dart`
- [Dashboard](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/dashboard_layout.dart): `lib/dashboard_layout.dart`

### Sign input

- [Camera input](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/camera_screen.dart): `lib/screens/camera_screen.dart`
- [Web camera input](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/camera_screen_web.dart): `lib/screens/camera_screen_web.dart`
- [Blackboard input](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/blackboard_screen.dart): `lib/screens/blackboard_screen.dart`
- [Hand skeleton view](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/widgets/hand_skeleton_painter.dart): `lib/widgets/hand_skeleton_painter.dart`

### Interpretation

- [Gesture utilities](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/gesture_utils.dart): `lib/services/gesture_utils.dart`
- [Interpreter service](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service.dart): `lib/services/interpreter_service.dart`
- [Mobile interpreter](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_mobile.dart): `lib/services/interpreter_service_mobile.dart`
- [Web interpreter](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_web.dart): `lib/services/interpreter_service_web.dart`
- [Fallback interpreter](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/interpreter_service_stub.dart): `lib/services/interpreter_service_stub.dart`
- [SIBI model](https://github.com/rik-maghi/sibi-ai-web/blob/main/assets/sibi_model.tflite): `assets/sibi_model.tflite`
- [Hand landmark model](https://github.com/rik-maghi/sibi-ai-web/blob/main/assets/hand_landmarker.task): `assets/hand_landmarker.task`
- [Classification results](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/classification_screen.dart): `lib/screens/classification_screen.dart`
- [Word prediction](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/word_prediction_service.dart): `lib/services/word_prediction_service.dart`
- [Text to speech](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/services/tts_service.dart): `lib/services/tts_service.dart`

### Learning and preferences

- [Dictionary](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/dictionary_screen.dart): `lib/screens/dictionary_screen.dart`
- [Quiz](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/quiz_screen.dart): `lib/screens/quiz_screen.dart`
- [Web quiz](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/quiz_screen_web.dart): `lib/screens/quiz_screen_web.dart`
- [Settings](https://github.com/rik-maghi/sibi-ai-web/blob/main/lib/screens/settings_screen.dart): `lib/screens/settings_screen.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Dashboard: starts
- Dashboard → Camera input: opens
- Dashboard → Web camera input: opens
- Dashboard → Blackboard input: opens
- Camera input → Interpreter service: submits gestures
- Web camera input → Interpreter service: submits gestures
- Blackboard input → Interpreter service: submits gestures
- Camera input → Hand skeleton view: renders
- Interpreter service → Gesture utilities: uses
- Interpreter service → Mobile interpreter: selects
- Interpreter service → Web interpreter: selects
- Interpreter service → Fallback interpreter: selects
- Mobile interpreter → SIBI model: loads
- Mobile interpreter → Hand landmark model: loads
- Interpreter service → Classification results: returns results
- Classification results → Word prediction: requests suggestions
- Classification results → Text to speech: speaks result
- Dashboard → Dictionary: opens
- Dashboard → Quiz: opens
- Dashboard → Web quiz: opens
- Dashboard → Settings: opens
