# kim-jeongwoo/graduation-project architecture

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

- Interactive diagram: https://gitdiagram.com/kim-jeongwoo/graduation-project
- Repository: https://github.com/kim-jeongwoo/graduation-project

## Overview

Vocal Fit is a mobile vocal-practice feedback system: singers record a song, receive pitch and vocal-technique analysis, then use weak-section training. The graph follows that user path through the app, API, and DML inference, while retaining song guidance, history, authentication, and range testing. Some subsystem links are documented in the README rather than visible in sampled callers; those edges are marked dashed. Training research and data-preparation scripts are excluded as supporting work, not runtime product components.

Main entry points: [`dml-server/model_server/server.py`](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/server.py) (DML inference API), [`vocal-server/app/main.py`](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/main.py) (Vocal application API), [`vocal-app/src/api/client.ts`](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/api/client.ts) (API client), [`vocal-server/app/database.py`](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/database.py) (Application database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile practice app"]
  node_app["App shell and navigation<br/>[AppNavigator.tsx]"]
  node_auth["Authentication state<br/>[AuthContext.tsx]"]
  node_song["Song and pitch guide<br/>[songs.ts]"]
  node_karaoke["Karaoke recording<br/>[KaraokeScreen.tsx]"]
  node_sessionview["Session analysis flow"]
  node_training["Weak-section training<br/>[TrainingScreen.tsx]"]
  node_range["Vocal range test"]
  node_history["History and favorites<br/>[HistoryScreen.tsx]"]
  node_api_client["API client<br/>[client.ts]"]
end

subgraph group_api["Application backend"]
  node_vocal_api["Vocal application API<br/>[main.py]"]
  node_auth_routes["Auth routes<br/>[auth.py]"]
  node_session_routes["Session and training routes<br/>[sessions.py]"]
  node_analysis_service["Analysis orchestration"]
  node_songs_api["Song catalog API<br/>[songs.py]"]
end

subgraph group_ml["Vocal analysis"]
  node_dml_server["DML inference API<br/>[server.py]"]
  node_pipeline["Audio analysis pipeline"]
  node_predictor["EGG prediction<br/>[predictor.py]"]
  node_efficient_model["Efficient EGG model<br/>[efficient_egg.py]"]
  node_timeline["Timeline analysis"]
  node_realtime["Realtime analysis<br/>[realtime.py]"]
end

subgraph group_state["User data"]
  node_db[("Application database<br/>[database.py]")]
  node_models["Users, sessions, results<br/>[models.py]"]
end

node_singer(("Singer"))
node_admin(("Admin operator"))

node_singer -->|"uses"| node_app
node_app -->|"provides state"| node_auth
node_app -->|"routes to"| node_karaoke
node_karaoke -->|"loads guidance"| node_song
node_karaoke -.->|"creates recording session"| node_sessionview
node_sessionview -->|"requests analysis"| node_api_client
node_training -.->|"submits chunk"| node_api_client
node_range -.->|"uses API"| node_api_client
node_history -.->|"loads session data"| node_api_client
node_api_client -->|"sends API requests"| node_vocal_api
node_vocal_api -->|"registers"| node_auth_routes
node_vocal_api -->|"registers"| node_session_routes
node_vocal_api -->|"registers"| node_songs_api
node_auth_routes -->|"queries"| node_db
node_session_routes -->|"queries and updates"| node_db
node_session_routes -->|"forwards chunk"| node_dml_server
node_analysis_service -.->|"stores analysis"| node_db
node_analysis_service -.->|"requests inference"| node_dml_server
node_db -->|"maps records"| node_models
node_dml_server -->|"runs analysis"| node_pipeline
node_dml_server -->|"runs prediction"| node_predictor
node_pipeline -->|"uses model"| node_efficient_model
node_dml_server -->|"dispatches timeline"| node_timeline
node_dml_server -->|"dispatches realtime"| node_realtime
node_admin -.->|"uses admin API"| node_vocal_api

click node_app "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/navigation/AppNavigator.tsx"
click node_auth "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/context/AuthContext.tsx"
click node_song "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/api/songs.ts"
click node_karaoke "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/karaoke/KaraokeScreen.tsx"
click node_sessionview "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/home/SessionDetailScreen.tsx"
click node_training "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/home/TrainingScreen.tsx"
click node_range "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/onboarding/VocalRangeTestScreen.tsx"
click node_history "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/history/HistoryScreen.tsx"
click node_api_client "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/api/client.ts"
click node_vocal_api "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/main.py"
click node_auth_routes "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/auth.py"
click node_session_routes "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/sessions.py"
click node_analysis_service "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/services/analysis_service.py"
click node_songs_api "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/songs.py"
click node_db "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/database.py"
click node_models "https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/models/models.py"
click node_dml_server "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/server.py"
click node_pipeline "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/analysis_pipeline.py"
click node_predictor "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/predictor.py"
click node_efficient_model "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/ai-model/model/efficient_egg.py"
click node_timeline "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/services/timeline_analysis.py"
click node_realtime "https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/services/realtime.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_app,node_auth,node_song,node_karaoke,node_sessionview,node_training,node_range,node_history,node_api_client toneBlue
class node_vocal_api,node_auth_routes,node_session_routes,node_analysis_service,node_songs_api toneAmber
class node_dml_server,node_pipeline,node_predictor,node_efficient_model,node_timeline,node_realtime toneMint
class node_db,node_models toneRose
class node_singer,node_admin toneIndigo
```

## Components

### Mobile practice app

- [App shell and navigation](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/navigation/AppNavigator.tsx): `vocal-app/src/navigation/AppNavigator.tsx`
- [Authentication state](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/context/AuthContext.tsx): `vocal-app/src/context/AuthContext.tsx`
- [Song and pitch guide](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/api/songs.ts): `vocal-app/src/api/songs.ts`
- [Karaoke recording](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/karaoke/KaraokeScreen.tsx): `vocal-app/src/screens/karaoke/KaraokeScreen.tsx`
- [Session analysis flow](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/home/SessionDetailScreen.tsx): `vocal-app/src/screens/home/SessionDetailScreen.tsx`
- [Weak-section training](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/home/TrainingScreen.tsx): `vocal-app/src/screens/home/TrainingScreen.tsx`
- [Vocal range test](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/onboarding/VocalRangeTestScreen.tsx): `vocal-app/src/screens/onboarding/VocalRangeTestScreen.tsx`
- [History and favorites](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/screens/history/HistoryScreen.tsx): `vocal-app/src/screens/history/HistoryScreen.tsx`
- [API client](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-app/src/api/client.ts): `vocal-app/src/api/client.ts`

### Application backend

- [Vocal application API](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/main.py): `vocal-server/app/main.py`
- [Auth routes](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/auth.py): `vocal-server/app/routers/auth.py`
- [Session and training routes](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/sessions.py): `vocal-server/app/routers/sessions.py`
- [Analysis orchestration](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/services/analysis_service.py): `vocal-server/app/services/analysis_service.py`
- [Song catalog API](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/routers/songs.py): `vocal-server/app/routers/songs.py`

### Vocal analysis

- [DML inference API](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/server.py): `dml-server/model_server/server.py`
- [Audio analysis pipeline](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/analysis_pipeline.py): `dml-server/model_server/analysis_pipeline.py`
- [EGG prediction](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/predictor.py): `dml-server/model_server/predictor.py`
- [Efficient EGG model](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/ai-model/model/efficient_egg.py): `dml-server/ai-model/model/efficient_egg.py`
- [Timeline analysis](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/services/timeline_analysis.py): `dml-server/model_server/services/timeline_analysis.py`
- [Realtime analysis](https://github.com/kim-jeongwoo/graduation-project/blob/main/dml-server/model_server/services/realtime.py): `dml-server/model_server/services/realtime.py`

### User data

- [Application database](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/database.py): `vocal-server/app/database.py`
- [Users, sessions, results](https://github.com/kim-jeongwoo/graduation-project/blob/main/vocal-server/app/models/models.py): `vocal-server/app/models/models.py`

### Other components

- **Singer**
- **Admin operator**

## Connections

- Singer → App shell and navigation: uses
- App shell and navigation → Authentication state: provides state (evidence: `vocal-app/App.tsx`)
- App shell and navigation → Karaoke recording: routes to (evidence: `vocal-app/src/navigation/AppNavigator.tsx`)
- Karaoke recording → Song and pitch guide: loads guidance (evidence: `vocal-app/src/screens/karaoke/KaraokeScreen.tsx`)
- Karaoke recording → Session analysis flow: creates recording session
- Session analysis flow → API client: requests analysis (evidence: `vocal-app/src/screens/home/SessionDetailScreen.tsx`)
- Weak-section training → API client: submits chunk
- Vocal range test → API client: uses API
- History and favorites → API client: loads session data
- API client → Vocal application API: sends API requests
- Vocal application API → Auth routes: registers (evidence: `vocal-server/app/main.py`)
- Vocal application API → Session and training routes: registers (evidence: `vocal-server/app/main.py`)
- Vocal application API → Song catalog API: registers (evidence: `vocal-server/app/main.py`)
- Auth routes → Application database: queries (evidence: `vocal-server/app/routers/auth.py`)
- Session and training routes → Application database: queries and updates (evidence: `vocal-server/app/routers/sessions.py`)
- Session and training routes → DML inference API: forwards chunk (evidence: `vocal-server/app/routers/sessions.py`)
- Analysis orchestration → Application database: stores analysis (evidence: `vocal-server/app/services/analysis_service.py`)
- Analysis orchestration → DML inference API: requests inference
- Application database → Users, sessions, results: maps records (evidence: `vocal-server/app/models/models.py`)
- DML inference API → Audio analysis pipeline: runs analysis (evidence: `dml-server/model_server/server.py`)
- DML inference API → EGG prediction: runs prediction (evidence: `dml-server/model_server/server.py`)
- Audio analysis pipeline → Efficient EGG model: uses model (evidence: `dml-server/model_server/analysis_pipeline.py`)
- DML inference API → Timeline analysis: dispatches timeline (evidence: `dml-server/model_server/server.py`)
- DML inference API → Realtime analysis: dispatches realtime (evidence: `dml-server/model_server/server.py`)
- Admin operator → Vocal application API: uses admin API
