Abstract & Overview
Introduction. The rapid growth of music streaming services has led to anaccumulation of large volumes of personal data about users’ listening habits. Despite the availabilityof basic analytics features within platforms such as Spotify, Apple Music, and YouTube Music, thesetools are largely static and do not support interactive exploration or flexible time-range selection.Third-party services such as Last.fm and Stats.fm partially address this gap, yet they are limited byincomplete retrospective data coverage and constrained analytical capabilities.Purpose. The purpose of this article is to describe the design principles and implementationdetails of a web application for collecting, storing, and interactively visualising personal Spotifymusic streaming data, and to justify the chosen technology stack and architectural decisions from theperspective of their effectiveness.Results. A full-stack web application was developed using a client-server architecture. Thebackend is implemented on Node.js and Express.js with a MongoDB database managed viaMongoose, enabling scalable storage and complex server-side aggregation. User authentication ishandled through the OAuth 2.0 Authorization Code Flow, which provides secure server-side access tothe Spotify Web API along with refresh tokens for seamless session maintenance. A hybrid datacollection strategy was implemented: regular polling of the recently-played endpoint every fiveminutes ensures up-to-date data, while complete retrospective history is obtained via GDPR datarequests from Spotify – a combination unavailable in any existing analogue. The frontend is built withReact and TypeScript, with Redux Toolkit for state management, Material-UI for interfacecomponents, and Recharts for interactive chart rendering. Three custom chart abstractions (linechart, bar chart, stacked bar chart) provide consistent styling across all dashboards. The applicationdelivers multi-faceted analytical views: listening activity over time, hourly distribution charts,dynamic rankings of artists/tracks/albums with detailed individual statistics pages, stream graphs ofartist distribution, and charts of content characteristics (average album release date, number offeatures per track, song popularity). Flexible date range selection – including fully custom intervals –is supported across all views.Conclusion. The developed application addresses the key limitations of existing solutions byproviding full retrospective listening history via GDPR import, flexible time-range analysis, andhourly-level activity breakdown. The proposed hybrid data collection methodology and thearchitectural approach of server-side aggregation represent contributions to the field of personalisedmusic analytics. The results open perspectives for further development, including the integration ofmachine learning methods for automatic discovery of hidden patterns in users’ musical behaviour.