# andro2k/minikick architecture

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

- Interactive diagram: https://gitdiagram.com/andro2k/minikick
- Repository: https://github.com/andro2k/minikick

## Overview

MiniKick is a native desktop control center for streamers across Kick, Twitch, YouTube Live, and TikTok. The main workflow is configuring services in the desktop UI, connecting platform chats, processing incoming messages for commands and anti-spam/TTS, and presenting live chat or widget overlays to OBS. Separate capabilities include music requests and playback, alerts and rewards, schedules, statistics, and webhooks. The excerpts show bootstrap, authentication, chat/TTS, widget dispatch, and overlay routes; other branches are retained from README capabilities, with unverified implementation links omitted.

Main entry points: [`backend/controllers`](https://github.com/andro2k/minikick/tree/main/backend/controllers) (Feature controllers), [`backend/services/chat`](https://github.com/andro2k/minikick/tree/main/backend/services/chat) (Chat and commands), [`backend/database/database_manager.py`](https://github.com/andro2k/minikick/blob/main/backend/database/database_manager.py) (SQLite storage), [`bootstrap/application.py`](https://github.com/andro2k/minikick/blob/main/bootstrap/application.py) (Application startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop Control"]
  node_app["Application startup<br/>[application.py]"]
  node_window["Main window"]
  node_views["Control views"]
  node_controllers["Feature controllers"]
end

subgraph group_platforms["Platform Connections"]
  node_auth["OAuth services<br/>[auth_service.py]"]
  node_connections["Connection workers"]
  node_providers["Chat providers"]
end

subgraph group_chat["Chat and Voice"]
  node_chatpipeline["Message pipeline<br/>[chat_pipeline.py]"]
  node_chatservices["Chat and commands"]
  node_spam["Anti-spam<br/>[spam_service.py]"]
  node_tts["Speech synthesis<br/>[tts_service.py]"]
  node_voiceproviders["Voice providers"]
end

subgraph group_streaming["Stream Features"]
  node_music["Music playback<br/>[music_worker.py]"]
  node_alerts["Alerts and rewards<br/>[alerts_service.py]"]
  node_widgets["OBS widgets"]
  node_overlay["Overlay server<br/>[overlay_routes.py]"]
  node_webhooks["Webhook delivery"]
end

subgraph group_infra["Persistence and Delivery"]
  node_database[("SQLite storage")]
  node_musicstorage[("Music records<br/>[music_storage.py]")]
  node_endpoints[("Webhook endpoints")]
end

node_streamer(("Streamer"))
node_obs(("OBS Studio"))

node_streamer -->|"starts"| node_app
node_app -->|"builds"| node_window
node_streamer -.->|"configures"| node_views
node_views -.->|"controls"| node_controllers
node_auth -->|"supplies login"| node_connections
node_connections -.->|"dispatches chat"| node_providers
node_providers -.->|"provides messages"| node_chatpipeline
node_chatpipeline -.->|"routes messages"| node_chatservices
node_chatservices -.->|"filters messages"| node_spam
node_chatservices -->|"requests speech"| node_tts
node_tts -.->|"uses voice"| node_voiceproviders
node_chatservices -.->|"handles requests"| node_music
node_music -.->|"reads and writes"| node_musicstorage
node_controllers -.->|"configures widgets"| node_widgets
node_widgets -->|"triggers events"| node_overlay
node_overlay -->|"serves overlays"| node_obs
node_controllers -.->|"manages alerts"| node_alerts
node_controllers -.->|"manages endpoints"| node_webhooks
node_webhooks -.->|"stores config"| node_endpoints
node_database -->|"provides connections"| node_musicstorage
node_database -.->|"persists features"| node_controllers

click node_app "https://github.com/andro2k/minikick/blob/main/bootstrap/application.py"
click node_window "https://github.com/andro2k/minikick/blob/main/frontend/window/main_window_core.py"
click node_views "https://github.com/andro2k/minikick/tree/main/frontend/views"
click node_controllers "https://github.com/andro2k/minikick/tree/main/backend/controllers"
click node_auth "https://github.com/andro2k/minikick/blob/main/backend/services/auth/auth_service.py"
click node_connections "https://github.com/andro2k/minikick/tree/main/backend/workers"
click node_providers "https://github.com/andro2k/minikick/tree/main/backend/providers/chat"
click node_chatpipeline "https://github.com/andro2k/minikick/blob/main/backend/services/chat/chat_pipeline.py"
click node_chatservices "https://github.com/andro2k/minikick/tree/main/backend/services/chat"
click node_spam "https://github.com/andro2k/minikick/blob/main/backend/services/chat/spam_service.py"
click node_tts "https://github.com/andro2k/minikick/blob/main/backend/services/voice/tts_service.py"
click node_voiceproviders "https://github.com/andro2k/minikick/tree/main/backend/providers/voices"
click node_music "https://github.com/andro2k/minikick/blob/main/backend/workers/music_worker.py"
click node_alerts "https://github.com/andro2k/minikick/blob/main/backend/services/alerts/alerts_service.py"
click node_widgets "https://github.com/andro2k/minikick/blob/main/backend/controllers/widgets_controller.py"
click node_overlay "https://github.com/andro2k/minikick/blob/main/backend/services/overlay/overlay_routes.py"
click node_webhooks "https://github.com/andro2k/minikick/tree/main/backend/services/webhooks"
click node_database "https://github.com/andro2k/minikick/blob/main/backend/database/database_manager.py"
click node_musicstorage "https://github.com/andro2k/minikick/blob/main/backend/database/music_storage.py"
click node_endpoints "https://github.com/andro2k/minikick/blob/main/backend/config/webhook_endpoint_store.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_window,node_views,node_controllers toneBlue
class node_auth,node_connections,node_providers toneAmber
class node_chatpipeline,node_chatservices,node_spam,node_tts,node_voiceproviders toneMint
class node_music,node_alerts,node_widgets,node_overlay,node_webhooks toneRose
class node_database,node_musicstorage,node_endpoints,node_streamer,node_obs toneIndigo
```

## Components

### Desktop Control

- [Application startup](https://github.com/andro2k/minikick/blob/main/bootstrap/application.py): `bootstrap/application.py`
- [Main window](https://github.com/andro2k/minikick/blob/main/frontend/window/main_window_core.py): `frontend/window/main_window_core.py`
- [Control views](https://github.com/andro2k/minikick/tree/main/frontend/views): `frontend/views`
- [Feature controllers](https://github.com/andro2k/minikick/tree/main/backend/controllers): `backend/controllers`

### Platform Connections

- [OAuth services](https://github.com/andro2k/minikick/blob/main/backend/services/auth/auth_service.py): `backend/services/auth/auth_service.py`
- [Connection workers](https://github.com/andro2k/minikick/tree/main/backend/workers): `backend/workers`
- [Chat providers](https://github.com/andro2k/minikick/tree/main/backend/providers/chat): `backend/providers/chat`

### Chat and Voice

- [Message pipeline](https://github.com/andro2k/minikick/blob/main/backend/services/chat/chat_pipeline.py): `backend/services/chat/chat_pipeline.py`
- [Chat and commands](https://github.com/andro2k/minikick/tree/main/backend/services/chat): `backend/services/chat`
- [Anti-spam](https://github.com/andro2k/minikick/blob/main/backend/services/chat/spam_service.py): `backend/services/chat/spam_service.py`
- [Speech synthesis](https://github.com/andro2k/minikick/blob/main/backend/services/voice/tts_service.py): `backend/services/voice/tts_service.py`
- [Voice providers](https://github.com/andro2k/minikick/tree/main/backend/providers/voices): `backend/providers/voices`

### Stream Features

- [Music playback](https://github.com/andro2k/minikick/blob/main/backend/workers/music_worker.py): `backend/workers/music_worker.py`
- [Alerts and rewards](https://github.com/andro2k/minikick/blob/main/backend/services/alerts/alerts_service.py): `backend/services/alerts/alerts_service.py`
- [OBS widgets](https://github.com/andro2k/minikick/blob/main/backend/controllers/widgets_controller.py): `backend/controllers/widgets_controller.py`
- [Overlay server](https://github.com/andro2k/minikick/blob/main/backend/services/overlay/overlay_routes.py): `backend/services/overlay/overlay_routes.py`
- [Webhook delivery](https://github.com/andro2k/minikick/tree/main/backend/services/webhooks): `backend/services/webhooks`

### Persistence and Delivery

- [SQLite storage](https://github.com/andro2k/minikick/blob/main/backend/database/database_manager.py): `backend/database/database_manager.py`
- [Music records](https://github.com/andro2k/minikick/blob/main/backend/database/music_storage.py): `backend/database/music_storage.py`
- [Webhook endpoints](https://github.com/andro2k/minikick/blob/main/backend/config/webhook_endpoint_store.py): `backend/config/webhook_endpoint_store.py`

### Other components

- **Streamer**
- **OBS Studio**

## Connections

- Streamer → Application startup: starts (evidence: `bootstrap/application.py`)
- Application startup → Main window: builds (evidence: `bootstrap/application.py`)
- Streamer → Control views: configures
- Control views → Feature controllers: controls
- OAuth services → Connection workers: supplies login (evidence: `backend/workers/kick_auth_worker.py`)
- Connection workers → Chat providers: dispatches chat
- Chat providers → Message pipeline: provides messages
- Message pipeline → Chat and commands: routes messages
- Chat and commands → Anti-spam: filters messages
- Chat and commands → Speech synthesis: requests speech
- Speech synthesis → Voice providers: uses voice
- Chat and commands → Music playback: handles requests
- Music playback → Music records: reads and writes
- Feature controllers → OBS widgets: configures widgets
- OBS widgets → Overlay server: triggers events (evidence: `backend/controllers/widgets_controller.py`)
- Overlay server → OBS Studio: serves overlays
- Feature controllers → Alerts and rewards: manages alerts
- Feature controllers → Webhook delivery: manages endpoints
- Webhook delivery → Webhook endpoints: stores config
- SQLite storage → Music records: provides connections (evidence: `backend/database/music_storage.py`)
- SQLite storage → Feature controllers: persists features
