
Inside Shopify Hack Days: Building a prototype for music-playing pages (2026) - Shopify
7/14/2026
This post details the technical implementation of a music player and visualizer prototype built during Shopify Hack Days. Key contributions include the development of a first-class `Audio` media type across the platform (Core, Admin API, admin-web, storefront), adding a new `audios` database table, a `Merchandising::Audio` model, and `Audio` GraphQL type. It also describes the creation of a standalone Shopify app ('Shop Sounds') using React Router, Polaris, and the Shopify App framework, which orchestrates product creation, variant syncing, metafield attachment, and publishing via GraphQL mutations. The storefront player is implemented as a theme app extension block utilizing a global audio singleton for persistent playback. The visualizer component features six custom GLSL fragment shaders driven by audio data (bass, mid-range, treble, energy) and supports 42 distinct visual identities through color schemes and tunable parameters. Additionally, a Tour Dates theme block was built using Shopify metaobjects and metafields, incorporating geolocation calculations via the Haversine formula and geocoding tools.