WaveformPlayer
The vanilla-JS waveform audio player — plus a bar, playlist, sound list,
analytics and a peaks CLI. A small, zero-dependency family configured from plain markup: drop
in a script and a few data-* attributes and ship. About 19KB of JavaScript gzipped, no dependencies.
<link rel="stylesheet" href="https://unpkg.com/@arraypress/waveform-player/dist/waveform-player.css"><script src="https://unpkg.com/@arraypress/waveform-player/dist/waveform-player.min.js"></script>
<div data-waveform-player data-url="/audio/track.mp3" data-waveform-style="mirror"></div>That is a complete, working player. Start with Installation and Quick start.
The core player
Section titled “The core player”OptionsEvery option, as a JS prop or data-* attribute.
Data attributesThe full markup contract.
Methods & eventsDrive and observe playback.
StylingColors, presets and CSS variables.
Extensions
Section titled “Extensions”WaveformBarPersistent Spotify-style bottom bar.
WaveformPlaylistPlaylists, chapters and albums.
WaveformSoundsSearchable, filterable lists of sound previews.
WaveformTrackerPrivacy-first listen analytics.
WaveformGenPre-generate peaks at build time.
Every environment
Section titled “Every environment”Plain HTML / CDNNo build step.
React@arraypress/waveform-react — typed components + ref handles.
Vue@arraypress/waveform-vue — typed props and emits.
Svelte@arraypress/waveform-svelte — Svelte 5 components.
Astro@arraypress/waveform-astro — typed, SSR-safe components.
WordPressEnqueue + shortcode.
ShopifyTheme + Liquid sections.