# vaishnavi-newalkar/voxify-meeting-lecture-summarizer architecture

> Architecture diagram of the GitHub repository vaishnavi-newalkar/voxify-meeting-lecture-summarizer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer
- Repository: https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer

## Overview

#### Purpose and runnable entry points
Voxify is a stateless meeting/lecture analysis application: browser audio or pasted transcript becomes transcription, structured notes, action items, optional speaker labels, and downloadable reports. The verified backend entry point is FastAPI application `api.py`, run as `uvicorn api:app`; the browser entry is React mounted by `frontend/src/main.jsx`. The production SPA is served/proxied by nginx via `nginx.conf`.

#### Browser workspace and API boundary
The root UI coordinates file upload, MediaRecorder-based microphone capture, pasted transcripts, settings, and result state in `frontend/src/App.jsx`. It calls the backend through fetch wrappers in `frontend/src/api.js`; API base URL is Vite-injected. Results render Markdown and expose exports in `frontend/src/components/ResultsPanel.jsx`; model, engine, credential, and feature options are set in `frontend/src/components/SettingsDrawer.jsx`. Audio stays browser-local until explicit submission.

#### FastAPI orchestration layer
`api.py` is the committed synchronous REST boundary. It validates requests/file size, accepts transcription or direct transcript workflows, invokes utility services, and streams export responses. It is intentionally stateless: no committed identity, persistence, queue, or local inference layer exists. CORS and API credentials are runtime/environment concerns.

#### Speech-to-text stage
`utils/transcriber.py` encapsulates external STT providers. Groq Whisper is the primary engine and returns timestamps/language/segments; HuggingFace is an alternate provider with reduced metadata. WAV input is normalized for transcription, while uploaded media is constrained to supported audio/video formats and the 25 MB limit. External service calls, not local models, define this boundary.

#### LLM analysis stage
`utils/summarizer.py` performs independent Groq Chat completions over a transcript, truncated for context safety. The first pass generates Markdown summaries at selected brief/standard/detailed depth; the second requests JSON-only action items and falls back safely to an empty list when parsing cannot recover. Optional speaker labels use the same LLM for conversational heuristics, not acoustic diarization. Groq-hosted LLaMA models are the principal inference dependency.

#### Report generation
`utils/exporter.py` converts the analysis bundle—summary, action items, and transcript—into downloadable TXT or server-generated PDF reports. PDF creation uses fpdf2 and encoding-safe output handling. This remains behind the backend rather than generating client-side files, ensuring a single report format contract.

#### Deployment and repository-state constraints
The intended runtime is Python 3.11/FastAPI/Uvicorn plus React 19/Vite; containers are described by `backend.Dockerfile`, `frontend.Dockerfile`, `docker-compose.yml`, and `render.yaml`. The frontend container/nginx route is viable, but committed backend Docker/Compose/Render commands target missing `app/` modules rather than `api.py`; fresh-clone container deployment therefore fails without correction. Compose also declares Redis and a worker, but their corresponding committed backend implementation is absent. PostgreSQL, OAuth/JWT, ARQ, persistence, and RAG chat are roadmap references—not current architecture.

#### Quality and evaluation boundary
Offline quality measurement is separate from request serving: `eval/evaluate_model.py` runs evaluation data through the summarization path and applies RAGAS faithfulness scoring. CI/CD definitions live in `.github/workflows/ci.yml` and `.github/workflows/deploy.yml`, but their container/deployment path inherits the missing-`app/` limitation.

Main entry points: [`api.py`](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/api.py) (FastAPI REST boundary), [`frontend/src/App.jsx`](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/App.jsx) (Meeting workspace), [`frontend/src/api.js`](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/api.js) (API client), [`utils/transcriber.py`](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/transcriber.py) (Transcription service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser SPA"]
  node_react_entry["React entry<br/>Vite / React<br/>[main.jsx]"]
  node_workspace["Meeting workspace<br/>React coordinator<br/>[App.jsx]"]
  node_api_client["API client<br/>fetch wrappers<br/>[api.js]"]
  node_settings["Settings drawer<br/>React component<br/>[SettingsDrawer.jsx]"]
  node_results["Results and exports<br/>React component<br/>[ResultsPanel.jsx]"]
end

subgraph group_backend["Stateless API"]
  node_fastapi{{"FastAPI REST boundary<br/>FastAPI / Uvicorn<br/>[api.py]"}}
  node_transcriber["Transcription service<br/>STT adapter<br/>[transcriber.py]"]
  node_summarizer["Analysis service<br/>LLM pipeline<br/>[summarizer.py]"]
  node_exporter["Report generator<br/>TXT / PDF export<br/>[exporter.py]"]
end

subgraph group_providers["External AI"]
  node_groq_stt(("Groq Whisper<br/>external STT"))
  node_huggingface_stt(("HuggingFace STT<br/>external STT"))
  node_groq_llm(("Groq LLaMA Chat<br/>external LLM"))
end

subgraph group_ops["Delivery &amp; Quality"]
  node_nginx{{"SPA proxy<br/>nginx<br/>[nginx.conf]"}}
  node_evaluation["Offline evaluation<br/>RAGAS scoring<br/>[evaluate_model.py]"]
  node_ci["CI pipeline<br/>GitHub Actions<br/>[ci.yml]"]
  node_deployment["Deployment manifests<br/>container deployment<br/>[docker-compose.yml]"]
end

node_react_entry -->|"mounts"| node_workspace
node_workspace -->|"submits audio or transcript"| node_api_client
node_workspace -->|"configures"| node_settings
node_workspace -->|"displays analysis"| node_results
node_api_client -->|"production requests"| node_nginx
node_nginx -->|"proxies API"| node_fastapi
node_api_client -->|"REST requests"| node_fastapi
node_fastapi -->|"audio workflow"| node_transcriber
node_fastapi -->|"transcript workflow"| node_summarizer
node_fastapi -->|"export workflow"| node_exporter
node_transcriber -->|"primary STT"| node_groq_stt
node_transcriber -.->|"alternate STT"| node_huggingface_stt
node_summarizer -->|"two-pass analysis"| node_groq_llm
node_evaluation -->|"evaluates summarization path"| node_summarizer
node_ci -->|"builds and deploys"| node_deployment
node_deployment -.->|"broken app/ target"| node_fastapi

click node_react_entry "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/main.jsx"
click node_workspace "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/App.jsx"
click node_api_client "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/api.js"
click node_settings "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/components/SettingsDrawer.jsx"
click node_results "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/components/ResultsPanel.jsx"
click node_fastapi "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/api.py"
click node_transcriber "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/transcriber.py"
click node_summarizer "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/summarizer.py"
click node_exporter "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/exporter.py"
click node_nginx "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/nginx.conf"
click node_evaluation "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/eval/evaluate_model.py"
click node_ci "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/.github/workflows/ci.yml"
click node_deployment "https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/docker-compose.yml"

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_react_entry,node_workspace,node_api_client,node_settings,node_results toneBlue
class node_fastapi,node_transcriber,node_summarizer,node_exporter toneAmber
class node_groq_stt,node_huggingface_stt,node_groq_llm toneMint
class node_nginx,node_evaluation,node_ci,node_deployment toneRose
```

## Components

### Browser SPA

- [React entry](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/main.jsx): Vite / React · `frontend/src/main.jsx`
- [Meeting workspace](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/App.jsx): React coordinator · Captures audio, accepts transcripts, and owns result state. · `frontend/src/App.jsx`
- [API client](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/api.js): fetch wrappers · Uses the Vite-injected API base URL. · `frontend/src/api.js`
- [Settings drawer](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/components/SettingsDrawer.jsx): React component · Selects engines, models, credentials, and features. · `frontend/src/components/SettingsDrawer.jsx`
- [Results and exports](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/frontend/src/components/ResultsPanel.jsx): React component · Renders Markdown and exposes downloads. · `frontend/src/components/ResultsPanel.jsx`

### Stateless API

- [FastAPI REST boundary](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/api.py): FastAPI / Uvicorn · Synchronous, stateless request orchestration in api:app. · `api.py`
- [Transcription service](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/transcriber.py): STT adapter · Normalizes WAV and enforces supported media and 25 MB limits. · `utils/transcriber.py`
- [Analysis service](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/summarizer.py): LLM pipeline · Creates summary, action items, and optional speaker labels. · `utils/summarizer.py`
- [Report generator](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/utils/exporter.py): TXT / PDF export · Generates server-side TXT or fpdf2 PDF reports. · `utils/exporter.py`

### External AI

- **Groq Whisper**: external STT · Primary transcription provider with segments and timestamps.
- **HuggingFace STT**: external STT · Alternate provider with reduced metadata.
- **Groq LLaMA Chat**: external LLM · Provides summary, action-item, and speaker-label inference.

### Delivery & Quality

- [SPA proxy](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/nginx.conf): nginx · Serves the production frontend and proxies API traffic. · `nginx.conf`
- [Offline evaluation](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/eval/evaluate_model.py): RAGAS scoring · Runs summaries against evaluation data for faithfulness scoring. · `eval/evaluate_model.py`
- [CI pipeline](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/.github/workflows/ci.yml): GitHub Actions · Container and deployment paths inherit the missing app/ backend target. · `.github/workflows/ci.yml`
- [Deployment manifests](https://github.com/vaishnavi-newalkar/voxify-meeting-lecture-summarizer/blob/main/docker-compose.yml): container deployment · Backend Docker, Compose, and Render commands incorrectly target absent app/ modules. · `docker-compose.yml`

## Connections

- React entry → Meeting workspace: mounts
- Meeting workspace → API client: submits audio or transcript
- Meeting workspace → Settings drawer: configures
- Meeting workspace → Results and exports: displays analysis
- API client → SPA proxy: production requests
- SPA proxy → FastAPI REST boundary: proxies API
- API client → FastAPI REST boundary: REST requests
- FastAPI REST boundary → Transcription service: audio workflow
- FastAPI REST boundary → Analysis service: transcript workflow
- FastAPI REST boundary → Report generator: export workflow
- Transcription service → Groq Whisper: primary STT
- Transcription service → HuggingFace STT: alternate STT
- Analysis service → Groq LLaMA Chat: two-pass analysis
- Offline evaluation → Analysis service: evaluates summarization path
- CI pipeline → Deployment manifests: builds and deploys
- Deployment manifests → FastAPI REST boundary: broken app/ target · Declared container commands do not invoke api.py.
