Vleer is a cross-platform desktop music player and local library manager written in Rust, positioned as a free, subscription-free alternative to commercial music streaming apps. The application scans a user's local music directories, extracts metadata (tags, cover art, embedded lyrics) using the lofty crate, stores everything in a SQLite database, and provides a rich GPUI-based interface for browsing albums, artists, playlists, and genres, with playback powered by a forked rodio audio backend. Architecture is a monolith: a single binary with a GPUI main window, backend services (scanner, database, telemetry, updater), and platform-specific media controllers (MPRIS on Linux, SMTC on Windows, Now Playing on macOS). Key data flows move from local files into the SQLite repository (with sophisticated dedup via content-based fingerprinting, spelling-vote normalization for artist/album names, and file relinking that preserves favorites when files move), then into in-memory search indexes and UI views; playback routes audio through an equalizer and FFT visualizer before output. External integrations include LRCLIB for synced lyrics, Last.fm for scrobbling, Discord Rich Presence, and the vleer.app OMM metadata/update/telemetry endpoints. From a reusability standpoint, the most valuable components are the audio fingerprinting module (src/data/fingerprint.rs), which does tag-independent content hashing across FLAC, OGG, MP3, WAV, AIFF, and MP4 containers with extensive tests, and the DSP module (src/media/equalizer.rs) implementing peaking biquad filters. The SQLite repository layer (src/data/db/repo.rs) demonstrates strong patterns for batch upserts, incremental relinking, and prepared-statement caching, though it is tightly coupled to the app's schema. The codebase shows professional engineering discipline: pinned Rust toolchain, CI enforcing fmt/clippy/audit/tests, nightly release automation with GPG-signed updates, and benchmark tests for database contention. Notable weaknesses include heavy duplication between albums/playlists views, stub menu actions, several very dense modules with globally raised cognitive-complexity thresholds, the use of forked dependencies (gpui-ce, rodio fork) that may drift, and a single ignored Cargo audit advisory. Overall this is a solid, well-structured early-stage application (v0.1.0) with genuine craftsmanship in specific modules, though its tight global-state coupling and early feature-completeness prevent it from being exceptional.
spank is a macOS CLI tool that detects physical hits/slaps on Apple Silicon MacBooks via the accelerometer and plays audio responses. It requires sudo for IOKit HID access to the accelerometer and is built as a single-file Go application. The tool reads raw accelerometer data, runs vibration detection algorithms (STA/LTA, CUSUM, kurtosis, peak/MAD), and triggers audio playback when impacts exceed a configurable amplitude threshold. It offers multiple modes: pain (random 'ow!' sounds), sexy (escalating responses based on slap frequency), halo (Halo death sounds), lizard (similar to sexy but with lizard sounds), and custom (user-specified MP3 directory). Audio playback uses the beep package with resampling to a fixed sample rate, optional volume scaling based on impact force, and adjustable playback speed. The application uses Cobra for CLI parsing and Fang for command execution, with audio assets embedded via go:embed. Key reusable components include the audio resampling function that handles sample rate conversion and speed adjustment, and the amplitude-to-volume mapping function that applies a logarithmic curve for natural volume scaling.