# eclipse1911/signbridge architecture

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

- Interactive diagram: https://gitdiagram.com/eclipse1911/signbridge
- Repository: https://github.com/eclipse1911/signbridge

## Overview

SignBridge India is a browser-based Indian Sign Language communication and learning platform. Its primary workflow captures camera images, requests sign predictions from the Flask API, accumulates recognized characters, and offers sentence correction and speech output. Separate learning and practice views use the supported-sign catalog and camera recognition. The graph combines source excerpts with README-documented architecture; backend internals and some UI wiring were not sampled, so those links are limited to documented relationships.

Main entry points: [`frontend/src/components/LiveCommunicatorView.tsx`](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/LiveCommunicatorView.tsx) (Live communicator), [`frontend/src/App.tsx`](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/App.tsx) (App coordinator), [`frontend/src/components/PracticeView.tsx`](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/PracticeView.tsx) (Practice studio), [`frontend/src/components/CameraPreview.tsx`](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/CameraPreview.tsx) (Camera and HUD)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application shell"]
  node_app["App coordinator<br/>[App.tsx]"]
  node_navigation["Navigation and settings<br/>[Navigation.tsx]"]
  node_dashboard["Dashboard<br/>[DashboardView.tsx]"]
  node_about["About view<br/>[AboutView.tsx]"]
end

subgraph group_communication["Live communication"]
  node_live["Live communicator"]
  node_camera["Camera and HUD<br/>[CameraPreview.tsx]"]
  node_sequence["Sequence builder"]
  node_prediction["Prediction badge<br/>[PredictionCard.tsx]"]
  node_suggestion["AI suggestion card"]
end

subgraph group_learning["Learning and practice"]
  node_learn["ISL dictionary<br/>[LearnISLView.tsx]"]
  node_catalog[("ISL sign catalog<br/>[islClasses.ts]")]
  node_practice["Practice studio<br/>[PracticeView.tsx]"]
  node_samples["Sign reference images"]
end

subgraph group_recognition["Recognition service"]
  node_api["API client<br/>[api.ts]"]
  node_flask["Flask prediction API<br/>[app.py]"]
  node_mediapipe{{"Hand landmark extraction"}}
  node_classifier["35-sign classifier"]
end

node_signer(("ISL signer"))
node_staff(("Hearing staff"))
node_webcam(("Camera"))
node_gemini{{"Google Gemini"}}
node_speech["Browser speech synthesis"]

node_signer -->|"shows signs"| node_camera
node_webcam -->|"provides frames"| node_camera
node_camera -->|"extracts landmarks"| node_mediapipe
node_mediapipe -.->|"sends features"| node_flask
node_flask -->|"classifies signs"| node_classifier
node_live -->|"renders camera"| node_camera
node_live -->|"requests predictions"| node_api
node_live -->|"renders sequence"| node_sequence
node_live -->|"renders prediction"| node_prediction
node_live -->|"renders suggestions"| node_suggestion
node_api -->|"posts predictions"| node_flask
node_api -->|"requests correction"| node_gemini
node_live -->|"speaks sentences"| node_speech
node_speech -->|"plays audio"| node_staff
node_app -->|"selects view"| node_live
node_app -->|"renders navigation"| node_navigation
node_app -->|"selects view"| node_dashboard
node_app -->|"selects view"| node_learn
node_app -->|"selects view"| node_practice
node_app -->|"selects view"| node_about
node_learn -->|"reads entries"| node_catalog
node_learn -->|"shows references"| node_samples
node_learn -->|"opens practice"| node_practice
node_practice -->|"selects targets"| node_catalog
node_practice -->|"uses camera view"| node_camera
node_practice -->|"requests predictions"| node_api

click node_app "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/App.tsx"
click node_navigation "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/Navigation.tsx"
click node_dashboard "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/DashboardView.tsx"
click node_about "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/AboutView.tsx"
click node_live "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/LiveCommunicatorView.tsx"
click node_camera "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/CameraPreview.tsx"
click node_sequence "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/SequenceBuilder.tsx"
click node_prediction "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/PredictionCard.tsx"
click node_suggestion "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/AISuggestionCard.tsx"
click node_api "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/services/api.ts"
click node_flask "https://github.com/eclipse1911/signbridge/blob/main/backend/app.py"
click node_classifier "https://github.com/eclipse1911/signbridge/blob/main/backend/ml_pipeline/signbridge_model_v1.h5"
click node_learn "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/LearnISLView.tsx"
click node_catalog "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/data/islClasses.ts"
click node_practice "https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/PracticeView.tsx"
click node_samples "https://github.com/eclipse1911/signbridge/tree/main/frontend/public/dataset_samples"

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_navigation,node_dashboard,node_about,node_speech toneBlue
class node_live,node_camera,node_sequence,node_prediction,node_suggestion toneAmber
class node_learn,node_catalog,node_practice,node_samples toneMint
class node_api,node_flask,node_mediapipe,node_classifier toneRose
class node_signer,node_staff,node_webcam,node_gemini toneIndigo
```

## Components

### Application shell

- [App coordinator](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Navigation and settings](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/Navigation.tsx): `frontend/src/components/Navigation.tsx`
- [Dashboard](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/DashboardView.tsx): `frontend/src/components/DashboardView.tsx`
- [About view](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/AboutView.tsx): `frontend/src/components/AboutView.tsx`

### Live communication

- [Live communicator](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/LiveCommunicatorView.tsx): `frontend/src/components/LiveCommunicatorView.tsx`
- [Camera and HUD](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/CameraPreview.tsx): `frontend/src/components/CameraPreview.tsx`
- [Sequence builder](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/SequenceBuilder.tsx): `frontend/src/components/SequenceBuilder.tsx`
- [Prediction badge](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/PredictionCard.tsx): `frontend/src/components/PredictionCard.tsx`
- [AI suggestion card](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/AISuggestionCard.tsx): `frontend/src/components/AISuggestionCard.tsx`

### Learning and practice

- [ISL dictionary](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/LearnISLView.tsx): `frontend/src/components/LearnISLView.tsx`
- [ISL sign catalog](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/data/islClasses.ts): `frontend/src/data/islClasses.ts`
- [Practice studio](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/components/PracticeView.tsx): `frontend/src/components/PracticeView.tsx`
- [Sign reference images](https://github.com/eclipse1911/signbridge/tree/main/frontend/public/dataset_samples): `frontend/public/dataset_samples`

### Recognition service

- [API client](https://github.com/eclipse1911/signbridge/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Flask prediction API](https://github.com/eclipse1911/signbridge/blob/main/backend/app.py): `backend/app.py`
- **Hand landmark extraction**
- [35-sign classifier](https://github.com/eclipse1911/signbridge/blob/main/backend/ml_pipeline/signbridge_model_v1.h5): `backend/ml_pipeline/signbridge_model_v1.h5`

### Other components

- **ISL signer**
- **Hearing staff**
- **Camera**
- **Google Gemini**
- **Browser speech synthesis**

## Connections

- ISL signer → Camera and HUD: shows signs (evidence: `README.md`)
- Camera → Camera and HUD: provides frames (evidence: `README.md`)
- Camera and HUD → Hand landmark extraction: extracts landmarks (evidence: `README.md`)
- Hand landmark extraction → Flask prediction API: sends features
- Flask prediction API → 35-sign classifier: classifies signs (evidence: `README.md`)
- Live communicator → Camera and HUD: renders camera (evidence: `frontend/src/components/LiveCommunicatorView.tsx`)
- Live communicator → API client: requests predictions (evidence: `frontend/src/components/LiveCommunicatorView.tsx`)
- Live communicator → Sequence builder: renders sequence (evidence: `frontend/src/components/LiveCommunicatorView.tsx`)
- Live communicator → Prediction badge: renders prediction (evidence: `frontend/src/components/LiveCommunicatorView.tsx`)
- Live communicator → AI suggestion card: renders suggestions (evidence: `frontend/src/components/LiveCommunicatorView.tsx`)
- API client → Flask prediction API: posts predictions (evidence: `frontend/src/services/api.ts`)
- API client → Google Gemini: requests correction (evidence: `frontend/src/services/api.ts`)
- Live communicator → Browser speech synthesis: speaks sentences (evidence: `README.md`)
- Browser speech synthesis → Hearing staff: plays audio (evidence: `README.md`)
- App coordinator → Live communicator: selects view (evidence: `frontend/src/App.tsx`)
- App coordinator → Navigation and settings: renders navigation (evidence: `frontend/src/App.tsx`)
- App coordinator → Dashboard: selects view (evidence: `frontend/src/App.tsx`)
- App coordinator → ISL dictionary: selects view (evidence: `frontend/src/App.tsx`)
- App coordinator → Practice studio: selects view (evidence: `frontend/src/App.tsx`)
- App coordinator → About view: selects view (evidence: `frontend/src/App.tsx`)
- ISL dictionary → ISL sign catalog: reads entries (evidence: `frontend/src/components/LearnISLView.tsx`)
- ISL dictionary → Sign reference images: shows references (evidence: `README.md`)
- ISL dictionary → Practice studio: opens practice (evidence: `README.md`)
- Practice studio → ISL sign catalog: selects targets (evidence: `frontend/src/components/PracticeView.tsx`)
- Practice studio → Camera and HUD: uses camera view (evidence: `frontend/src/components/PracticeView.tsx`)
- Practice studio → API client: requests predictions (evidence: `frontend/src/components/PracticeView.tsx`)
