# ommagdum/academic-meeting-minutes architecture

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

- Interactive diagram: https://gitdiagram.com/ommagdum/academic-meeting-minutes
- Repository: https://github.com/ommagdum/academic-meeting-minutes

## Overview

1. **Overall shape**
   - This repository is a three-part system: a React/Vite frontend, a Spring Boot backend, and a Python/Flask AI service.
   - The backend is the central orchestrator: it owns authentication, meeting workflow, persistence, notifications, search, and it calls the AI service for transcription/extraction.

2. **Frontend boundary**
   - The `frontend` is a single-page application built with React 18, TypeScript, and Vite.
   - It is organized by feature area rather than by technical layer: pages, reusable components, domain-specific components for meetings/tasks, and a small service layer for API calls.
   - State and session handling are split across `AuthContext`, `ThemeContext`, custom hooks, and a set of service wrappers (`authService`, `meetingService`, `searchService`, `taskService`, `userService`).

3. **Frontend data flow**
   - User-facing flows start in pages like login/auth, dashboard, create meeting, meeting detail, search, series management, and task management.
   - These pages call the backend via REST; some screens also consume real-time updates for processing progress.
   - The multi-step meeting form and meeting detail views are the main UI surfaces for the AI-assisted workflow.

4. **Backend core responsibility**
   - The `backend` is a Spring Boot 3.5 application in Java 21 and is the system’s domain engine.
   - Controllers are split by business area: auth, meetings, meeting series, agendas, action items, search, profiles, dashboard, and meeting join flows.
   - Services contain the business logic and orchestration; repositories handle persistence; DTOs define API contracts; entities map to relational data models.

5. **Persistence boundary**
   - The backend uses a dual-database design.
   - PostgreSQL holds the transactional core: users, meetings, meeting series, attendees, agenda items, action items, tokens, and related state.
   - MongoDB stores large document-oriented payloads such as transcripts, AI extractions, and generated documents.
   - There is also a database trigger SQL file for search-vector support, which indicates search optimization is partly pushed into the database layer.

6. **AI processing subsystem**
   - The `ai-service` is a Flask/Python 3.12 service dedicated to audio ingestion and NLP processing.
   - It is split into smaller services for upload handling, transcription, extraction, and fallback behavior.
   - The AI service integrates with external AI providers: Whisper for speech-to-text and Mistral for structured extraction/summarization.
   - If the LLM path fails, a fallback rules-based extraction path is available, which makes the processing pipeline more resilient.

7. **Meeting processing flow**
   - The likely end-to-end flow is: the frontend uploads meeting audio and metadata to the backend, the backend forwards the file/processing request to the AI service, and the AI service returns transcript and extracted meeting data.
   - The backend then persists structured entities in PostgreSQL and document payloads in MongoDB.
   - Processing status is surfaced back to the frontend, and the UI is designed to show progress while the transcription/extraction pipeline runs.

8. **Real-time and asynchronous behavior**
   - The backend contains WebSocket configuration and websocket message DTOs, so processing progress and status updates are pushed to clients rather than polled only.
   - Async configuration and a dedicated processing service imply that long-running AI workflows run off the request thread.
   - A reminder scheduler is also present, showing that the backend does background work beyond user-triggered requests.

9. **Security and access control**
   - Security is layered around Spring Security, JWT filtering, OAuth2 login support, and custom user details handling.
   - The backend has explicit access services and join/validation flows for meeting access, which suggests meetings can be invited, joined by token, or protected by role-based rules.
   - Email verification, password reset, and token validation are part of the auth boundary.

10. **Notifications and document generation**
   - The backend sends automated emails using Thymeleaf templates for verification, meeting invitations, reminders, task assignments, and completion notifications.
   - It also generates meeting-related documents from templates, including the meeting minutes artifact stored as a generated document.
   - This makes the backend the source of both persisted data and user-facing artifacts.

11. **Search and analytics**
   - Search is a first-class subsystem in the backend, with a dedicated controller and service plus repository support for custom meeting queries.
   - The architecture supports searching across historical meetings and transcripts, likely combining relational query data with document text/search vectors.
   - Dashboard and analytics services aggregate meeting activity and task status for summary views in the frontend.

12. **External and deployment boundaries**
   - The repo is containerized with Docker and Docker Compose, and each main service has its own Dockerfile.
   - The frontend is also configured for standalone deployment, with Vercel config present.
   - Operationally, the architecture depends on external AI APIs, mail delivery infrastructure, and the two databases; those are the main non-repo dependencies that shape runtime behavior.

Main entry points: [`backend/src/main/java/com/meetingminutes/backend/controller/MeetingController.java`](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/controller/MeetingController.java) (Controllers), [`backend/src/main/java/com/meetingminutes/backend/service/MeetingService.java`](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingService.java) (Meeting core), [`backend/src/main/java/com/meetingminutes/backend/service/MeetingProcessingService.java`](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingProcessingService.java) (Processing), [`frontend/src/components/MultiStepMeetingForm.tsx`](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/components/MultiStepMeetingForm.tsx) (Meeting UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_app["App shell<br/>React SPA<br/>[App.tsx]"]
  node_frontend_pages["Pages<br/>screens<br/>[Dashboard.tsx]"]
  node_frontend_meeting_ui["Meeting UI<br/>feature components"]
  node_frontend_state(("State & session<br/>contexts/hooks<br/>[AuthContext.tsx]"))
  node_frontend_api["API services<br/>REST clients<br/>[api.ts]"]
end

subgraph group_backend["Backend"]
  node_backend_app["Backend app<br/>Spring Boot"]
  node_backend_api["Controllers<br/>HTTP boundary"]
  node_backend_security["Security<br/>auth boundary"]
  node_backend_meetings["Meeting core<br/>domain services"]
  node_backend_processing["Processing<br/>async orchestration"]
  node_backend_ai_client["AI client<br/>external integration"]
  node_backend_persistence[("Persistence<br/>repos & models")]
  node_backend_search["Search & analytics<br/>query services"]
  node_backend_notifications["Notifications<br/>email & docs<br/>[EmailService.java]"]
  node_backend_realtime(("Realtime<br/>websocket & schedulers"))
end

subgraph group_ai["AI Service"]
  node_ai_app["Flask app<br/>Python service<br/>[app.py]"]
  node_ai_ingest["Upload flow<br/>file ingestion"]
  node_ai_transcribe["Transcription<br/>speech-to-text"]
  node_ai_extract["Extraction<br/>nlp pipeline"]
end

node_frontend_app -->|"routes to"| node_frontend_pages
node_frontend_app -->|"composes"| node_frontend_meeting_ui
node_frontend_pages -->|"calls"| node_frontend_api
node_frontend_meeting_ui -->|"uses"| node_frontend_state
node_frontend_meeting_ui -->|"submits"| node_frontend_api
node_frontend_state -->|"auth headers"| node_frontend_api
node_frontend_api -->|"REST"| node_backend_api
node_backend_app -->|"exposes"| node_backend_api
node_backend_api -->|"guarded by"| node_backend_security
node_backend_api -->|"delegates"| node_backend_meetings
node_backend_api -->|"delegates"| node_backend_search
node_backend_meetings -->|"reads/writes"| node_backend_persistence
node_backend_meetings -->|"triggers"| node_backend_notifications
node_backend_meetings -->|"starts"| node_backend_processing
node_backend_processing -->|"calls"| node_backend_ai_client
node_backend_processing -->|"publishes"| node_backend_realtime
node_backend_processing -->|"stores"| node_backend_persistence
node_backend_search -->|"queries"| node_backend_persistence
node_backend_realtime -->|"updates"| node_frontend_meeting_ui
node_backend_notifications -->|"references"| node_backend_persistence
node_backend_ai_client -->|"HTTP"| node_ai_app
node_ai_app -->|"routes to"| node_ai_ingest
node_ai_ingest -->|"passes to"| node_ai_transcribe
node_ai_transcribe -->|"passes to"| node_ai_extract

click node_frontend_app "https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/App.tsx"
click node_frontend_pages "https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/pages/Dashboard.tsx"
click node_frontend_meeting_ui "https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/components/MultiStepMeetingForm.tsx"
click node_frontend_state "https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/contexts/AuthContext.tsx"
click node_frontend_api "https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/services/api.ts"
click node_backend_app "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/BackendApplication.java"
click node_backend_api "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/controller/MeetingController.java"
click node_backend_security "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/config/SecurityConfig.java"
click node_backend_meetings "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingService.java"
click node_backend_processing "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingProcessingService.java"
click node_backend_ai_client "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/AIServiceClient.java"
click node_backend_persistence "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/repository/MeetingRepository.java"
click node_backend_search "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingSearchService.java"
click node_backend_notifications "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/EmailService.java"
click node_backend_realtime "https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/config/WebSocketConfig.java"
click node_ai_app "https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/app.py"
click node_ai_ingest "https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/file_uplod_service.py"
click node_ai_transcribe "https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/transcription_service.py"
click node_ai_extract "https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/extraction_service.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_app,node_frontend_pages,node_frontend_meeting_ui,node_frontend_state,node_frontend_api toneBlue
class node_backend_app,node_backend_api,node_backend_security,node_backend_meetings,node_backend_processing,node_backend_ai_client,node_backend_persistence,node_backend_search,node_backend_notifications,node_backend_realtime toneAmber
class node_ai_app,node_ai_ingest,node_ai_transcribe,node_ai_extract toneMint
```

## Components

### Frontend

React/Vite SPA for meeting workflows and user-facing screens

- [App shell](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/App.tsx): React SPA · Routing and top-level composition for the client app · `frontend/src/App.tsx`
- [Pages](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/pages/Dashboard.tsx): screens · Login, dashboard, meeting, series, search, and task screens · `frontend/src/pages/Dashboard.tsx`
- [Meeting UI](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/components/MultiStepMeetingForm.tsx): feature components · Multi-step meeting form, detail views, participants, transcript, and processing status · `frontend/src/components/MultiStepMeetingForm.tsx`
- [State & session](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/contexts/AuthContext.tsx): contexts/hooks · Auth, theme, and custom hooks that manage session and UI state · `frontend/src/contexts/AuthContext.tsx`
- [API services](https://github.com/ommagdum/academic-meeting-minutes/blob/main/frontend/src/services/api.ts): REST clients · Service wrappers for backend calls across auth, meetings, search, tasks, and users · `frontend/src/services/api.ts`

### Backend

Spring Boot domain engine for auth, meetings, persistence, search, and notifications

- [Backend app](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/BackendApplication.java): Spring Boot · Main server entrypoint and application bootstrap · `backend/src/main/java/com/meetingminutes/backend/BackendApplication.java`
- [Controllers](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/controller/MeetingController.java): HTTP boundary · Auth, meeting, series, agenda, action item, search, profile, dashboard, and join endpoints · `backend/src/main/java/com/meetingminutes/backend/controller/MeetingController.java`
- [Security](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/config/SecurityConfig.java): auth boundary · JWT, OAuth2, Spring Security, user details, and access validation · `backend/src/main/java/com/meetingminutes/backend/config/SecurityConfig.java`
- [Meeting core](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingService.java): domain services · Meeting lifecycle, series, attendees, agenda items, action items, and access rules · `backend/src/main/java/com/meetingminutes/backend/service/MeetingService.java`
- [Processing](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingProcessingService.java): async orchestration · Long-running meeting processing, file upload, websocket publishing, and AI integration · `backend/src/main/java/com/meetingminutes/backend/service/MeetingProcessingService.java`
- [AI client](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/AIServiceClient.java): external integration · Backend bridge to transcription and extraction requests sent to the AI service · `backend/src/main/java/com/meetingminutes/backend/service/AIServiceClient.java`
- [Persistence](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/repository/MeetingRepository.java): repos & models · Relational entities/repositories plus Mongo document repositories for transcripts and AI payloads · `backend/src/main/java/com/meetingminutes/backend/repository/MeetingRepository.java`
- [Search & analytics](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/MeetingSearchService.java): query services · Search, custom meeting queries, dashboard aggregation, and search-vector support · `backend/src/main/java/com/meetingminutes/backend/service/MeetingSearchService.java`
- [Notifications](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/service/EmailService.java): email & docs · Email templates, reminders, and generated meeting documents · `backend/src/main/java/com/meetingminutes/backend/service/EmailService.java`
- [Realtime](https://github.com/ommagdum/academic-meeting-minutes/blob/main/backend/src/main/java/com/meetingminutes/backend/config/WebSocketConfig.java): websocket & schedulers · WebSocket configuration and background scheduling for processing updates and reminders · `backend/src/main/java/com/meetingminutes/backend/config/WebSocketConfig.java`

### AI Service

Flask/Python service for audio ingestion, transcription, and extraction

- [Flask app](https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/app.py): Python service · Entry point for AI processing API · `ai-service/app.py`
- [Upload flow](https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/file_uplod_service.py): file ingestion · Audio upload and validation pipeline · `ai-service/services/file_uplod_service.py`
- [Transcription](https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/transcription_service.py): speech-to-text · Whisper-backed transcription stage · `ai-service/services/transcription_service.py`
- [Extraction](https://github.com/ommagdum/academic-meeting-minutes/blob/main/ai-service/services/extraction_service.py): nlp pipeline · Mistral extraction and fallback rules-based summarization · `ai-service/services/extraction_service.py`

## Connections

- App shell → Pages: routes to · App shell exposes the main screens
- App shell → Meeting UI: composes · Shared meeting flows are embedded in the app
- Pages → API services: calls · Pages fetch and mutate data through service wrappers
- Meeting UI → State & session: uses · Meeting flows consume auth/session and UI state
- Meeting UI → API services: submits · Meeting creation and detail actions call backend APIs
- State & session → API services: auth headers · Session-aware API calls depend on stored credentials
- API services → Controllers: REST · Client requests are served by backend controllers
- Backend app → Controllers: exposes · Application bootstraps HTTP endpoints
- Controllers → Security: guarded by · Controllers sit behind security and access validation
- Controllers → Meeting core: delegates · HTTP boundary forwards business operations to services
- Controllers → Search & analytics: delegates · Search and dashboard endpoints use query services
- Meeting core → Persistence: reads/writes · Meeting, series, attendee, agenda, and action item data persist here
- Meeting core → Notifications: triggers · Meeting events emit emails and generated artifacts
- Meeting core → Processing: starts · Uploads and meeting completion initiate async processing
- Processing → AI client: calls · Processing orchestration forwards audio and metadata to AI service
- Processing → Realtime: publishes · Status changes are pushed to clients over WebSockets
- Processing → Persistence: stores · Processing results land in PostgreSQL and MongoDB
- Search & analytics → Persistence: queries · Search and analytics combine relational and document data
- Realtime → Meeting UI: updates · Processing progress is surfaced in the meeting UI
- Notifications → Persistence: references · Emails and documents are driven by stored meeting data
- AI client → Flask app: HTTP · Backend integrates with the Python AI service
- Flask app → Upload flow: routes to · Incoming requests begin with file ingestion
- Upload flow → Transcription: passes to · Validated uploads move into speech-to-text
- Transcription → Extraction: passes to · Transcript output feeds extraction and fallback logic
