Auralyn Audio Engine & Streaming Platform
A full-stack audio streaming progressive web application and Express microservice with persistent playback, RESTful stream extraction, CORS proxying, and mobile-friendly UI.
Project Overview
Auralyn is a full-stack music streaming platform engineered with a decoupled React progressive web application frontend and an Express/Node.js REST backend. Built to solve the challenge of uninterrupted audio streaming across single-page application route transitions, it features custom audio event-loop synchronization, sliding-window buffer management, and secure CORS stream proxying.
System Architecture
Auralyn is split into three decoupled services to separate UI responsiveness from heavy audio resolution and streaming proxying:
[ Client Browser / Mobile PWA ]
│
│ 1. Search & Browse Query
▼
[ Node.js / Express Gateway (Port 5000) ] ──▶ CORS Origin Verification
│
│ 2. Proxy Stream Request
▼
[ Python Flask Service (ytmusicapi) ]
│
│ 3. Extract Stream URL & Track Metadata
▼
[ External Audio Stream CDN (Byte-Range) ]
│
│ 4. HTTP 206 Partial Content (Audio Chunks)
▼
[ In-Browser Singleton Audio Controller ] ──▶ Dispatches to React State
│
▼
[ Uninterrupted Playback on Web Audio Output ]Core Engineering Challenges & Solutions
In standard React architectures, mounting an <audio> element inside page components causes audio to terminate immediately when the user changes views (e.g. from search to playlist).
Direct client requests to streaming hosts fail due to CORS browser protections when Web Audio APIs are attached for visualizers or volume normalization.
server.js allowing registered production origins (auralyn.me, Vercel preview URLs) while stripping blocking headers on proxied audio chunks.Buffering full 40MB audio albums into mobile RAM causes browser tab eviction on low-memory Android and iOS devices.