How sushant-demn/sustify works
Sustify is a local desktop audio player: the user opens the native WebView UI, selects audio, and the C++ backend adds tracks to a queue and starts playback; UI-bound calls expose playback and queue controls. The backend separates WebView startup and bindings, file selection, queue/metadata handling, and audio playback. The README also documents ID3 metadata extraction. The GUI script and large miniaudio header were not excerpted, so GUI-to-bridge wiring is shown as unverified; other links reflect shown calls or documented capabilities.
Main entry points: bindings.cpp WebView Bindings · window.cpp WebView Host · index.html UI Document · audio.cpp Audio Engine
Components 15
Web UI
- UI Document
gui/index.html - UI Controls
gui/index.js - UI Styling
gui/index.css
Desktop Bridge
- WebView Host
src/window.cpp - WebView Bindings
src/bindings.cpp
Track Library
- File Selection
src/file_system.cpp - File Dialogs
include/portable-file-dialogs.h - Track Queue
src/queue.cpp - Queue API
headers/queue.h
Audio Playback
- Audio Engine
src/audio.cpp - Audio API
headers/audio.h - Miniaudio Runtime
include/miniaudio.h
Other components
- Listener
- Native WebView
- TagLib
Connections 15
- Listener → UI Document: uses
README.md - WebView Host → UI Document: loads
src/window.cpp - WebView Host → Native WebView: creates and runs
src/window.cpp - WebView Host → WebView Bindings: registers
src/window.cpp - WebView Host → Audio Engine: initializes
src/window.cpp - UI Controls → WebView Bindings: invokes bridge
- WebView Bindings → File Selection: selects file
src/bindings.cpp - File Selection → File Dialogs: opens dialog
src/file_system.cpp - WebView Bindings → Track Queue: dispatches controls
src/bindings.cpp - WebView Bindings → Audio Engine: controls playback
src/bindings.cpp - Track Queue → Audio Engine: starts and seeks
src/queue.cpp - Track Queue → TagLib: reads metadata
README.md - Audio Engine → Miniaudio Runtime: uses engine
src/audio.cpp - UI Document → UI Controls: loads
- UI Document → UI Styling: styles with