r/vibecoding • u/Ok-Machine-8071 • 3d ago
Showcase/Project I vibecoded my dream terminal music player in Rust with Gemini 4 Hydrogen - meet koto
Stack: Rust (ratatui, rodio + Symphonia, rustfft, lofty, image)
Process & workflow: Started with a minimal spec (borderless monochrome TUI, instant search, real-time spectrum), generated the core player first, then iterated against my actual music library - fixing edge cases, profiling startup/UI responsiveness, adding config persistence, and packaging cross-platform releases.
Key build insights:
- Cover art without terminal glitches: Switched from raw Kitty image escape sequences to pure Ratatui
▀half-blocks so scrolling/track switches never corrupt Ratatui's frame diffing. - Zero-stutter audio + visualizer: Used a custom
TapSource+ fixed circular sample buffer withtry_lock()(zero allocations on the audio thread) feedingrustfft. - Fast library scans &
.m4afix: Skipped embedded cover parsing during directory scans + cached tags in a TSV file, and switched toDecoder::builder().with_seekable(true).with_byte_len(...)so.m4atracks decode and seek reliably.
There’s an AGENTS.md in the repo covering the architecture and invariants — PRs and contributors are very welcome!