# How it works
> Part of the [MFE Player](../README.md) manual.
How the TUI, daemon, plugins and mpv fit together.
---
## π§± How it works
```text
ββββββββββββββββ events ββββββββββββββββ
β ratatui β βββββββββββββββΆ β app state β
β TUI / daemonβ β queue Β· radioβ
ββββββββ¬ββββββββ ββββββββ¬ββββββββ
β stdin / keys β JSON over Unix socket
βΌ βΌ
ββββββββββββββββ ββββββββββββββββ
β plugin workerβ ββ metadata βββΆ β mpv β
β python3 β ββ stream URL ββΆβ audio engine β
ββββββββββββββββ ββββββββββββββββ
```
- Rust for the UI, state machine and IPC.
- `mpv` for actual audio: gapless, prefetch, filters, MPRIS-friendly.
- Python plugins for anything that touches the internet, because providers change faster than compiled binaries.
- One shared socket; a second TUI gets a private player instead of hijacking your music.
---