SR
Steve Riffe
Data Urbanism · Solutions Architect
PORTAL / STREAMING INTELLIGENCE & TELEMETRY
Production System · music.riffe.co.uk

Apple Music Roast .

Deterministic Apple MusicKit streaming analysis, behavioral concentration modeling, and 7 data-driven roast archetypes built on Next.js 14 and Google Cloud Run.

Apple MusicKit
Native Protocol
7 Archetypes
Deterministic Roasts
HHI Index
Artist Concentration
Scale-to-Zero
Cloud Run Serverless
Technical Design

How Apple Music Roast Works Under the Hood

Rather than relying on generic LLM fluff, Music Roast operates on a deterministic behavioral evaluation engine. It ingests listening history directly via Apple MusicKit REST endpoints and scores user streams across statistical concentration indices.

01 · AUTHENTICATION MusicKit JS

Apple Developer Handshake

Uses Apple Developer private keys (.p8) with ES256 cryptographic signing to issue ephemeral developer tokens, providing seamless client-side OAuth for Apple Music subscribers.

api.music.apple.com/v1/me/recent/played
02 · TELEMETRY HHI Math

Statistical Normalization

Calculates the Herfindahl-Hirschman Index (HHI) for artist diversity, circadian listening timestamps (tracking 1 AM–4 AM melancholy spikes), and 12-hour sliding window track repeats.

HHI = Σ (Market Share %)²
03 · VERDICT 100% Deterministic

Dynamic Severity Engine

Maps user listening telemetry into 7 humorous roast archetypes with custom severity ratings (1 to 5 🔥), generating personalized punchlines and track evidence.

severity: 1-5 🔥 · dynamic roast
Behavioral Taxonomy

The 7 Deterministic Apple Music Roasts

Every listening habit has a mathematical signature. Here is how the engine classifies your musical eccentricities:

🔥 5/5 Severity HHI > 2500

"Unhealthy Relationship"

Mono-Artist Fixation

Triggered when your top artist accounts for over 35% of all stream volume. You aren't listening to an album; you're maintaining a co-dependent emotional contract.

🔥 4/5 Severity 12h Window ≥ 3x

"Neighbor Disturber"

Looping Obsession

Playing the exact same track 3 or more times within a 12-hour sliding window. Your neighbors have memorized the chord progression against their will.

🔥 4/5 Severity 01:00 – 04:30 AM

"3 AM Cry for Help"

Circadian Melancholy

Heavy acoustic or downtempo streams between 1:00 AM and 4:30 AM. Apple Music shouldn't just shuffle your library; it should dispatch a wellness check.

🔥 3/5 Severity Pop < 20 / Niche

"Pretentious Phase"

Obscure Indie Snobbery

Rapid influx of underground, zero-chart-presence artists in the last 14 days. You’re auditioning for an imaginary music critic role nobody advertised.

🔥 3/5 Severity BPM > 135 / Workday

"The Dopamine Deficit"

High-BPM Workday Rage

Relentless techno, drum & bass, or synthwave marathons strictly between 9:00 AM and 5:00 PM. You aren't coding; you're attempting to outrun existential deadline anxiety.

🔥 4/5 Severity Δ Valence > 0.7

"Sonic Bipolarity"

Genre Whiplash

Transitioning directly from Chopin's Nocturnes into aggressive 90s Norwegian black metal in under 6 minutes. Your queue lacks emotional regulation.

Live Apple Music Application

Test your own Apple Music listening habits

Sign in with your Apple ID on music.riffe.co.uk to receive your verified deterministic roast.