# husseindoski/zhirnoos architecture

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

- Interactive diagram: https://gitdiagram.com/husseindoski/zhirnoos
- Repository: https://github.com/husseindoski/zhirnoos

## Overview

Zhirnoos provides two user-facing subtitle workflows: a Windows desktop app and an After Effects panel. Both support transcription or translation, followed by subtitle styling and output; the panel can rebuild or remove caption layers. The README documents desktop exports, preview and video burning, while the JSX excerpt shows engine discovery, job dispatch, SRT parsing and caption-layer creation. The Python implementation was not excerpted, so its internal calls and data flow are represented only where the README explicitly describes them.

Main entry points: [`Zhirnoos.pyw`](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw) (Desktop app UI), [`Zhirnoos.jsx`](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx) (After Effects panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop app"]
  node_desktop_ui["Desktop app UI<br/>[Zhirnoos.pyw]"]
  node_preview["Style preview<br/>[Zhirnoos.pyw]"]
end

subgraph group_engine["Subtitle processing"]
  node_engine["Transcription engine<br/>[Zhirnoos.pyw]"]
  node_transcribe["Speech transcription<br/>[Zhirnoos.pyw]"]
  node_translate["Translation<br/>[Zhirnoos.pyw]"]
  node_cleanup_sync["Cleanup and sync<br/>[Zhirnoos.pyw]"]
end

subgraph group_ae["After Effects panel"]
  node_ae_panel["After Effects panel<br/>[Zhirnoos.jsx]"]
  node_engine_dispatch["Engine dispatch<br/>[Zhirnoos.jsx]"]
  node_srt_parse["SRT parsing<br/>[Zhirnoos.jsx]"]
  node_caption_layers["Caption layers<br/>[Zhirnoos.jsx]"]
  node_caption_controls["Rebuild and remove<br/>[Zhirnoos.jsx]"]
end

subgraph group_outputs["Subtitle outputs"]
  node_subtitle_files["Subtitle exports<br/>[Zhirnoos.pyw]"]
  node_video_output["Subtitled video<br/>[Zhirnoos.pyw]"]
end

node_desktop_user(("Desktop user"))
node_media["Audio/video input"]
node_speech_model["Speech model"]
node_google_translate["Google Translate"]
node_ae_user(("After Effects user"))

node_desktop_user -->|"uses"| node_desktop_ui
node_media -->|"opens"| node_desktop_ui
node_desktop_ui -->|"starts job"| node_engine
node_engine -->|"transcribes"| node_transcribe
node_engine -->|"translates"| node_translate
node_transcribe -->|"uses model"| node_speech_model
node_translate -->|"uses"| node_google_translate
node_engine -->|"cleans and syncs"| node_cleanup_sync
node_desktop_ui -->|"configures style"| node_preview
node_desktop_ui -->|"exports"| node_subtitle_files
node_desktop_ui -->|"burns subtitles"| node_video_output
node_ae_user -->|"uses"| node_ae_panel
node_ae_panel -->|"starts job"| node_engine_dispatch
node_engine_dispatch -->|"runs engine"| node_engine
node_engine -->|"writes SRT for"| node_srt_parse
node_srt_parse -->|"builds from segments"| node_caption_layers
node_ae_panel -->|"offers controls"| node_caption_controls
node_caption_controls -->|"rebuilds or removes"| node_caption_layers

click node_desktop_ui "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_preview "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_engine "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_transcribe "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_translate "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_cleanup_sync "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_ae_panel "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx"
click node_engine_dispatch "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx"
click node_srt_parse "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx"
click node_caption_layers "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx"
click node_caption_controls "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx"
click node_subtitle_files "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"
click node_video_output "https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw"

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_desktop_ui,node_preview,node_desktop_user,node_ae_user toneBlue
class node_engine,node_transcribe,node_translate,node_cleanup_sync toneAmber
class node_ae_panel,node_engine_dispatch,node_srt_parse,node_caption_layers,node_caption_controls toneMint
class node_subtitle_files,node_video_output toneRose
class node_media,node_speech_model,node_google_translate toneIndigo
```

## Components

### Desktop app

- [Desktop app UI](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`
- [Style preview](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`

### Subtitle processing

- [Transcription engine](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`
- [Speech transcription](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`
- [Translation](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`
- [Cleanup and sync](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`

### After Effects panel

- [After Effects panel](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx): `Zhirnoos.jsx`
- [Engine dispatch](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx): `Zhirnoos.jsx`
- [SRT parsing](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx): `Zhirnoos.jsx`
- [Caption layers](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx): `Zhirnoos.jsx`
- [Rebuild and remove](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.jsx): `Zhirnoos.jsx`

### Subtitle outputs

- [Subtitle exports](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`
- [Subtitled video](https://github.com/husseindoski/zhirnoos/blob/main/Zhirnoos.pyw): `Zhirnoos.pyw`

### Other components

- **Desktop user**
- **Audio/video input**
- **Speech model**
- **Google Translate**
- **After Effects user**

## Connections

- Desktop user → Desktop app UI: uses (evidence: `README.md`)
- Audio/video input → Desktop app UI: opens (evidence: `README.md`)
- Desktop app UI → Transcription engine: starts job (evidence: `README.md`)
- Transcription engine → Speech transcription: transcribes (evidence: `README.md`)
- Transcription engine → Translation: translates (evidence: `README.md`)
- Speech transcription → Speech model: uses model (evidence: `README.md`)
- Translation → Google Translate: uses (evidence: `README.md`)
- Transcription engine → Cleanup and sync: cleans and syncs (evidence: `README.md`)
- Desktop app UI → Style preview: configures style (evidence: `README.md`)
- Desktop app UI → Subtitle exports: exports (evidence: `README.md`)
- Desktop app UI → Subtitled video: burns subtitles (evidence: `README.md`)
- After Effects user → After Effects panel: uses (evidence: `README.md`)
- After Effects panel → Engine dispatch: starts job (evidence: `Zhirnoos.jsx`)
- Engine dispatch → Transcription engine: runs engine (evidence: `Zhirnoos.jsx`)
- Transcription engine → SRT parsing: writes SRT for (evidence: `Zhirnoos.jsx`)
- SRT parsing → Caption layers: builds from segments (evidence: `Zhirnoos.jsx`)
- After Effects panel → Rebuild and remove: offers controls (evidence: `README.md`)
- Rebuild and remove → Caption layers: rebuilds or removes (evidence: `Zhirnoos.jsx`)
