# rohanpawar0006/signbridge-ai architecture

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

## Overview

SignBridge AI is a browser-based, bidirectional Indian Sign Language communication platform. Its main workflow tracks a signer’s hand, segments motion, sends gesture sequences for recognition, and presents the prediction in a live conversation; the reverse path converts speech into ISL glosses and sign demonstrations. The product also includes standalone sign recognition, practice, capture, and dictionary experiences. The README documents the broader capabilities; where source excerpts do not show runtime wiring, omitted relationships are intentional.

Main entry points: [`frontend/src/components/ConversationMode.jsx`](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/ConversationMode.jsx) (Live conversation), [`frontend/src/App.jsx`](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/App.jsx) (Mode selection), [`backend/app/routers/gesture_ws.py`](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/routers/gesture_ws.py) (Gesture endpoint), [`backend/app/services/gesture_classifier.py`](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/services/gesture_classifier.py) (Gesture classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser experience"]
  node_app["Mode selection<br/>[App.jsx]"]
  node_capture["Sign capture<br/>[SignCapture.jsx]"]
  node_practice["Practice studio<br/>[PracticeStudio.jsx]"]
  node_dictionary["ISL dictionary<br/>[SignDictionary.jsx]"]
  node_api["Backend API client<br/>[api.js]"]
end

subgraph group_recognition["Gesture recognition"]
  node_tracker["Hand tracking<br/>[mediapipe.js]"]
  node_segmenter["Motion segmentation<br/>[motionSegmenter.js]"]
  node_gesturews["Gesture WebSocket<br/>[websocket.js]"]
end

subgraph group_conversation["Conversation and signs"]
  node_conversation["Live conversation"]
  node_speech["Speech services<br/>[speech.js]"]
  node_tokenizer["ISL tokenizer<br/>[islDictionary.js]"]
  node_clipplayer["Sign demonstrations<br/>[ClipPlayer.jsx]"]
  node_photos["Sign photo assets<br/>[signPhotos.js]"]
end

subgraph group_backend["Backend services"]
  node_wsrouter["Gesture endpoint<br/>[gesture_ws.py]"]
  node_classifier["Gesture classifier"]
  node_lstm["Bi-LSTM model<br/>[lstm_model.py]"]
  node_clips["Clip catalog API<br/>[clips.py]"]
  node_clipservice["Clip catalog service<br/>[clip_service.py]"]
  node_config["Vocabulary configuration<br/>[config.py]"]
  node_main["API application<br/>[main.py]"]
end

node_signer(("ISL signer"))
node_speaker(("Speaker"))
node_camera(("Camera"))
node_microphone(("Microphone"))

node_signer -->|"signs to"| node_camera
node_camera -->|"provides frames"| node_tracker
node_tracker -->|"reports landmarks"| node_conversation
node_conversation -->|"segments motion"| node_segmenter
node_conversation -->|"sends gestures"| node_gesturews
node_gesturews -->|"sends sequences"| node_wsrouter
node_wsrouter -->|"dispatches gestures"| node_classifier
node_classifier -->|"runs inference"| node_lstm
node_wsrouter -->|"returns predictions"| node_conversation
node_microphone -->|"provides speech"| node_speech
node_conversation -->|"uses speech services"| node_speech
node_conversation -->|"tokenizes speech"| node_tokenizer
node_conversation -->|"plays sign tokens"| node_clipplayer
node_clipplayer -->|"loads sign photos"| node_photos
node_speech -->|"requests TTS fallback"| node_api
node_signer -.->|"records signs"| node_capture
node_signer -.->|"practices signs"| node_practice
node_signer -.->|"browses signs"| node_dictionary
node_app -->|"selects mode"| node_conversation
node_app -->|"selects mode"| node_capture
node_app -->|"selects mode"| node_practice
node_app -->|"selects mode"| node_dictionary
node_app -->|"fetches health and vocabulary"| node_api
node_api -.->|"calls backend"| node_main
node_main -->|"registers routes"| node_wsrouter
node_main -->|"registers routes"| node_clips
node_clips -->|"queries catalog"| node_clipservice
node_clipservice -->|"reads vocabulary and catalog"| node_config
node_classifier -->|"reads model parameters"| node_config

click node_app "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/App.jsx"
click node_capture "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/SignCapture.jsx"
click node_practice "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/PracticeStudio.jsx"
click node_dictionary "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/SignDictionary.jsx"
click node_tracker "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/mediapipe.js"
click node_segmenter "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/motionSegmenter.js"
click node_gesturews "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/websocket.js"
click node_wsrouter "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/routers/gesture_ws.py"
click node_classifier "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/services/gesture_classifier.py"
click node_lstm "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/models/lstm_model.py"
click node_conversation "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/ConversationMode.jsx"
click node_speech "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/speech.js"
click node_tokenizer "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/islDictionary.js"
click node_clipplayer "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/ClipPlayer.jsx"
click node_photos "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/signPhotos.js"
click node_clips "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/routers/clips.py"
click node_clipservice "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/services/clip_service.py"
click node_config "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/config.py"
click node_api "https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/api.js"
click node_main "https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/main.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_app,node_capture,node_practice,node_dictionary,node_api toneBlue
class node_tracker,node_segmenter,node_gesturews toneAmber
class node_conversation,node_speech,node_tokenizer,node_clipplayer,node_photos toneMint
class node_wsrouter,node_classifier,node_lstm,node_clips,node_clipservice,node_config,node_main toneRose
class node_signer,node_speaker,node_camera,node_microphone toneIndigo
```

## Components

### Browser experience

- [Mode selection](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Sign capture](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/SignCapture.jsx): `frontend/src/components/SignCapture.jsx`
- [Practice studio](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/PracticeStudio.jsx): `frontend/src/components/PracticeStudio.jsx`
- [ISL dictionary](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/SignDictionary.jsx): `frontend/src/components/SignDictionary.jsx`
- [Backend API client](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`

### Gesture recognition

- [Hand tracking](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/mediapipe.js): `frontend/src/services/mediapipe.js`
- [Motion segmentation](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/motionSegmenter.js): `frontend/src/utils/motionSegmenter.js`
- [Gesture WebSocket](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/websocket.js): `frontend/src/services/websocket.js`

### Conversation and signs

- [Live conversation](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/ConversationMode.jsx): `frontend/src/components/ConversationMode.jsx`
- [Speech services](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/services/speech.js): `frontend/src/services/speech.js`
- [ISL tokenizer](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/islDictionary.js): `frontend/src/utils/islDictionary.js`
- [Sign demonstrations](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/components/ClipPlayer.jsx): `frontend/src/components/ClipPlayer.jsx`
- [Sign photo assets](https://github.com/rohanpawar0006/signbridge-ai/blob/main/frontend/src/utils/signPhotos.js): `frontend/src/utils/signPhotos.js`

### Backend services

- [Gesture endpoint](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/routers/gesture_ws.py): `backend/app/routers/gesture_ws.py`
- [Gesture classifier](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/services/gesture_classifier.py): `backend/app/services/gesture_classifier.py`
- [Bi-LSTM model](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/models/lstm_model.py): `backend/app/models/lstm_model.py`
- [Clip catalog API](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/routers/clips.py): `backend/app/routers/clips.py`
- [Clip catalog service](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/services/clip_service.py): `backend/app/services/clip_service.py`
- [Vocabulary configuration](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/app/config.py): `backend/app/config.py`
- [API application](https://github.com/rohanpawar0006/signbridge-ai/blob/main/backend/main.py): `backend/main.py`

### Other components

- **ISL signer**
- **Speaker**
- **Camera**
- **Microphone**

## Connections

- ISL signer → Camera: signs to
- Camera → Hand tracking: provides frames (evidence: `frontend/src/services/mediapipe.js`)
- Hand tracking → Live conversation: reports landmarks (evidence: `frontend/src/components/ConversationMode.jsx`)
- Live conversation → Motion segmentation: segments motion (evidence: `frontend/src/components/ConversationMode.jsx`)
- Live conversation → Gesture WebSocket: sends gestures (evidence: `frontend/src/components/ConversationMode.jsx`)
- Gesture WebSocket → Gesture endpoint: sends sequences
- Gesture endpoint → Gesture classifier: dispatches gestures (evidence: `backend/app/routers/gesture_ws.py`)
- Gesture classifier → Bi-LSTM model: runs inference (evidence: `backend/app/services/gesture_classifier.py`)
- Gesture endpoint → Live conversation: returns predictions
- Microphone → Speech services: provides speech
- Live conversation → Speech services: uses speech services (evidence: `frontend/src/components/ConversationMode.jsx`)
- Live conversation → ISL tokenizer: tokenizes speech (evidence: `frontend/src/components/ConversationMode.jsx`)
- Live conversation → Sign demonstrations: plays sign tokens (evidence: `frontend/src/components/ConversationMode.jsx`)
- Sign demonstrations → Sign photo assets: loads sign photos (evidence: `frontend/src/components/ClipPlayer.jsx`)
- Speech services → Backend API client: requests TTS fallback (evidence: `frontend/src/services/speech.js`)
- ISL signer → Sign capture: records signs
- ISL signer → Practice studio: practices signs
- ISL signer → ISL dictionary: browses signs
- Mode selection → Live conversation: selects mode (evidence: `frontend/src/App.jsx`)
- Mode selection → Sign capture: selects mode (evidence: `frontend/src/App.jsx`)
- Mode selection → Practice studio: selects mode (evidence: `frontend/src/App.jsx`)
- Mode selection → ISL dictionary: selects mode (evidence: `frontend/src/App.jsx`)
- Mode selection → Backend API client: fetches health and vocabulary (evidence: `frontend/src/App.jsx`)
- Backend API client → API application: calls backend
- API application → Gesture endpoint: registers routes (evidence: `backend/main.py`)
- API application → Clip catalog API: registers routes (evidence: `backend/main.py`)
- Clip catalog API → Clip catalog service: queries catalog (evidence: `backend/app/routers/clips.py`)
- Clip catalog service → Vocabulary configuration: reads vocabulary and catalog (evidence: `backend/app/services/clip_service.py`)
- Gesture classifier → Vocabulary configuration: reads model parameters (evidence: `backend/app/services/gesture_classifier.py`)
