Sudhanshu Chaudhary46 downloadsPlay local music files from your vault in the sidebar with synced lyrics, graphic equalizer, and audio bookmarks.
<p>A minimalist, audiophile-grade Material 3 music player embedded directly in the Obsidian sidebar. Features local vault audio playback, dynamic album palette color extraction, synchronized karaoke lyrics, playlist and queue management, and offline-first library indexing with 100% cross-platform parity on Laptop, iPad, and Pixel.</p>
<br>
<a href="https://github.com/sudh29/liber_music/blob/HEAD/images/desktop.png"><img src="https://raw.githubusercontent.com/sudh29/liber_music/HEAD/images/desktop.png" alt="Liber Music Player" width="850"></a>
Liber Music Player v3.0 introduces a comprehensive visual and architectural redesign:
clamp(140px, 28vh, 320px)) that eliminates empty black voids on tall screens while fitting comfortably into sidebars and mobile drawers without scrollbars..music-player-nav-buttons) that prevents Obsidian core mobile drawer styles from forcibly pulling navigation icons over bottom playback controls.clamp(80px, 14vh, 200px)) with responsive fluid typography and word-by-word karaoke synchronization.Liber Music Player is engineered and visually calibrated for complete cross-platform parity across desktop, tablet, and mobile:
Liber Music Player: Open Liber Music Player.Music/ or Media/Audio), or leave empty to scan the entire vault.sudh29/liber_music (or https://github.com/sudh29/liber_music).main.js, manifest.json, and styles.css from the Latest Release..obsidian/plugins/ and create a folder named liber-music-player.<YourVault>/.obsidian/plugins/liber-music-player/.31Hz, 62Hz, 125Hz, 250Hz, 500Hz, 1kHz, 2kHz, 4kHz, 8kHz, 16kHz).-12dB to +12dB preamp volume slider with dynamic headroom protection.outgoingAudioElement and incomingAudioElement), blending acoustic energy along equal-power curves (cos(t * π/2) / sin(t * π/2)) with zero volume drops or clicks.REPLAYGAIN_TRACK_GAIN and REPLAYGAIN_ALBUM_GAIN tags across ID3, Vorbis, and MP4 containers.sliders-horizontal) directly in the player action bar.Open 10-Band Equalizer..ogg and .opus audio buffers into 16-bit PCM RIFF WAV Blob URLs in real time.HTMLAudioElement event binding, media keys, lock screen widgets, equalizer filters, and crossfading without requiring users to convert or re-encode audio..wasm file dependencies.enableWasmVorbisDecoder) under audio settings with graceful native fallbacks.High Rated, Classics, Epics & Jams, New Additions).⚡ Smart badges in the sidebar.📁 Rock, 📁 Jazz, 📁 Ambient) as native playlists..lrc lyrics editor with direct vault write-back.file-pen), tracklist hover action, or Obsidian command palette (Edit Track Metadata).--player-dynamic-accent, --player-dynamic-secondary, --player-dynamic-glow, --player-karaoke-highlight, --player-text-on-accent) with smooth 600ms transitions.AnalyserNode (fftSize = 64) post-EQ frequency monitoring.requestAnimationFrame and direct DOM ref mutation to eliminate React re-render overhead.activity) directly in the turntable action bar.sparkles) and persistent settings dropdown..mp3, .wav, .ogg, .m4a, .flac, and .aac audio files directly from your Obsidian vault.0.5x to 2.0x..lrc files in the vault.<mm:ss.xx>) for karaoke sing-along experiences.cover.jpg / cover.png in the track's folder (case-insensitive).song.mp3 → song.jpg).dist/main.js is ~761 KB (well under the strict 2.0 MB ceiling), containing zero dead code and zero external network dependencies.dist/styles.css is ~93 KB with inlined high-DPI turntable assets, completely self-contained.scripts/check-bundle-size.mjs) guards against asset regressions during build.release.yml) triggers on tag pushes and release publications, compiling production bundles, verifying coverage, and attaching release assets (main.js, manifest.json, styles.css) with SLSA provenance attestations.lint.yml) validating Node.js 20.x & 22.x on every push and pull request.Embed lightweight, self-contained music players directly inside notes using music codeblocks. Supports start/end timestamps, custom lyrics display, and compact or card layouts:
```music
track: "Music/Classical/Chopin - Nocturne Op. 9.mp3"
start: "01:23"
end: "03:45"
showLyrics: true
compact: false
autoplay: false
```
🔗).[01:23 — "Lyric text"](obsidian://music-player?track=...&t=83).## 🎧 Music Log).<configDir>/plugins/liber-music-player/history.json.Settings → Hotkeys)Control playback from anywhere in Obsidian without focusing the sidebar leaf:
When the player view is active, the following hotkeys are supported:
| Key Binding | Action |
|---|---|
| Space | Toggle Play / Pause |
| ↑ | Previous Track |
| ↓ | Next Track |
| ← | Rewind 5 seconds |
| → | Fast-forward 5 seconds |
| Ctrl + ← | Rewind 15 seconds |
| Ctrl + → | Fast-forward 15 seconds |
Liber Music Player supports standard timestamped LRC as well as word-by-word syllable karaoke timestamps.
[00:12.50]Line 1 lyrics text
[00:15.80]Line 2 lyrics text
[00:20.10]Line 3 lyrics text
Word timestamps are enclosed within <mm:ss.xx> tags following the line timestamp:
[02:23.43]<02:23.43>Here <02:23.65>comes <02:23.83>the <02:24.18>sun <02:24.71>and <02:24.90>it's <02:25.63>alright
[02:26.00]<02:26.00>Little <02:26.28>darling <02:26.68>it's <02:27.02>been <02:27.40>a <02:27.83>long <02:28.68>winter
Music/ or Media/Audio) to scan. Leaving this empty scans the entire vault.Vault.process mutations.## 🎧 Music Log).Track Gain (matches loudness per song), Album Gain (preserves dynamics across an album release), or Off.0s (strict gapless pre-buffering) to 10s (equal-power crossfade).Flat, Harman Target, Bass Boost, etc.).Brushed Obsidian, Vintage Walnut, or Cyberpunk Acrylic).Fork Lineage: Liber Music Player was forked from
TracingOrigins/obsidian-music-player-plugin(v1.3.8).
While the original plugin offered a foundational sidebar vinyl player, Liber Music Player has undergone an end-to-end architectural overhaul, elevating it from a simple playback widget into a production-ready, audiophile-grade Personal Knowledge Management (PKM) audio engine.
| Feature / Capability | Upstream (TracingOrigins) |
Liber Music Player (v3.0.0) |
Architectural & User Impact |
|---|---|---|---|
| Automated Testing & CI | ❌ 0 tests (0% coverage) | ✅ 691 tests across 82 suites (98.32% lines, 85.37% branches) | Strict quality regression gates; every parser, decoder, and state hook is verified in CI. |
| iOS / iPadOS OGG Playback | ❌ Fails (Apple WebKit cannot decode OGG/Opus) | ✅ 100% Codec Parity via inlined WASM Vorbis | Bypasses WebKit limitations; decodes .ogg & .opus to WAV Blob URLs on iOS/iPadOS without user re-encoding. |
| Audio DSP & Equalizer | ❌ None (raw browser output only) | ✅ 10-Band Biquad EQ & Dual-Pipeline Crossfading | ISO octave bands (31Hz–16kHz), ±12dB preamp, 7 tuned presets, and true simultaneous dual-stream sinusoidal crossfading. |
| Markdown Note Integration | ❌ None (sidebar only) | ✅ music Codeblock Player Embeds |
Embed interactive mini-players directly inside Obsidian markdown notes with custom start/end timestamps and lyrics. |
| Lyric Deep-Linking | ❌ None | ✅ 1-Click Timestamp URI Citation Links | Click 🔗 on any lyric line to copy obsidian://music-player?track=...&t=... that jumps to exact moments across the vault. |
| Daily Notes Scrobbler | ❌ None | ✅ Automated Listening Journaling | Logs completed listening sessions (>70%) to active Daily Notes with an offline audit ledger (history.json). |
| Smart Playlists | ❌ None (static lists only) | ✅ Dynamic Rule-Based Smart Playlists | Composable boolean rules (rating, year, genre, duration, title, etc.), AND/OR logic, instant preview, and 1-click presets. |
| Vault Folder Sync | ❌ None | ✅ Automatic Folder-to-Playlist Mirroring | Maps vault directories (e.g. 📁 Jazz, 📁 Classical) directly into playlists with configurable nesting (1–3 levels). |
| In-App Tag & LRC Editor | ❌ None (metadata read-only) | ✅ Full In-App Metadata & Lyric Editor | Edit title, artist, album, year, genre, star rating, and companion .lrc text files directly inside Obsidian with vault write-back. |
External Companion .lrc |
❌ Ignored (embedded tags only) | ✅ Full Companion .lrc Auto-Discovery |
Automatically finds and synchronizes standalone .lrc files located alongside audio files in the vault. |
| Visualizer & Theming | ❌ Static CSS, 1 fixed vinyl look | ✅ Real-Time Spectrum Visualizer & Dynamic Palette | 16-bar Web Audio spectrum monitor; offscreen canvas quantizes album art colors into CSS variables; 3 turntable styles. |
| Mobile System Integration | ❌ None (stops on lock) | ✅ MediaSession API & Screen Wake Lock | Lock screen player widget, Android notification controls, Bluetooth headphone keys, and screen keep-awake toggle. |
| Mobile Memory Safety | ⚠️ High RAM (reads entire 50MB files) | ✅ 512KB Header-Only Chunking & Streaming | Streamed header reads eliminate mobile out-of-memory crashes; direct vault URL streaming for large tracks. |
| Shuffle Queue Correctness | ⚠️ Flawed (repeats songs, button erasure) | ✅ True Non-Repeating Fisher-Yates Shuffle | Dedicated ShuffleManager guarantees 100% of tracks play before recycling; preserved icon rendering. |
| Loudness Normalization | ❌ None | ✅ ReplayGain (Track & Album Modes) & EBU R128 | Automatic volume normalization preserving either per-song target loudness or inter-track album dynamics. |
| Build & Toolchain | ⚠️ Basic legacy esbuild | ✅ Vite+ (vp) & Rust Oxc Compiler / Linter |
Rust-powered transforms (oxc-transform-react), 0 lint warnings across 184 files, and automated bundle size audits. |
| Release & Distribution | ⚠️ Manual file drops | ✅ Automated GitHub Actions & BRAT Support | Automated tagged releases with SLSA provenance attestations and 1-click beta updates via BRAT. |
| Localization & Repo Hygiene | ⚠️ Chinese/English mix, Python .gitignore |
✅ Clean English Architecture & Strict Hygiene | 100% localized English docs/codebase, strict Node/Obsidian .gitignore, and zero untracked binaries in repository. |
Beyond new functional capabilities, Liber Music Player features deep architectural optimizations targeting render latency, disk I/O, battery life, and memory management.
| Performance Metric / Operation | Upstream (TracingOrigins) |
Liber Music Player (v3.0.0) |
Measured Speedup & Efficiency |
|---|---|---|---|
| Incremental Vault Rescan (2,000 tracks) | ~18.5 seconds (full sequential binary disk reads) | < 40 ms (mtime + size cache verification) |
🚀 ~450x faster (0 redundant disk reads) |
| 5,000-Track List Render / Mount Time | ~1,200 ms initial mount lag & dropped frames | < 16 ms instant frame budget (virtual windowing) | 🚀 ~75x faster (rock-solid 60fps scrolling) |
| Active DOM Elements (5,000-track library) | 5,000+ DOM nodes mounted simultaneously | ~25–35 visible rows + overscan buffer | 📉 99.5% fewer DOM elements |
| Idle / Paused CPU Utilization | ~3%–5% CPU (unthrottled 60fps rAF loop) | 0.0% CPU (rAF automatically halts when paused) | 🔋 ~100% idle CPU reduction (battery preservation) |
| Background / Minimized App CPU Drain | Continuous rendering & Web Audio sampling | Pauses visualizer & throttles background polling | 🔋 85%+ reduction in background energy consumption |
| Mobile Audio Header I/O Payload | Reads entire 50MB audio files into RAM | 512KB header-only chunk streaming | 📉 99% reduction in I/O & peak RAM (zero OOM crashes) |
| In-Memory Cache Growth | Unbounded maps (indefinite RAM accumulation) | Bounded LRUMap (capped at 50 entries) |
🛡️ Zero memory leaks over days of continuous listening |
| Distribution Stylesheet Size | 538.72 KB (uncompressed base64 rasters) | 85.92 KB (optimized WebP vector assets) | 📉 84.1% smaller CSS footprint (6.3x lighter) |
| Lint & Static Analysis Execution | No linter / legacy slow tooling | ~340 ms via Vite+ & Rust Oxc (179 files / 12 threads) | ⚡ Instantaneous developer feedback |
file.stat.mtime and file.stat.size, verifying 2,000 tracks in under 40 milliseconds with zero redundant disk I/O.requestAnimationFrame loop on the root component at all times. Liber decouples the render loop, halting all animation frames the instant music is paused, saving laptop and mobile battery.# Clone the repository
git clone https://github.com/sudh29/liber_music.git
cd liber_music
# Install dependencies
npm install
# (Optional) Configure vault path for automatic local dev hot-reload deployment:
echo "VAULT_PATH=/path/to/your/obsidian/vault" > .env
# Start development build with live watch and vault deployment
npm run dev
# Run automated tests (via Vite+)
npm test
# Run Rust-powered linter (via Vite+ & Oxlint)
npm run lint
# Production bundle & typecheck
npm run build
vp) for next-generation developer toolingoxc-transform-react & vp lint) for ultra-fast Rust-based parsing, transforms, and lintingvp test run) with 691 passing unit and integration tests across 82 test suites (98.32% line coverage)music-metadata (v12.x browser build)Contributions, feature suggestions, and bug reports are warmly welcome!
Liber Music Player is free and open-source software built with love for the Obsidian community. If this plugin enhances your daily workflow and listening enjoyment, consider supporting its ongoing maintenance and new features:
This project is licensed under the MIT License.