Skip to main content

Installation

Pre-release Version

Waveform Playlist v5 is currently in pre-release. Install with the @next tag to get the latest features.

Package Manager​

Install the main package and its required peer dependencies:

npm install @waveform-playlist/browser@next tone @dnd-kit/core @dnd-kit/modifiers

If you already have React and styled-components in your project, you're ready to go!

Peer Dependencies​

Waveform Playlist requires the following peer dependencies:

npm install react react-dom styled-components tone @dnd-kit/core @dnd-kit/modifiers
PackageVersionPurpose
react^18.0.0UI framework
react-dom^18.0.0React DOM rendering
styled-components^6.0.0CSS-in-JS styling
tone^15.0.0Web Audio framework
@dnd-kit/core^6.0.0Drag and drop for clip/annotation editing
@dnd-kit/modifiers^9.0.0Drag modifiers (horizontal axis constraint)

Additional Packages​

Depending on your needs, you may want to install additional packages:

Annotations​

For time-synchronized annotations:

npm install @waveform-playlist/annotations@next

Recording​

For microphone recording:

npm install @waveform-playlist/recording@next

TypeScript​

All packages include TypeScript definitions. No additional @types packages are needed.

CDN Usage​

For quick prototyping, you can use the UMD build from a CDN:

<script src="https://unpkg.com/@waveform-playlist/browser@next/dist/index.umd.js"></script>

Note: CDN usage is not recommended for production applications.

Next Steps​

Buy Me A Coffee