# antoniovini47/live-code-interviewer architecture

> Architecture diagram of the GitHub repository antoniovini47/live-code-interviewer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/antoniovini47/live-code-interviewer
- Repository: https://github.com/antoniovini47/live-code-interviewer

## Overview

Live Code Interviewer supports a room-based collaborative interview, code execution and saving, then a separate room-linked report with recordings, code, transcription and AI analysis. The main path is participant entry → live editor/video → saved code and report retrieval; report services supply transcript and analysis sections. README capabilities clarify the intended SuperViz, Firestore and AI integrations, but most service implementations were not excerpted, so those internal relationships are shown only where the excerpts establish them.

Main entry points: [`src/interviewReport/InterviewReportComponent.tsx`](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/interviewReport/InterviewReportComponent.tsx) (Report view), [`src/App.tsx`](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/App.tsx) (Room app), [`src/components/CodeEditor.tsx`](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/CodeEditor.tsx) (Collaborative editor), [`src/components/UserInput.tsx`](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/UserInput.tsx) (Room setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Room entry"]
  node_app["Room app<br/>[App.tsx]"]
  node_user_input["Room setup<br/>[UserInput.tsx]"]
end

subgraph group_interview["Live interview"]
  node_editor["Collaborative editor<br/>[CodeEditor.tsx]"]
  node_video["Video room<br/>[VideoRoom.tsx]"]
  node_superviz{{"SuperViz"}}
  node_firestore[("Firestore")]
end

subgraph group_execution["Code execution"]
  node_language["Language selector"]
  node_output["Execution output<br/>[Output.tsx]"]
  node_piston_client["Piston client<br/>[api.ts]"]
  node_piston{{"Piston API"}}
end

subgraph group_report["Interview reporting"]
  node_report_page["Report view"]
  node_recordings["Recording retrieval<br/>[getRecording.ts]"]
  node_transcript_request["Transcript request"]
  node_transcript["Transcript retrieval<br/>[getTranscript.ts]"]
  node_summary["Summary retrieval"]
  node_questions["Question analysis"]
  node_actions["Action items"]
  node_followups["Follow-ups"]
  node_topics["Topic analysis<br/>[reportGetTopics.ts]"]
  node_collapsible["Report sections"]
  node_action_item_view["Action item view"]
end

node_participant(("Participant"))
node_browser(("Browser"))

node_participant -->|"enters details"| node_user_input
node_app -->|"renders"| node_user_input
node_user_input -->|"sets room identity"| node_app
node_app -->|"renders in room"| node_editor
node_app -->|"renders in room"| node_video
node_app -->|"configures room"| node_superviz
node_editor -->|"renders"| node_language
node_editor -->|"renders"| node_output
node_editor -->|"binds collaboration"| node_superviz
node_editor -->|"saves code"| node_firestore
node_output -->|"submits code"| node_piston_client
node_piston_client -->|"executes code"| node_piston
node_participant -.->|"opens report"| node_browser
node_browser -.->|"loads report"| node_report_page
node_report_page -->|"requests recordings"| node_recordings
node_report_page -->|"reads saved code"| node_firestore
node_report_page -->|"requests transcript"| node_transcript
node_report_page -->|"requests generation"| node_transcript_request
node_report_page -->|"requests summary"| node_summary
node_report_page -->|"requests questions"| node_questions
node_report_page -->|"requests action items"| node_actions
node_report_page -->|"requests follow-ups"| node_followups
node_report_page -->|"requests topics"| node_topics
node_report_page -->|"renders sections"| node_collapsible
node_report_page -.->|"renders items"| node_action_item_view

click node_app "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/App.tsx"
click node_user_input "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/UserInput.tsx"
click node_editor "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/CodeEditor.tsx"
click node_video "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/VideoRoom.tsx"
click node_language "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/LanguageSelector.tsx"
click node_output "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/Output.tsx"
click node_piston_client "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/api.ts"
click node_report_page "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/interviewReport/InterviewReportComponent.tsx"
click node_recordings "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/getRecording.ts"
click node_transcript_request "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/requestGenerateTranscript.ts"
click node_transcript "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/getTranscript.ts"
click node_summary "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetSummary.ts"
click node_questions "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetQuestions.ts"
click node_actions "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetActionItens.ts"
click node_followups "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetFollowUps.ts"
click node_topics "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetTopics.ts"
click node_collapsible "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/CollapsibleText.tsx"
click node_action_item_view "https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/ReportActionItemComponent.tsx"

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_user_input,node_browser toneBlue
class node_editor,node_video,node_superviz,node_firestore toneAmber
class node_language,node_output,node_piston_client,node_piston toneMint
class node_report_page,node_recordings,node_transcript_request,node_transcript,node_summary,node_questions,node_actions,node_followups,node_topics,node_collapsible,node_action_item_view toneRose
class node_participant toneIndigo
```

## Components

### Room entry

- [Room app](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/App.tsx): `src/App.tsx`
- [Room setup](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/UserInput.tsx): `src/components/UserInput.tsx`

### Live interview

- [Collaborative editor](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/CodeEditor.tsx): `src/components/CodeEditor.tsx`
- [Video room](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/VideoRoom.tsx): `src/components/VideoRoom.tsx`
- **SuperViz**
- **Firestore**

### Code execution

- [Language selector](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/LanguageSelector.tsx): `src/components/LanguageSelector.tsx`
- [Execution output](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/Output.tsx): `src/components/Output.tsx`
- [Piston client](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/api.ts): `src/api.ts`
- **Piston API**

### Interview reporting

- [Report view](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/interviewReport/InterviewReportComponent.tsx): `src/interviewReport/InterviewReportComponent.tsx`
- [Recording retrieval](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/getRecording.ts): `src/services/getRecording.ts`
- [Transcript request](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/requestGenerateTranscript.ts): `src/services/requestGenerateTranscript.ts`
- [Transcript retrieval](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/getTranscript.ts): `src/services/getTranscript.ts`
- [Summary retrieval](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetSummary.ts): `src/services/reportGetSummary.ts`
- [Question analysis](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetQuestions.ts): `src/services/reportGetQuestions.ts`
- [Action items](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetActionItens.ts): `src/services/reportGetActionItens.ts`
- [Follow-ups](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetFollowUps.ts): `src/services/reportGetFollowUps.ts`
- [Topic analysis](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/services/reportGetTopics.ts): `src/services/reportGetTopics.ts`
- [Report sections](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/CollapsibleText.tsx): `src/components/CollapsibleText.tsx`
- [Action item view](https://github.com/antoniovini47/live-code-interviewer/blob/main/src/components/ReportActionItemComponent.tsx): `src/components/ReportActionItemComponent.tsx`

### Other components

- **Participant**
- **Browser**

## Connections

- Participant → Room setup: enters details (evidence: `src/components/UserInput.tsx`)
- Room app → Room setup: renders (evidence: `src/App.tsx`)
- Room setup → Room app: sets room identity (evidence: `src/App.tsx`)
- Room app → Collaborative editor: renders in room (evidence: `src/App.tsx`)
- Room app → Video room: renders in room (evidence: `src/App.tsx`)
- Room app → SuperViz: configures room (evidence: `src/App.tsx`)
- Collaborative editor → Language selector: renders (evidence: `src/components/CodeEditor.tsx`)
- Collaborative editor → Execution output: renders (evidence: `src/components/CodeEditor.tsx`)
- Collaborative editor → SuperViz: binds collaboration (evidence: `src/components/CodeEditor.tsx`)
- Collaborative editor → Firestore: saves code (evidence: `src/components/CodeEditor.tsx`)
- Execution output → Piston client: submits code (evidence: `src/components/Output.tsx`)
- Piston client → Piston API: executes code (evidence: `src/api.ts`)
- Participant → Browser: opens report
- Browser → Report view: loads report
- Report view → Recording retrieval: requests recordings (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Firestore: reads saved code (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Transcript retrieval: requests transcript (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Transcript request: requests generation (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Summary retrieval: requests summary (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Question analysis: requests questions (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Action items: requests action items (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Follow-ups: requests follow-ups (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Topic analysis: requests topics (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Report sections: renders sections (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
- Report view → Action item view: renders items (evidence: `src/interviewReport/InterviewReportComponent.tsx`)
