<?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: Ananya Sharma</title>
    <description>The latest articles on DEV Community by Ananya Sharma (@ananyasharma_14).</description>
    <link>https://dev.to/ananyasharma_14</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%2F4027539%2F0c4c8e41-e837-4017-8b18-19428b96f95a.jpg</url>
      <title>DEV Community: Ananya Sharma</title>
      <link>https://dev.to/ananyasharma_14</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ananyasharma_14"/>
    <language>en</language>
    <item>
      <title>How We Built DJ ROOTS: An AI-Powered Music Recommendation Platform</title>
      <dc:creator>Ananya Sharma</dc:creator>
      <pubDate>Mon, 13 Jul 2026 18:15:42 +0000</pubDate>
      <link>https://dev.to/ananyasharma_14/how-we-built-dj-roots-an-ai-powered-music-recommendation-platform-1o70</link>
      <guid>https://dev.to/ananyasharma_14/how-we-built-dj-roots-an-ai-powered-music-recommendation-platform-1o70</guid>
      <description>&lt;h1&gt;
  
  
  🎧 DJ ROOTS – Building a Real-Time Collaborative Music Platform with Gesture Control
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Crowd Vibes. You Control.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Music is one of the best ways to bring people together. However, during parties, college events, hostel gatherings, or study sessions, one common problem always exists—&lt;strong&gt;who gets to control the music?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Usually, one person owns the playlist while everyone else keeps requesting songs. This often creates confusion, interruptions, and arguments over what should play next.&lt;/p&gt;

&lt;p&gt;Our team wanted to solve this problem by creating a platform where &lt;strong&gt;everyone in the room gets an equal voice.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Welcome to &lt;strong&gt;DJ ROOTS&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  🚨 The Problem
&lt;/h1&gt;

&lt;p&gt;Traditional music streaming at group events has several limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only one person controls the playlist.&lt;/li&gt;
&lt;li&gt;Song requests are ignored or forgotten.&lt;/li&gt;
&lt;li&gt;No real-time collaboration.&lt;/li&gt;
&lt;li&gt;Existing queue systems don't truly represent the crowd's choice.&lt;/li&gt;
&lt;li&gt;There is no simple browser-based solution that works instantly without downloading an app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We wanted to build something that makes music &lt;strong&gt;democratic&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  💡 Our Solution
&lt;/h1&gt;

&lt;p&gt;DJ ROOTS is a &lt;strong&gt;real-time collaborative DJ platform&lt;/strong&gt; where anyone can join a room using a simple room code.&lt;/p&gt;

&lt;p&gt;Participants can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create or join a music room&lt;/li&gt;
&lt;li&gt;Add songs using YouTube&lt;/li&gt;
&lt;li&gt;Upvote or downvote tracks&lt;/li&gt;
&lt;li&gt;Automatically reorder the queue based on crowd votes&lt;/li&gt;
&lt;li&gt;Watch every change happen instantly across all connected devices&lt;/li&gt;
&lt;li&gt;Let the host control playback using webcam hand gestures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of one person deciding the playlist, &lt;strong&gt;the entire crowd decides what plays next.&lt;/strong&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  🛠 Tech Stack
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Frontend
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;React 19&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;li&gt;Tailwind CSS v4&lt;/li&gt;
&lt;li&gt;Framer Motion&lt;/li&gt;
&lt;li&gt;Three.js&lt;/li&gt;
&lt;li&gt;GSAP&lt;/li&gt;
&lt;li&gt;OGL&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Backend
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;li&gt;Express.js&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Database &amp;amp; Authentication
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Supabase&lt;/li&gt;
&lt;li&gt;PostgreSQL&lt;/li&gt;
&lt;li&gt;Supabase Authentication&lt;/li&gt;
&lt;li&gt;Supabase Realtime&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Computer Vision
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Google MediaPipe Gesture Recognizer&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Audio Pipeline
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;yt-dlp&lt;/li&gt;
&lt;li&gt;youtube-dl-exec&lt;/li&gt;
&lt;li&gt;HTML5 Audio API&lt;/li&gt;
&lt;li&gt;Web Audio API&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Deployment
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Vercel (Frontend)&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  ⚙️ How It Works
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Users create or join a room using a unique room code.&lt;/li&gt;
&lt;li&gt;Songs are added using a YouTube link or search.&lt;/li&gt;
&lt;li&gt;Song metadata is automatically fetched.&lt;/li&gt;
&lt;li&gt;Every participant can vote on songs.&lt;/li&gt;
&lt;li&gt;Votes instantly reorder the queue using Supabase Realtime.&lt;/li&gt;
&lt;li&gt;The host starts playback.&lt;/li&gt;
&lt;li&gt;Audio is extracted through our backend using &lt;strong&gt;yt-dlp&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Every connected device stays synchronized.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything happens in real time without refreshing the page.&lt;/p&gt;




&lt;h1&gt;
  
  
  ✨ Key Features
&lt;/h1&gt;

&lt;h2&gt;
  
  
  🎵 Collaborative Queue
&lt;/h2&gt;

&lt;p&gt;Every participant has equal voting power.&lt;/p&gt;

&lt;p&gt;The queue automatically rearranges itself according to the most popular songs.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ Real-Time Synchronization
&lt;/h2&gt;

&lt;p&gt;Using Supabase Realtime, every vote, new song, and playback update is instantly visible across all connected devices.&lt;/p&gt;

&lt;p&gt;No polling.&lt;/p&gt;

&lt;p&gt;No manual refresh.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤚 Gesture-Controlled DJ Mode
&lt;/h2&gt;

&lt;p&gt;One of the most exciting features of DJ ROOTS is touch-free control.&lt;/p&gt;

&lt;p&gt;Using Google MediaPipe, the host can control playback through hand gestures.&lt;/p&gt;

&lt;p&gt;Supported gestures include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👍 Thumbs Up → Upvote&lt;/li&gt;
&lt;li&gt;👎 Thumbs Down → Downvote&lt;/li&gt;
&lt;li&gt;🤏 Pinch → Volume Control&lt;/li&gt;
&lt;li&gt;👋 Swipe → Skip Songs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The webcam processing happens locally, so video never leaves the user's device.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎧 Advanced Audio Streaming
&lt;/h2&gt;

&lt;p&gt;Instead of embedding YouTube's player, our backend extracts the audio stream using &lt;strong&gt;yt-dlp&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This allows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better playback control&lt;/li&gt;
&lt;li&gt;Spectrum visualizations&lt;/li&gt;
&lt;li&gt;Volume adjustments&lt;/li&gt;
&lt;li&gt;Lower latency&lt;/li&gt;
&lt;li&gt;Full synchronization&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🧩 Challenges We Faced
&lt;/h1&gt;

&lt;p&gt;Every project teaches something, and DJ ROOTS was no exception.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. YouTube Bot Detection
&lt;/h3&gt;

&lt;p&gt;The biggest challenge was extracting audio reliably.&lt;/p&gt;

&lt;p&gt;Cloud-hosted servers often get blocked due to YouTube's bot detection mechanisms.&lt;/p&gt;

&lt;p&gt;We solved this by designing a backend that can run from a trusted local or residential network for demonstrations and testing.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Real-Time Queue Synchronization
&lt;/h3&gt;

&lt;p&gt;When multiple users vote simultaneously, maintaining a consistent queue order becomes difficult.&lt;/p&gt;

&lt;p&gt;We solved this by storing vote counts in PostgreSQL and using database triggers to automatically recalculate rankings.&lt;/p&gt;




&lt;h3&gt;
  
  
  3. Browser Autoplay Restrictions
&lt;/h3&gt;

&lt;p&gt;Modern browsers prevent automatic audio playback.&lt;/p&gt;

&lt;p&gt;Instead of treating this as a limitation, we created an &lt;strong&gt;"Enter DJ ROOTS"&lt;/strong&gt; interaction that unlocks audio playback while improving the user experience.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Smooth Gesture Recognition
&lt;/h3&gt;

&lt;p&gt;Making webcam gestures responsive without affecting application performance required careful optimization.&lt;/p&gt;

&lt;p&gt;Using MediaPipe allowed us to process gestures directly in the browser with low latency.&lt;/p&gt;




&lt;h1&gt;
  
  
  👥 Team Collaboration
&lt;/h1&gt;

&lt;p&gt;This project was built through close collaboration among our team members.&lt;/p&gt;

&lt;p&gt;We divided responsibilities across frontend development, backend implementation, real-time synchronization, UI design, and overall integration to ensure that every component worked seamlessly together.&lt;/p&gt;




&lt;h1&gt;
  
  
  🚀 Future Improvements
&lt;/h1&gt;

&lt;p&gt;We have several exciting ideas planned for future releases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hype Mode with immersive visuals&lt;/li&gt;
&lt;li&gt;AR-inspired DJ console&lt;/li&gt;
&lt;li&gt;Better cloud deployment strategy&lt;/li&gt;
&lt;li&gt;Stronger room permissions&lt;/li&gt;
&lt;li&gt;Mobile applications&lt;/li&gt;
&lt;li&gt;AI-powered song recommendations&lt;/li&gt;
&lt;li&gt;Multi-host collaboration&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  📚 What We Learned
&lt;/h1&gt;

&lt;p&gt;Building DJ ROOTS helped us gain practical experience with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Real-time system design&lt;/li&gt;
&lt;li&gt;React architecture&lt;/li&gt;
&lt;li&gt;Backend API development&lt;/li&gt;
&lt;li&gt;Database design&lt;/li&gt;
&lt;li&gt;Authentication&lt;/li&gt;
&lt;li&gt;WebSockets&lt;/li&gt;
&lt;li&gt;Computer Vision&lt;/li&gt;
&lt;li&gt;Audio streaming&lt;/li&gt;
&lt;li&gt;Team collaboration&lt;/li&gt;
&lt;li&gt;Production-level debugging&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This project showed us that building a polished real-time application involves much more than writing code—it requires solving real engineering challenges.&lt;/p&gt;




&lt;h1&gt;
  
  
  🎯 Final Thoughts
&lt;/h1&gt;

&lt;p&gt;DJ ROOTS started with a simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Why should one person control the music when everyone is listening?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Our goal was to create a platform where every participant contributes to the playlist and the crowd decides the vibe together.&lt;/p&gt;

&lt;p&gt;While there are still many exciting features ahead, we're proud of what we've built and excited to continue improving it.&lt;/p&gt;

&lt;p&gt;If you have suggestions, feedback, or would like to collaborate, we'd love to hear from you!&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🎧❤️&lt;/p&gt;

&lt;h1&gt;
  
  
  webdev #react #node #supabase #javascript #opensource #fullstack #computervision #music #buildinpublic
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>react</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
