Installation
WaveformPlayer is plain, dependency-free JavaScript. Add the stylesheet and the
script, and it upgrades any [data-waveform-player] element on the page — no
build step required.
CDN (no build step)
Section titled “CDN (no build step)”<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>That’s everything. The script auto-initialises on load — see Quick start.
npm i @arraypress/waveform-player pnpm add @arraypress/waveform-player yarn add @arraypress/waveform-player bun add @arraypress/waveform-playerThen import the core and the stylesheet:
import { WaveformPlayer } from '@arraypress/waveform-player';import '@arraypress/waveform-player/dist/waveform-player.css';Framework wrappers
Section titled “Framework wrappers”Using Astro or React? Install the typed wrapper instead — see Astro and React.
For AI agents
Section titled “For AI agents”The family ships a machine-readable reference at
waveformplayer.com/llms.txt — point your
coding agent at it and it can wire up a player correctly.