<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daivik Dudeja</title>
    <description>The latest articles on DEV Community by Daivik Dudeja (@daivikopx).</description>
    <link>https://dev.to/daivikopx</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4266976%2F3710447a-29c4-4e54-89e9-f8b247a31cd2.png</url>
      <title>DEV Community: Daivik Dudeja</title>
      <link>https://dev.to/daivikopx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daivikopx"/>
    <language>en</language>
    <item>
      <title>I Built an Offline-First Music Player in React 19 &amp; TypeScript (No Subscriptions, Zero Telemetry)</title>
      <dc:creator>Daivik Dudeja</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:12:19 +0000</pubDate>
      <link>https://dev.to/daivikopx/i-built-an-offline-first-music-player-in-react-19-typescript-no-subscriptions-zero-telemetry-4o86</link>
      <guid>https://dev.to/daivikopx/i-built-an-offline-first-music-player-in-react-19-typescript-no-subscriptions-zero-telemetry-4o86</guid>
      <description>&lt;p&gt;Streaming services are great, until you just want to listen to your personal collection of lossless FLACs, audio stems, or offline music without:&lt;/p&gt;

&lt;p&gt;Monthly subscription paywalls&lt;br&gt;
Unwanted podcast recommendations crowding your feed&lt;br&gt;
Mandatory internet connectivity&lt;br&gt;
Telemetry, analytics beacons, and tracking scripts&lt;/p&gt;

&lt;p&gt;Over the past few weeks, I built VYBE — an open-source, studio-grade, offline-first music player crafted with React 19, TypeScript, and the Web Audio API, running across Windows (Electron), Android (Capacitor), and the Web.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of the architecture, audio DSP engineering, and offline persistence challenges under the hood.&lt;/p&gt;

&lt;p&gt;🏗️ Architecture &amp;amp; Tech Stack&lt;br&gt;
Core Framework: React 19 + TypeScript 5.7&lt;br&gt;
Styling &amp;amp; Motion: Tailwind CSS + custom GPU glassmorphism&lt;br&gt;
Audio DSP Graph: Web Audio API (AudioContext, BiquadFilterNode, GainNode, AnalyserNode)&lt;br&gt;
Metadata Engine: Multi-threaded ID3 &amp;amp; Vorbis tag parsing via music-metadata&lt;br&gt;
Offline Storage: IndexedDB (raw audio blobs &amp;amp; track cache) + LocalStorage (app state)&lt;br&gt;
Cross-Platform: Electron 45 (Windows desktop app) &amp;amp; Capacitor 8 (Android)&lt;br&gt;
🎧 Real-Time 6-Band Parametric Equalizer&lt;/p&gt;

&lt;p&gt;Most web audio tutorials stop at the basic  tag. But building an audiophile player requires full control of the raw audio pipeline.&lt;/p&gt;

&lt;p&gt;Using Web Audio API's BiquadFilterNode, VYBE routes audio through a serialized DSP node graph:&lt;/p&gt;

&lt;p&gt;The Serialized DSP Audio Graph:&lt;/p&gt;

&lt;p&gt;Audio Source Element&lt;br&gt;
⬇️&lt;br&gt;
6-Band Biquad Filters (60Hz, 150Hz, 400Hz, 1kHz, 2.4kHz, 15kHz)&lt;br&gt;
⬇️&lt;br&gt;
Stereo Panner &amp;amp; Channel Balance Node&lt;br&gt;
⬇️&lt;br&gt;
Dual Gain Crossfader &amp;amp; Dynamic Peak Normalizer&lt;br&gt;
⬇️&lt;br&gt;
AnalyserNode (Real-Time Visualizer Frequency Data)&lt;br&gt;
⬇️&lt;br&gt;
AudioContext Destination (Speakers / Headphones)&lt;br&gt;
The 6 Frequency Bands:&lt;/p&gt;

&lt;p&gt;Each band provides discrete gain controls ranging from -12dB to +12dB:&lt;/p&gt;

&lt;p&gt;60 Hz (Low shelf): Sub-bass kick &amp;amp; rumble&lt;br&gt;
150 Hz (Peaking): Bassline warmth &amp;amp; punch&lt;br&gt;
400 Hz (Peaking): Mid-range body &amp;amp; instruments&lt;br&gt;
1.0 kHz (Peaking): Vocal presence &amp;amp; articulation&lt;br&gt;
2.4 kHz (Peaking): Attack &amp;amp; percussion clarity&lt;br&gt;
15.0 kHz (High shelf): High-end air &amp;amp; shimmer&lt;br&gt;
💾 Solving the "Offline in Browser" Problem (IndexedDB)&lt;/p&gt;

&lt;p&gt;Running in the browser is straightforward; persisting hundreds of megabytes of local audio files across tab refreshes with zero cloud uploads is not.&lt;/p&gt;

&lt;p&gt;When a user imports an audio folder into the browser player:&lt;/p&gt;

&lt;p&gt;music-metadata parses artist, album, track numbers, duration, and embedded APIC cover art on client threads.&lt;br&gt;
The raw file buffer is stored as a binary blob inside an IndexedDB object store (audio_blobs).&lt;br&gt;
The metadata structure is indexed inside tracks_meta.&lt;br&gt;
On subsequent page visits, the app hydrates audio tracks using object URLs (URL.createObjectURL(blob)), letting you play your entire library completely offline in airplane mode.&lt;br&gt;
🎨 Visuals: Frosted Acrylic &amp;amp; Adaptive Density Zoom&lt;/p&gt;

&lt;p&gt;A music player should be beautiful to look at on a secondary monitor while coding:&lt;/p&gt;

&lt;p&gt;Transparent Frosted Theme: Real-time Gaussian blurs on the active album artwork combined with CSS backdrop filters.&lt;br&gt;
Adaptive Density Zoom: Supports discrete UI scaling from 70% to 130% (Dense, Default, Spacious) mapped to Ctrl + and Ctrl - keyboard shortcuts.&lt;br&gt;
Pure AMOLED Black: A zero-pixel-light mode for OLED displays and maximum battery savings.&lt;br&gt;
Synced LRC Lyrics: Real-time karaoke-style synchronous lyrics with auto-scroll and manual time-offset fine-tuning (±0.5s).&lt;br&gt;
🚀 Live Demo &amp;amp; Open Source&lt;/p&gt;

&lt;p&gt;VYBE is 100% free, open-source, and offline.&lt;/p&gt;

&lt;p&gt;🌐 Live Web Player: &lt;a href="https://daivikopx.github.io/VYBE-Music-Player/" rel="noopener noreferrer"&gt;https://daivikopx.github.io/VYBE-Music-Player/&lt;/a&gt;&lt;br&gt;
💻 GitHub Repository: &lt;a href="https://github.com/DaivikOPX/VYBE-Music-Player" rel="noopener noreferrer"&gt;https://github.com/DaivikOPX/VYBE-Music-Player&lt;/a&gt;&lt;br&gt;
💾 Windows (.exe) &amp;amp; Android (.apk): Available in GitHub Releases&lt;/p&gt;

&lt;p&gt;I would love to hear your feedback on the audio pipeline, performance, or ideas for features you'd like to see next! If you enjoy the project, dropping a ⭐ on the repository means a lot!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>showdev</category>
      <category>seo</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
