How onk2r/moodify-music-by-mood works
Project type and purpose
• Type: Single-page static web application (no custom backend).
• Purpose: Let users select a “mood” and instantly see an embedded Spotify playlist plus a link to open it in Spotify.
File structure
• Top level has exactly four files:
• index.html – main HTML page and structural skeleton
• style.css – styling for layout, themes, transitions
• script.js – DOM logic, event handling, Spotify Embed API logic
• README.md – documentation
• No “backend,” no database—pure frontend + external API.
README for additional insights
• Features: mood buttons, embedded Spotify player, dynamic theming, external link.
• Tech stack: HTML5, CSS3 (Flexbox & transitions), plain JavaScript, Spotify Embed API.
Elements
• From Static Host → Browser (“HTML, CSS, JS”)
• From Browser → Spotify Embed API (“Embed request for playlist URI”)
• From Browser → Spotify App (“Open in Spotify” link)
• Blue for client-side components
• Green for externally hosted services
• Gray for static hosting