# emmanuel-05/transcribo architecture

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

- Interactive diagram: https://gitdiagram.com/emmanuel-05/transcribo
- Repository: https://github.com/emmanuel-05/transcribo

## Overview

Transcribo is a web platform for managing audio transcription projects and producing documents. Users authenticate, create projects, upload and manage audio, then request transcription; a worker can convert supported formats, obtain AI transcripts, and persist versions for review and export. The graph includes the documented frontend, API, persistence, storage, transcription, correction, and document-generation capabilities. Some implementation details are documented but unsampled, so those links are marked unverified rather than inferred as direct calls.

Main entry points: [`backend/app/api/v1/endpoints/audios.py`](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/audios.py) (Audio and transcript endpoints), [`backend/app/workers/transcription_worker.py`](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/workers/transcription_worker.py) (Transcription worker), [`frontend/src/views/DashboardView.tsx`](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/views/DashboardView.tsx) (Next.js pages and views), [`backend/app/core/database.py`](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/core/database.py) (PostgreSQL session layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_frontend["Next.js pages and views<br/>[DashboardView.tsx]"]
  node_client_services["API services<br/>[api.ts]"]
  node_auth_ui["Authentication UI<br/>[SessionManager.tsx]"]
  node_project_ui["Project management UI<br/>[ProjectGrid.tsx]"]
  node_audio_ui["Audio upload and playback<br/>[AudioList.tsx]"]
  node_transcript_ui["Transcript editing"]
  node_glossary_ui["Glossary editing<br/>[GlossaryPanel.tsx]"]
end

subgraph group_api["API and access"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_auth["Authentication endpoints<br/>[auth.py]"]
  node_database[("PostgreSQL session layer<br/>[database.py]")]
  node_user_model["User records<br/>[user.py]"]
end

subgraph group_domain["Project and media"]
  node_projects["Project endpoints<br/>[projects.py]"]
  node_audios["Audio and transcript endpoints<br/>[audios.py]"]
  node_project_model["Project records<br/>[project.py]"]
  node_audio_model["Audio records<br/>[audio_file.py]"]
  node_glossary_model["Project glossary<br/>[glossary.py]"]
  node_storage[("S3-compatible storage<br/>[s3.py]")]
end

subgraph group_processing["Transcription and output"]
  node_documents["Document export endpoint<br/>[documents.py]"]
  node_transcript_model["Transcript records<br/>[transcript.py]"]
  node_version_model["Transcript versions"]
  node_worker["Transcription worker"]
  node_converter["Audio conversion<br/>[audio_converter.py]"]
  node_convertio["Convertio service"]
  node_speech["Speech recognition"]
  node_correction["LLM correction<br/>[llm_correction.py]"]
  node_generator["Document generation"]
end

node_user(("User"))
node_deepgram_service{{"Deepgram API"}}
node_convertio_service{{"Convertio API"}}

node_user -->|"uses"| node_frontend
node_frontend -.->|"requests through"| node_client_services
node_frontend -.->|"manages session"| node_auth_ui
node_frontend -.->|"manages projects"| node_project_ui
node_frontend -.->|"manages audio"| node_audio_ui
node_frontend -.->|"edits transcript"| node_transcript_ui
node_frontend -.->|"edits glossary"| node_glossary_ui
node_client_services -.->|"calls API"| node_api_app
node_api_app -->|"routes to"| node_auth
node_api_app -->|"routes to"| node_projects
node_api_app -->|"routes to"| node_audios
node_api_app -->|"routes to"| node_documents
node_auth -->|"queries"| node_database
node_auth -->|"reads and writes"| node_user_model
node_projects -->|"queries"| node_database
node_projects -->|"reads and writes"| node_project_model
node_projects -->|"checks owner"| node_user_model
node_projects -->|"manages"| node_glossary_model
node_audios -->|"queries"| node_database
node_audios -->|"checks project"| node_project_model
node_audios -->|"reads and writes"| node_audio_model
node_audios -->|"stores and retrieves audio"| node_storage
node_audios -->|"dispatches transcription"| node_worker
node_audios -->|"reads and saves"| node_transcript_model
node_documents -->|"queries"| node_database
node_documents -->|"reads"| node_transcript_model
node_documents -->|"reads"| node_project_model
node_documents -->|"generates export"| node_generator
node_worker -->|"loads and saves"| node_database
node_worker -->|"updates status"| node_audio_model
node_worker -->|"reads terms"| node_glossary_model
node_worker -->|"converts formats"| node_converter
node_worker -->|"requests transcript"| node_speech
node_worker -->|"creates transcript"| node_transcript_model
node_worker -->|"creates first version"| node_version_model
node_converter -->|"converts audio"| node_convertio
node_converter -->|"reads and writes"| node_storage
node_speech -->|"reads audio"| node_storage
node_speech -->|"sends audio"| node_deepgram_service
node_convertio -->|"calls conversion API"| node_convertio_service
node_audios -->|"uses correction"| node_correction
node_audios -.->|"reads versions"| node_version_model
node_api_app -->|"initializes buckets"| node_storage
node_database -.->|"maps records"| node_project_model
node_database -.->|"maps records"| node_transcript_model

click node_frontend "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/views/DashboardView.tsx"
click node_client_services "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/services/api.ts"
click node_auth_ui "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/auth/SessionManager.tsx"
click node_project_ui "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/projects/ProjectGrid.tsx"
click node_audio_ui "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/audio/AudioList.tsx"
click node_transcript_ui "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/transcript/TranscriptionPanel.tsx"
click node_glossary_ui "https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/glossary/GlossaryPanel.tsx"
click node_api_app "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/main.py"
click node_auth "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/auth.py"
click node_projects "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/projects.py"
click node_audios "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/audios.py"
click node_documents "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/documents.py"
click node_database "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/core/database.py"
click node_user_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/user.py"
click node_project_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/project.py"
click node_audio_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/audio_file.py"
click node_transcript_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/transcript.py"
click node_version_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/transcript_version.py"
click node_glossary_model "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/glossary.py"
click node_storage "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/storage/s3.py"
click node_worker "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/workers/transcription_worker.py"
click node_converter "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/audio_converter.py"
click node_convertio "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/convertio_service.py"
click node_speech "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/ai_services/deepgram_service.py"
click node_correction "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/ai_services/llm_correction.py"
click node_generator "https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/document_generator.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_frontend,node_client_services,node_auth_ui,node_project_ui,node_audio_ui,node_transcript_ui,node_glossary_ui,node_user toneBlue
class node_api_app,node_auth,node_database,node_user_model toneAmber
class node_projects,node_audios,node_project_model,node_audio_model,node_glossary_model,node_storage,node_deepgram_service,node_convertio_service toneMint
class node_documents,node_transcript_model,node_version_model,node_worker,node_converter,node_convertio,node_speech,node_correction,node_generator toneRose
```

## Components

### Web client

- [Next.js pages and views](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/views/DashboardView.tsx): `frontend/src/views/DashboardView.tsx`
- [API services](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Authentication UI](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/auth/SessionManager.tsx): `frontend/src/components/features/auth/SessionManager.tsx`
- [Project management UI](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/projects/ProjectGrid.tsx): `frontend/src/components/features/projects/ProjectGrid.tsx`
- [Audio upload and playback](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/audio/AudioList.tsx): `frontend/src/components/features/audio/AudioList.tsx`
- [Transcript editing](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/transcript/TranscriptionPanel.tsx): `frontend/src/components/features/transcript/TranscriptionPanel.tsx`
- [Glossary editing](https://github.com/emmanuel-05/transcribo/blob/main/frontend/src/components/features/glossary/GlossaryPanel.tsx): `frontend/src/components/features/glossary/GlossaryPanel.tsx`

### API and access

- [FastAPI application](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication endpoints](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/auth.py): `backend/app/api/v1/endpoints/auth.py`
- [PostgreSQL session layer](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/core/database.py): `backend/app/core/database.py`
- [User records](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/user.py): `backend/app/infrastructure/db/models/user.py`

### Project and media

- [Project endpoints](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/projects.py): `backend/app/api/v1/endpoints/projects.py`
- [Audio and transcript endpoints](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/audios.py): `backend/app/api/v1/endpoints/audios.py`
- [Project records](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/project.py): `backend/app/infrastructure/db/models/project.py`
- [Audio records](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/audio_file.py): `backend/app/infrastructure/db/models/audio_file.py`
- [Project glossary](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/glossary.py): `backend/app/infrastructure/db/models/glossary.py`
- [S3-compatible storage](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/storage/s3.py): `backend/app/infrastructure/storage/s3.py`

### Transcription and output

- [Document export endpoint](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/api/v1/endpoints/documents.py): `backend/app/api/v1/endpoints/documents.py`
- [Transcript records](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/transcript.py): `backend/app/infrastructure/db/models/transcript.py`
- [Transcript versions](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/db/models/transcript_version.py): `backend/app/infrastructure/db/models/transcript_version.py`
- [Transcription worker](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/workers/transcription_worker.py): `backend/app/workers/transcription_worker.py`
- [Audio conversion](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/audio_converter.py): `backend/app/infrastructure/audio_converter.py`
- [Convertio service](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/convertio_service.py): `backend/app/infrastructure/convertio_service.py`
- [Speech recognition](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/ai_services/deepgram_service.py): `backend/app/infrastructure/ai_services/deepgram_service.py`
- [LLM correction](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/ai_services/llm_correction.py): `backend/app/infrastructure/ai_services/llm_correction.py`
- [Document generation](https://github.com/emmanuel-05/transcribo/blob/main/backend/app/infrastructure/document_generator.py): `backend/app/infrastructure/document_generator.py`

### Other components

- **User**
- **Deepgram API**
- **Convertio API**

## Connections

- User → Next.js pages and views: uses (evidence: `README.md`)
- Next.js pages and views → API services: requests through
- Next.js pages and views → Authentication UI: manages session
- Next.js pages and views → Project management UI: manages projects
- Next.js pages and views → Audio upload and playback: manages audio
- Next.js pages and views → Transcript editing: edits transcript
- Next.js pages and views → Glossary editing: edits glossary
- API services → FastAPI application: calls API
- FastAPI application → Authentication endpoints: routes to (evidence: `backend/app/main.py`)
- FastAPI application → Project endpoints: routes to (evidence: `backend/app/main.py`)
- FastAPI application → Audio and transcript endpoints: routes to (evidence: `backend/app/main.py`)
- FastAPI application → Document export endpoint: routes to (evidence: `backend/app/main.py`)
- Authentication endpoints → PostgreSQL session layer: queries (evidence: `backend/app/api/v1/endpoints/auth.py`)
- Authentication endpoints → User records: reads and writes (evidence: `backend/app/api/v1/endpoints/auth.py`)
- Project endpoints → PostgreSQL session layer: queries (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Project endpoints → Project records: reads and writes (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Project endpoints → User records: checks owner (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Project endpoints → Project glossary: manages (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Audio and transcript endpoints → PostgreSQL session layer: queries (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → Project records: checks project (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → Audio records: reads and writes (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → S3-compatible storage: stores and retrieves audio (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → Transcription worker: dispatches transcription (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → Transcript records: reads and saves (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Document export endpoint → PostgreSQL session layer: queries (evidence: `backend/app/api/v1/endpoints/documents.py`)
- Document export endpoint → Transcript records: reads (evidence: `backend/app/api/v1/endpoints/documents.py`)
- Document export endpoint → Project records: reads (evidence: `backend/app/api/v1/endpoints/documents.py`)
- Document export endpoint → Document generation: generates export (evidence: `backend/app/api/v1/endpoints/documents.py`)
- Transcription worker → PostgreSQL session layer: loads and saves (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Audio records: updates status (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Project glossary: reads terms (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Audio conversion: converts formats (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Speech recognition: requests transcript (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Transcript records: creates transcript (evidence: `backend/app/workers/transcription_worker.py`)
- Transcription worker → Transcript versions: creates first version (evidence: `backend/app/workers/transcription_worker.py`)
- Audio conversion → Convertio service: converts audio (evidence: `backend/app/infrastructure/audio_converter.py`)
- Audio conversion → S3-compatible storage: reads and writes (evidence: `backend/app/infrastructure/audio_converter.py`)
- Speech recognition → S3-compatible storage: reads audio (evidence: `backend/app/infrastructure/ai_services/deepgram_service.py`)
- Speech recognition → Deepgram API: sends audio (evidence: `backend/app/infrastructure/ai_services/deepgram_service.py`)
- Convertio service → Convertio API: calls conversion API (evidence: `backend/app/infrastructure/convertio_service.py`)
- Audio and transcript endpoints → LLM correction: uses correction (evidence: `backend/app/api/v1/endpoints/audios.py`)
- Audio and transcript endpoints → Transcript versions: reads versions (evidence: `backend/app/api/v1/endpoints/audios.py`)
- FastAPI application → S3-compatible storage: initializes buckets (evidence: `backend/app/main.py`)
- PostgreSQL session layer → Project records: maps records
- PostgreSQL session layer → Transcript records: maps records (evidence: `backend/app/infrastructure/db/models/transcript.py`)
