# atharv01h/stickman-studio architecture

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

- Interactive diagram: https://gitdiagram.com/atharv01h/stickman-studio
- Repository: https://github.com/atharv01h/stickman-studio

## Overview

Stickman Studio is a local video-production application that turns a topic or narration into animated, voiced videos in standard and Cinematic Illustrated Stickman (CIS) modes. The principal workflow begins in the desktop UI, passes through script and scene planning, then renders visuals, narration, captions, and audio before encoding the video. CIS adds dedicated storyboard, illustration, and manifest stages. The index and excerpts support these major branches, but not every internal call; uncertain links are omitted.

Main entry points: [`src/video/pipeline.py`](https://github.com/atharv01h/stickman-studio/blob/main/src/video/pipeline.py) (Standard video pipeline), [`src/engine/cis_pipeline.py`](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_pipeline.py) (CIS pipeline), [`src/ui/main_window.py`](https://github.com/atharv01h/stickman-studio/blob/main/src/ui/main_window.py) (Studio UI), [`src/engine/scene_planner.py`](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/scene_planner.py) (Scene planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["Desktop entry<br/>[main.py]"]
  node_ui["Studio UI<br/>[main_window.py]"]
  node_cis_controls["CIS controls<br/>[cis_mode_panel.py]"]
  node_script_editor["Script editor"]
  node_settings["Settings<br/>[settings_dialog.py]"]
end

subgraph group_planning["Script &amp; Planning"]
  node_planner["Scene planner<br/>[scene_planner.py]"]
  node_director["Offline AI director"]
  node_intelligence["Script intelligence"]
  node_llm["Local LLM<br/>[llm_manager.py]"]
  node_cis_pipeline["CIS pipeline<br/>[cis_pipeline.py]"]
  node_cis_storyboard["CIS storyboard"]
  node_timeline["Timeline manager"]
end

subgraph group_visuals["Visual Production"]
  node_illustrator["CIS illustrator"]
  node_manifest["CIS manifest"]
  node_scene_engine["Procedural scenes"]
  node_semantic["Semantic scene brain"]
  node_objects["Vector objects"]
  node_backgrounds["Procedural backgrounds"]
  node_lcm["LCM backgrounds"]
  node_composer["Scene composer<br/>[scene_composer.py]"]
  node_assets["Animation assets<br/>[assets.py]"]
  node_stickman["Stickman animation<br/>[stickman.py]"]
  node_styles["Style packs<br/>[style_packs.py]"]
end

subgraph group_media["Audio &amp; Output"]
  node_video_pipeline["Standard video pipeline<br/>[pipeline.py]"]
  node_tts["Local speech synthesis<br/>[tts_manager.py]"]
  node_music["Music synthesis<br/>[music_synth.py]"]
  node_sfx["Sound effects<br/>[sfx_synth.py]"]
  node_mixer["Audio mixer<br/>[mixer.py]"]
  node_caption_gen["Caption generation<br/>[generator.py]"]
  node_caption_render["Caption renderer<br/>[renderer.py]"]
  node_encoder["Video encoder<br/>[encoder.py]"]
  node_video_output["Rendered video"]
end

node_creator(("Creator"))

node_creator -->|"starts"| node_entry
node_entry -->|"opens"| node_ui
node_ui -->|"plans scenes"| node_planner
node_ui -->|"runs CIS"| node_cis_pipeline
node_ui -->|"shows controls"| node_cis_controls
node_ui -->|"shows editor"| node_script_editor
node_ui -->|"opens settings"| node_settings
node_planner -->|"queries"| node_llm
node_planner -->|"uses offline director"| node_director
node_planner -->|"uses"| node_intelligence
node_planner -->|"generates scenes"| node_scene_engine
node_director -.->|"uses"| node_intelligence
node_cis_pipeline -->|"generates script"| node_director
node_cis_pipeline -->|"plans storyboard"| node_cis_storyboard
node_cis_pipeline -->|"illustrates scenes"| node_illustrator
node_cis_pipeline -->|"registers scenes"| node_timeline
node_cis_pipeline -->|"builds manifest"| node_manifest
node_cis_pipeline -->|"synthesizes narration"| node_tts
node_cis_storyboard -->|"uses"| node_semantic
node_cis_storyboard -->|"uses"| node_intelligence
node_cis_storyboard -->|"selects props"| node_objects
node_illustrator -->|"renders environments"| node_backgrounds
node_illustrator -->|"renders props"| node_objects
node_illustrator -->|"uses assets"| node_assets
node_illustrator -->|"uses image engine"| node_lcm
node_scene_engine -->|"uses"| node_semantic
node_composer -->|"renders assets"| node_assets
node_composer -->|"renders characters"| node_stickman
node_composer -->|"resolves style"| node_styles
node_video_pipeline -->|"plans scenes"| node_planner
node_video_pipeline -->|"streams frames"| node_composer
node_video_pipeline -->|"synthesizes speech"| node_tts
node_video_pipeline -->|"generates music"| node_music
node_video_pipeline -->|"generates effects"| node_sfx
node_video_pipeline -->|"mixes audio"| node_mixer
node_video_pipeline -->|"generates captions"| node_caption_gen
node_video_pipeline -->|"renders captions"| node_caption_render
node_video_pipeline -->|"encodes frames"| node_encoder
node_video_pipeline -->|"produces"| node_video_output
node_cis_pipeline -->|"creates production manifest"| node_manifest
node_manifest -.->|"feeds rendering"| node_video_output

click node_entry "https://github.com/atharv01h/stickman-studio/blob/main/main.py"
click node_ui "https://github.com/atharv01h/stickman-studio/blob/main/src/ui/main_window.py"
click node_cis_controls "https://github.com/atharv01h/stickman-studio/blob/main/src/ui/cis_mode_panel.py"
click node_script_editor "https://github.com/atharv01h/stickman-studio/blob/main/src/ui/dual_script_editor.py"
click node_settings "https://github.com/atharv01h/stickman-studio/blob/main/src/ui/settings_dialog.py"
click node_planner "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/scene_planner.py"
click node_director "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/inbuilt_ai_director.py"
click node_intelligence "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/script_intelligence.py"
click node_llm "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/llm_manager.py"
click node_cis_pipeline "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_pipeline.py"
click node_cis_storyboard "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_storyboard_planner.py"
click node_timeline "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/timeline_manager.py"
click node_illustrator "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_scene_illustrator.py"
click node_manifest "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_manifest_builder.py"
click node_scene_engine "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/procedural_scene_engine.py"
click node_semantic "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/semantic_scene_brain.py"
click node_objects "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/procedural_object_engine.py"
click node_backgrounds "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/ai_background_engine.py"
click node_lcm "https://github.com/atharv01h/stickman-studio/blob/main/src/engine/lcm_image_engine.py"
click node_composer "https://github.com/atharv01h/stickman-studio/blob/main/src/animation/scene_composer.py"
click node_assets "https://github.com/atharv01h/stickman-studio/blob/main/src/animation/assets.py"
click node_stickman "https://github.com/atharv01h/stickman-studio/blob/main/src/animation/stickman.py"
click node_styles "https://github.com/atharv01h/stickman-studio/blob/main/src/styles/style_packs.py"
click node_video_pipeline "https://github.com/atharv01h/stickman-studio/blob/main/src/video/pipeline.py"
click node_tts "https://github.com/atharv01h/stickman-studio/blob/main/src/tts/tts_manager.py"
click node_music "https://github.com/atharv01h/stickman-studio/blob/main/src/audio/music_synth.py"
click node_sfx "https://github.com/atharv01h/stickman-studio/blob/main/src/audio/sfx_synth.py"
click node_mixer "https://github.com/atharv01h/stickman-studio/blob/main/src/audio/mixer.py"
click node_caption_gen "https://github.com/atharv01h/stickman-studio/blob/main/src/captions/generator.py"
click node_caption_render "https://github.com/atharv01h/stickman-studio/blob/main/src/captions/renderer.py"
click node_encoder "https://github.com/atharv01h/stickman-studio/blob/main/src/video/encoder.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_entry,node_ui,node_cis_controls,node_script_editor,node_settings toneBlue
class node_planner,node_director,node_intelligence,node_llm,node_cis_pipeline,node_cis_storyboard,node_timeline toneAmber
class node_illustrator,node_manifest,node_scene_engine,node_semantic,node_objects,node_backgrounds,node_lcm,node_composer,node_assets,node_stickman,node_styles toneMint
class node_video_pipeline,node_tts,node_music,node_sfx,node_mixer,node_caption_gen,node_caption_render,node_encoder,node_video_output toneRose
class node_creator toneIndigo
```

## Components

### Application

- [Desktop entry](https://github.com/atharv01h/stickman-studio/blob/main/main.py): `main.py`
- [Studio UI](https://github.com/atharv01h/stickman-studio/blob/main/src/ui/main_window.py): `src/ui/main_window.py`
- [CIS controls](https://github.com/atharv01h/stickman-studio/blob/main/src/ui/cis_mode_panel.py): `src/ui/cis_mode_panel.py`
- [Script editor](https://github.com/atharv01h/stickman-studio/blob/main/src/ui/dual_script_editor.py): `src/ui/dual_script_editor.py`
- [Settings](https://github.com/atharv01h/stickman-studio/blob/main/src/ui/settings_dialog.py): `src/ui/settings_dialog.py`

### Script & Planning

- [Scene planner](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/scene_planner.py): `src/engine/scene_planner.py`
- [Offline AI director](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/inbuilt_ai_director.py): `src/engine/inbuilt_ai_director.py`
- [Script intelligence](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/script_intelligence.py): `src/engine/script_intelligence.py`
- [Local LLM](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/llm_manager.py): `src/engine/llm_manager.py`
- [CIS pipeline](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_pipeline.py): `src/engine/cis_pipeline.py`
- [CIS storyboard](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_storyboard_planner.py): `src/engine/cis_storyboard_planner.py`
- [Timeline manager](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/timeline_manager.py): `src/engine/timeline_manager.py`

### Visual Production

- [CIS illustrator](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_scene_illustrator.py): `src/engine/cis_scene_illustrator.py`
- [CIS manifest](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/cis_manifest_builder.py): `src/engine/cis_manifest_builder.py`
- [Procedural scenes](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/procedural_scene_engine.py): `src/engine/procedural_scene_engine.py`
- [Semantic scene brain](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/semantic_scene_brain.py): `src/engine/semantic_scene_brain.py`
- [Vector objects](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/procedural_object_engine.py): `src/engine/procedural_object_engine.py`
- [Procedural backgrounds](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/ai_background_engine.py): `src/engine/ai_background_engine.py`
- [LCM backgrounds](https://github.com/atharv01h/stickman-studio/blob/main/src/engine/lcm_image_engine.py): `src/engine/lcm_image_engine.py`
- [Scene composer](https://github.com/atharv01h/stickman-studio/blob/main/src/animation/scene_composer.py): `src/animation/scene_composer.py`
- [Animation assets](https://github.com/atharv01h/stickman-studio/blob/main/src/animation/assets.py): `src/animation/assets.py`
- [Stickman animation](https://github.com/atharv01h/stickman-studio/blob/main/src/animation/stickman.py): `src/animation/stickman.py`
- [Style packs](https://github.com/atharv01h/stickman-studio/blob/main/src/styles/style_packs.py): `src/styles/style_packs.py`

### Audio & Output

- [Standard video pipeline](https://github.com/atharv01h/stickman-studio/blob/main/src/video/pipeline.py): `src/video/pipeline.py`
- [Local speech synthesis](https://github.com/atharv01h/stickman-studio/blob/main/src/tts/tts_manager.py): `src/tts/tts_manager.py`
- [Music synthesis](https://github.com/atharv01h/stickman-studio/blob/main/src/audio/music_synth.py): `src/audio/music_synth.py`
- [Sound effects](https://github.com/atharv01h/stickman-studio/blob/main/src/audio/sfx_synth.py): `src/audio/sfx_synth.py`
- [Audio mixer](https://github.com/atharv01h/stickman-studio/blob/main/src/audio/mixer.py): `src/audio/mixer.py`
- [Caption generation](https://github.com/atharv01h/stickman-studio/blob/main/src/captions/generator.py): `src/captions/generator.py`
- [Caption renderer](https://github.com/atharv01h/stickman-studio/blob/main/src/captions/renderer.py): `src/captions/renderer.py`
- [Video encoder](https://github.com/atharv01h/stickman-studio/blob/main/src/video/encoder.py): `src/video/encoder.py`
- **Rendered video**

### Other components

- **Creator**

## Connections

- Creator → Desktop entry: starts
- Desktop entry → Studio UI: opens (evidence: `main.py`)
- Studio UI → Scene planner: plans scenes (evidence: `src/ui/main_window.py`)
- Studio UI → CIS pipeline: runs CIS (evidence: `src/ui/main_window.py`)
- Studio UI → CIS controls: shows controls (evidence: `src/ui/main_window.py`)
- Studio UI → Script editor: shows editor (evidence: `src/ui/main_window.py`)
- Studio UI → Settings: opens settings (evidence: `src/ui/main_window.py`)
- Scene planner → Local LLM: queries (evidence: `src/engine/scene_planner.py`)
- Scene planner → Offline AI director: uses offline director (evidence: `src/engine/scene_planner.py`)
- Scene planner → Script intelligence: uses (evidence: `src/engine/scene_planner.py`)
- Scene planner → Procedural scenes: generates scenes (evidence: `src/engine/scene_planner.py`)
- Offline AI director → Script intelligence: uses
- CIS pipeline → Offline AI director: generates script (evidence: `src/engine/cis_pipeline.py`)
- CIS pipeline → CIS storyboard: plans storyboard (evidence: `src/engine/cis_pipeline.py`)
- CIS pipeline → CIS illustrator: illustrates scenes (evidence: `src/engine/cis_pipeline.py`)
- CIS pipeline → Timeline manager: registers scenes (evidence: `src/engine/cis_pipeline.py`)
- CIS pipeline → CIS manifest: builds manifest (evidence: `src/engine/cis_pipeline.py`)
- CIS pipeline → Local speech synthesis: synthesizes narration (evidence: `src/engine/cis_pipeline.py`)
- CIS storyboard → Semantic scene brain: uses (evidence: `src/engine/cis_storyboard_planner.py`)
- CIS storyboard → Script intelligence: uses (evidence: `src/engine/cis_storyboard_planner.py`)
- CIS storyboard → Vector objects: selects props (evidence: `src/engine/cis_storyboard_planner.py`)
- CIS illustrator → Procedural backgrounds: renders environments (evidence: `src/engine/cis_scene_illustrator.py`)
- CIS illustrator → Vector objects: renders props (evidence: `src/engine/cis_scene_illustrator.py`)
- CIS illustrator → Animation assets: uses assets (evidence: `src/engine/cis_scene_illustrator.py`)
- CIS illustrator → LCM backgrounds: uses image engine (evidence: `src/engine/cis_scene_illustrator.py`)
- Procedural scenes → Semantic scene brain: uses (evidence: `src/engine/semantic_scene_brain.py`)
- Scene composer → Animation assets: renders assets (evidence: `src/animation/scene_composer.py`)
- Scene composer → Stickman animation: renders characters (evidence: `src/animation/scene_composer.py`)
- Scene composer → Style packs: resolves style (evidence: `src/animation/scene_composer.py`)
- Standard video pipeline → Scene planner: plans scenes (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Scene composer: streams frames (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Local speech synthesis: synthesizes speech (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Music synthesis: generates music (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Sound effects: generates effects (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Audio mixer: mixes audio (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Caption generation: generates captions (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Caption renderer: renders captions (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Video encoder: encodes frames (evidence: `src/video/pipeline.py`)
- Standard video pipeline → Rendered video: produces
- CIS pipeline → CIS manifest: creates production manifest (evidence: `src/engine/cis_pipeline.py`)
- CIS manifest → Rendered video: feeds rendering
