# gaoxansheng/jizura-live architecture

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

- Interactive diagram: https://gitdiagram.com/gaoxansheng/jizura-live
- Repository: https://github.com/gaoxansheng/jizura-live

## Overview

JIZURA Live is a Windows lyric-PV editor and live-rendering application. Its primary workflow brings in audio and timed lyrics, plans line and cut timing and visual treatments, previews synchronized playback, then exports video or image sequences—or sends frames to live-output software. The graph also preserves documented cloud music, font fallback, and MCP-control capabilities. Relationships are based on the supplied README and SOURCE INDEX references; several UI and integration paths are documented but their implementation was not sampled, so those links use README evidence.

Main entry points: [`src/Engine/Planner.cs`](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Planner.cs) (Timeline planner), [`src/Export/ExportJob.cs`](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Export/ExportJob.cs) (Export job), [`src/Engine/Renderer.cs`](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Renderer.cs) (Frame renderer), [`src/App/PreviewEngine.cs`](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/PreviewEngine.cs) (Playback preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Editing and input"]
  node_ui["WPF editor<br/>[MainWindow.xaml.cs]"]
  node_state["Editor state<br/>[EditorState.cs]"]
  node_project["Project I/O<br/>[ProjectIO.cs]"]
  node_cloudui["Cloud panel<br/>[CloudPanel.xaml.cs]"]
  node_cloudload["Cloud song loader<br/>[SongLoader.cs]"]
  node_subtitles["Lyrics parsing<br/>[Subtitles.cs]"]
  node_audioanalysis["Audio analysis<br/>[AudioAnalyzer.cs]"]
end

subgraph group_engine["Planning and rendering"]
  node_planner["Timeline planner<br/>[Planner.cs]"]
  node_omakase["Omakase styling<br/>[Omakase.cs]"]
  node_packs["Visual technique packs"]
  node_layouts["Text layouts<br/>[JLayouts.cs]"]
  node_fonts["Fonts and language<br/>[JFonts.cs]"]
  node_text["Text drawing<br/>[JText.cs]"]
  node_renderer["Frame renderer<br/>[Renderer.cs]"]
end

subgraph group_delivery["Playback and output"]
  node_preview["Playback preview<br/>[PreviewEngine.cs]"]
  node_export["Export job<br/>[ExportJob.cs]"]
  node_encoder["FFmpeg encoder<br/>[FFmpegEncoder.cs]"]
  node_spout["Spout output<br/>[SpoutOut.cs]"]
end

subgraph group_integrations["Services and control"]
  node_mcpserver["MCP HTTP server<br/>[McpHttpServer.cs]"]
  node_mcptools["MCP tools<br/>[McpTools.cs]"]
  node_musicapi["Music services"]
  node_storage["App data directories<br/>[AppDirs.cs]"]
end

node_user(("Editor"))
node_ai(("AI client"))
node_obs["OBS / VJ software"]

node_user -->|"edits lyrics"| node_ui
node_ui -.->|"updates project"| node_state
node_ui -.->|"loads and saves"| node_project
node_user -->|"searches music"| node_cloudui
node_cloudui -.->|"loads songs"| node_cloudload
node_cloudload -.->|"queries services"| node_musicapi
node_user -->|"imports timed lyrics"| node_subtitles
node_audioanalysis -.->|"provides audio timing"| node_planner
node_subtitles -->|"provides lyrics"| node_planner
node_state -.->|"plans project"| node_planner
node_omakase -->|"provides style choices"| node_planner
node_packs -->|"registers techniques"| node_renderer
node_planner -->|"selects layout"| node_layouts
node_layouts -->|"measures text"| node_fonts
node_layouts -.->|"draws layout text"| node_text
node_planner -->|"supplies render plan"| node_renderer
node_renderer -->|"draws glyphs"| node_text
node_user -->|"previews playback"| node_preview
node_preview -->|"replans project"| node_planner
node_preview -->|"renders frames"| node_renderer
node_user -->|"exports video"| node_export
node_export -->|"uses plan"| node_planner
node_export -->|"renders frames"| node_renderer
node_export -->|"encodes video"| node_encoder
node_preview -->|"shares live frames"| node_spout
node_spout -->|"sends shared texture"| node_obs
node_ai -->|"sends MCP requests"| node_mcpserver
node_mcpserver -.->|"dispatches tools"| node_mcptools
node_mcptools -->|"controls editor"| node_state
node_mcptools -->|"requests planning"| node_planner
node_mcptools -->|"starts export"| node_export
node_storage -->|"stores user fonts"| node_fonts

click node_ui "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/MainWindow.xaml.cs"
click node_state "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/EditorState.cs"
click node_project "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/ProjectIO.cs"
click node_cloudui "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Views/CloudPanel.xaml.cs"
click node_cloudload "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Cloud/SongLoader.cs"
click node_subtitles "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Subtitles.cs"
click node_audioanalysis "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Server/AudioAnalyzer.cs"
click node_planner "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Planner.cs"
click node_omakase "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Omakase.cs"
click node_packs "https://github.com/gaoxansheng/jizura-live/tree/pure-csharp/src/Engine/Packs"
click node_layouts "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JLayouts.cs"
click node_fonts "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JFonts.cs"
click node_text "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JText.cs"
click node_renderer "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Renderer.cs"
click node_preview "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/PreviewEngine.cs"
click node_export "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Export/ExportJob.cs"
click node_encoder "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Export/FFmpegEncoder.cs"
click node_spout "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Spout/SpoutOut.cs"
click node_mcpserver "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Mcp/McpHttpServer.cs"
click node_mcptools "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Mcp/McpTools.cs"
click node_musicapi "https://github.com/gaoxansheng/jizura-live/tree/pure-csharp/src/Server"
click node_storage "https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/AppDirs.cs"

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_ui,node_state,node_project,node_cloudui,node_cloudload,node_subtitles,node_audioanalysis,node_ai toneBlue
class node_planner,node_omakase,node_packs,node_layouts,node_fonts,node_text,node_renderer toneAmber
class node_preview,node_export,node_encoder,node_spout toneMint
class node_mcpserver,node_mcptools,node_musicapi,node_storage toneRose
class node_user,node_obs toneIndigo
```

## Components

### Editing and input

- [WPF editor](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/MainWindow.xaml.cs): `src/App/MainWindow.xaml.cs`
- [Editor state](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/EditorState.cs): `src/App/EditorState.cs`
- [Project I/O](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/ProjectIO.cs): `src/App/ProjectIO.cs`
- [Cloud panel](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Views/CloudPanel.xaml.cs): `src/App/Views/CloudPanel.xaml.cs`
- [Cloud song loader](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Cloud/SongLoader.cs): `src/App/Cloud/SongLoader.cs`
- [Lyrics parsing](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Subtitles.cs): `src/Engine/Subtitles.cs`
- [Audio analysis](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Server/AudioAnalyzer.cs): `src/Server/AudioAnalyzer.cs`

### Planning and rendering

- [Timeline planner](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Planner.cs): `src/Engine/Planner.cs`
- [Omakase styling](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Omakase.cs): `src/Engine/Omakase.cs`
- [Visual technique packs](https://github.com/gaoxansheng/jizura-live/tree/pure-csharp/src/Engine/Packs): `src/Engine/Packs`
- [Text layouts](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JLayouts.cs): `src/Engine/JLayouts.cs`
- [Fonts and language](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JFonts.cs): `src/Engine/JFonts.cs`
- [Text drawing](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/JText.cs): `src/Engine/JText.cs`
- [Frame renderer](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Engine/Renderer.cs): `src/Engine/Renderer.cs`

### Playback and output

- [Playback preview](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/PreviewEngine.cs): `src/App/PreviewEngine.cs`
- [Export job](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Export/ExportJob.cs): `src/Export/ExportJob.cs`
- [FFmpeg encoder](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Export/FFmpegEncoder.cs): `src/Export/FFmpegEncoder.cs`
- [Spout output](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/Spout/SpoutOut.cs): `src/Spout/SpoutOut.cs`

### Services and control

- [MCP HTTP server](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Mcp/McpHttpServer.cs): `src/App/Mcp/McpHttpServer.cs`
- [MCP tools](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/Mcp/McpTools.cs): `src/App/Mcp/McpTools.cs`
- [Music services](https://github.com/gaoxansheng/jizura-live/tree/pure-csharp/src/Server): `src/Server`
- [App data directories](https://github.com/gaoxansheng/jizura-live/blob/pure-csharp/src/App/AppDirs.cs): `src/App/AppDirs.cs`

### Other components

- **Editor**
- **AI client**
- **OBS / VJ software**

## Connections

- Editor → WPF editor: edits lyrics (evidence: `README.md`)
- WPF editor → Editor state: updates project
- WPF editor → Project I/O: loads and saves
- Editor → Cloud panel: searches music (evidence: `README.md`)
- Cloud panel → Cloud song loader: loads songs
- Cloud song loader → Music services: queries services
- Editor → Lyrics parsing: imports timed lyrics (evidence: `README.md`)
- Audio analysis → Timeline planner: provides audio timing
- Lyrics parsing → Timeline planner: provides lyrics (evidence: `src/Engine/Subtitles.cs`)
- Editor state → Timeline planner: plans project
- Omakase styling → Timeline planner: provides style choices (evidence: `src/Engine/Omakase.cs`)
- Visual technique packs → Frame renderer: registers techniques (evidence: `src/Engine/Renderer.cs`)
- Timeline planner → Text layouts: selects layout (evidence: `src/Engine/Planner.cs`)
- Text layouts → Fonts and language: measures text (evidence: `src/Engine/JLayouts.cs`)
- Text layouts → Text drawing: draws layout text (evidence: `src/Engine/JLayouts.cs`)
- Timeline planner → Frame renderer: supplies render plan (evidence: `src/Engine/Renderer.cs`)
- Frame renderer → Text drawing: draws glyphs (evidence: `src/Engine/Renderer.cs`)
- Editor → Playback preview: previews playback (evidence: `README.md`)
- Playback preview → Timeline planner: replans project (evidence: `src/App/PreviewEngine.cs`)
- Playback preview → Frame renderer: renders frames (evidence: `src/App/PreviewEngine.cs`)
- Editor → Export job: exports video (evidence: `README.md`)
- Export job → Timeline planner: uses plan (evidence: `src/Export/ExportJob.cs`)
- Export job → Frame renderer: renders frames (evidence: `src/Export/ExportJob.cs`)
- Export job → FFmpeg encoder: encodes video (evidence: `src/Export/ExportJob.cs`)
- Playback preview → Spout output: shares live frames (evidence: `src/Spout/SpoutOut.cs`)
- Spout output → OBS / VJ software: sends shared texture (evidence: `README.md`)
- AI client → MCP HTTP server: sends MCP requests (evidence: `README.md`)
- MCP HTTP server → MCP tools: dispatches tools
- MCP tools → Editor state: controls editor (evidence: `src/App/Mcp/McpTools.cs`)
- MCP tools → Timeline planner: requests planning (evidence: `src/App/Mcp/McpTools.cs`)
- MCP tools → Export job: starts export (evidence: `src/App/Mcp/McpTools.cs`)
- App data directories → Fonts and language: stores user fonts (evidence: `src/App/AppDirs.cs`)
