Skip to main content
Back to Projects Directory
Full-Stack Engineering Case Study•Completed & Verified

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.

Frontend
React 18 + PWA
API Gateway
Node.js + Express 4
Stream Extractor
Python + Flask
Deployment
Vercel + Railway

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

Challenge 1: Uninterrupted Audio Across React Route Changes

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).

Solution: Decoupled the HTML5 Audio pipeline into a singleton controller outside the component hierarchy. Component views subscribe to state updates via hooks without possessing ownership of the native audio DOM node.
Challenge 2: Cross-Origin Resource Sharing (CORS) on Audio Streams

Direct client requests to streaming hosts fail due to CORS browser protections when Web Audio APIs are attached for visualizers or volume normalization.

Solution: Implemented Express.js dynamic origin validation in server.js allowing registered production origins (auralyn.me, Vercel preview URLs) while stripping blocking headers on proxied audio chunks.
Challenge 3: Mobile Memory Management & Buffer Underruns

Buffering full 40MB audio albums into mobile RAM causes browser tab eviction on low-memory Android and iOS devices.

Solution: Enforced HTTP 206 Byte-Range streaming. Audio chunks are prefetched in 30-second sliding windows, discarding passed audio buffers to maintain a sub-15MB memory footprint.

Technologies & Libraries

ReactNode.jsExpressPython FlaskPWATailwind CSSREST APIsRailway