# biswarup-naha/syra-ai architecture

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

- Interactive diagram: https://gitdiagram.com/biswarup-naha/syra-ai
- Repository: https://github.com/biswarup-naha/syra-ai

## Overview

Syra AI is presented as an interview and talent platform, but the checked-in runtime is a small React form plus an Express pre-interview endpoint. The visible workflow submits GitHub and LinkedIn URLs, then attempts profile enrichment; GitHub requests repository data, while LinkedIn scraping is currently empty. The README also describes talent and recruiter portals, live interviewing, and an AI media pipeline, which are represented as documented capabilities rather than verified implementations. Source excerpts do not show persistence, proxy management, or AI-service integrations.

Main entry points: [`apps/frontend/src`](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src) (Live interview client), [`apps/frontend/src/components/Form.tsx`](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Form.tsx) (Profile form), [`apps/backend/src/utils/scrappers.ts`](https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/utils/scrappers.ts) (Profile scrapers), [`apps/frontend/src/App.tsx`](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/App.tsx) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web client"]
  node_app["App shell<br/>[App.tsx]"]
  node_form["Profile form<br/>[Form.tsx]"]
  node_interview["Interview view<br/>[Interview.tsx]"]
  node_result["Result view<br/>[Result.tsx]"]
  node_button["Button control<br/>[button.tsx]"]
  node_input["Input control<br/>[input.tsx]"]
end

subgraph group_backend["Backend enrichment"]
  node_api["Pre-interview API<br/>[app.ts]"]
  node_scrapers["Profile scrapers<br/>[scrappers.ts]"]
  node_username["Username parser<br/>[userNameParser.ts]"]
end

subgraph group_documented["Documented platform"]
  node_talent["Talent portal"]
  node_recruiter_dashboard["Recruiter dashboard"]
  node_media["Live interview client"]
  node_proxy["Proxy enrichment"]
  node_storage[("Candidate data store")]
end

subgraph group_ai["Documented AI pipeline"]
  node_resume["Resume parsing"]
  node_webrtc["WebRTC media"]
  node_speech["Speech transcription"]
  node_slm["Language model"]
  node_tts["Speech synthesis"]
  node_avatar["Video avatar"]
end

node_candidate(("Candidate"))
node_recruiter(("Recruiter"))
node_github["GitHub API"]

node_candidate -->|"submits profiles"| node_form
node_app -->|"renders"| node_form
node_app -->|"renders"| node_interview
node_app -->|"renders"| node_result
node_form -->|"uses"| node_button
node_form -->|"uses"| node_input
node_form -->|"posts profiles"| node_api
node_api -->|"calls"| node_scrapers
node_scrapers -->|"parses username"| node_username
node_scrapers -->|"fetches repositories"| node_github
node_recruiter -.->|"reviews evaluations"| node_recruiter_dashboard
node_candidate -.->|"interviews"| node_media
node_media -.->|"streams media"| node_webrtc
node_media -.->|"parses resume"| node_resume
node_media -.->|"transcribes speech"| node_speech
node_media -.->|"requests responses"| node_slm
node_slm -.->|"generates audio"| node_tts
node_tts -.->|"syncs speech"| node_avatar
node_scrapers -.->|"routes requests"| node_proxy
node_api -.->|"stores profiles"| node_storage
node_recruiter -.->|"discovers roles"| node_talent

click node_app "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/App.tsx"
click node_form "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Form.tsx"
click node_interview "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Interview.tsx"
click node_result "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Result.tsx"
click node_button "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/ui/button.tsx"
click node_input "https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/ui/input.tsx"
click node_api "https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/app.ts"
click node_scrapers "https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/utils/scrappers.ts"
click node_username "https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/utils/userNameParser.ts"
click node_talent "https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src"
click node_recruiter_dashboard "https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src"
click node_media "https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src"
click node_resume "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"
click node_webrtc "https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src"
click node_speech "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"
click node_slm "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"
click node_tts "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"
click node_avatar "https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src"
click node_proxy "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"
click node_storage "https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src"

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_form,node_interview,node_result,node_button,node_input toneBlue
class node_api,node_scrapers,node_username toneAmber
class node_talent,node_recruiter_dashboard,node_media,node_proxy,node_storage,node_github toneMint
class node_resume,node_webrtc,node_speech,node_slm,node_tts,node_avatar toneRose
class node_candidate,node_recruiter toneIndigo
```

## Components

### Web client

- [App shell](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/App.tsx): `apps/frontend/src/App.tsx`
- [Profile form](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Form.tsx): `apps/frontend/src/components/Form.tsx`
- [Interview view](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Interview.tsx): `apps/frontend/src/components/Interview.tsx`
- [Result view](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/Result.tsx): `apps/frontend/src/components/Result.tsx`
- [Button control](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/ui/button.tsx): `apps/frontend/src/components/ui/button.tsx`
- [Input control](https://github.com/biswarup-naha/syra-ai/blob/main/apps/frontend/src/components/ui/input.tsx): `apps/frontend/src/components/ui/input.tsx`

### Backend enrichment

- [Pre-interview API](https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/app.ts): `apps/backend/src/app.ts`
- [Profile scrapers](https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/utils/scrappers.ts): `apps/backend/src/utils/scrappers.ts`
- [Username parser](https://github.com/biswarup-naha/syra-ai/blob/main/apps/backend/src/utils/userNameParser.ts): `apps/backend/src/utils/userNameParser.ts`

### Documented platform

- [Talent portal](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src): `apps/frontend/src`
- [Recruiter dashboard](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src): `apps/frontend/src`
- [Live interview client](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src): `apps/frontend/src`
- [Proxy enrichment](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`
- [Candidate data store](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`

### Documented AI pipeline

- [Resume parsing](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`
- [WebRTC media](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src): `apps/frontend/src`
- [Speech transcription](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`
- [Language model](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`
- [Speech synthesis](https://github.com/biswarup-naha/syra-ai/tree/main/apps/backend/src): `apps/backend/src`
- [Video avatar](https://github.com/biswarup-naha/syra-ai/tree/main/apps/frontend/src): `apps/frontend/src`

### Other components

- **Candidate**
- **Recruiter**
- **GitHub API**

## Connections

- Candidate → Profile form: submits profiles (evidence: `README.md`)
- App shell → Profile form: renders (evidence: `apps/frontend/src/App.tsx`)
- App shell → Interview view: renders (evidence: `apps/frontend/src/App.tsx`)
- App shell → Result view: renders (evidence: `apps/frontend/src/App.tsx`)
- Profile form → Button control: uses (evidence: `apps/frontend/src/components/Form.tsx`)
- Profile form → Input control: uses (evidence: `apps/frontend/src/components/Form.tsx`)
- Profile form → Pre-interview API: posts profiles (evidence: `apps/frontend/src/components/Form.tsx`)
- Pre-interview API → Profile scrapers: calls (evidence: `apps/backend/src/app.ts`)
- Profile scrapers → Username parser: parses username (evidence: `apps/backend/src/utils/scrappers.ts`)
- Profile scrapers → GitHub API: fetches repositories (evidence: `apps/backend/src/utils/scrappers.ts`)
- Recruiter → Recruiter dashboard: reviews evaluations (evidence: `README.md`)
- Candidate → Live interview client: interviews (evidence: `README.md`)
- Live interview client → WebRTC media: streams media (evidence: `README.md`)
- Live interview client → Resume parsing: parses resume (evidence: `README.md`)
- Live interview client → Speech transcription: transcribes speech (evidence: `README.md`)
- Live interview client → Language model: requests responses (evidence: `README.md`)
- Language model → Speech synthesis: generates audio (evidence: `README.md`)
- Speech synthesis → Video avatar: syncs speech (evidence: `README.md`)
- Profile scrapers → Proxy enrichment: routes requests (evidence: `README.md`)
- Pre-interview API → Candidate data store: stores profiles (evidence: `apps/backend/src/app.ts`)
- Recruiter → Talent portal: discovers roles (evidence: `README.md`)
