wavesurfer.js
A strong pick. 4th of 11 video and audio players.
wavesurfer.js is a TypeScript audio player that draws an interactive waveform and has no dependencies. Plugins add regions, timelines, spectrograms, recording and minimaps. It is the standard pick when you need to show a waveform, and it is actively maintained. It is not a general video player.
Best for: Apps that need an interactive audio waveform: podcast and music players, audio editors, transcription or labeling tools, and voice recorders.
Scores
Overall7.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is the clear best pick for its niche, interactive audio waveforms, and it is actively maintained, safe and light. It does not replace Video.js, Plyr or hls.js for general video or streaming playback, which keeps it below the category defaults. The recent v8 breaking changes and reliance on one lead maintainer are the main risks.
- github.com/katspaugh/wavesurfer.js/releases: Frequent v8 releases, most recently 8.1.0 on Nov 12.
- npm downloads ratio: A ratio of 4.7, slightly above the 4.1 median.
- wavesurfer.xyz: Official docs and examples for the plugins.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.0
wavesurfer.js is a strong first choice when an interactive waveform is central to browser audio playback. Stable v8 has a capable plugin set, active maintenance, and documented use in shipped products. Video.js is the better fit for general video playback and adaptive streaming. The range reflects how much long recordings, browser decoding, and the still-short v8 track record can matter to a new project.
- github.com/katspaugh/wavesurfer.js: Documents waveform features and the limits of browser decoding
- github.com/katspaugh/wavesurfer.js/releases: Shows the stable v8 release and subsequent fixes
- closedcaptioncreator.com/docs/audio-description/voice-recorder: A shipped audio-description tool uses the recording waveform
- videojs.org/docs/guides/installation/html: Video.js offers video controls, adaptive streams, and hosted embeds
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth is ahead of the catalog baseline
Needed by many3.4
How many developers need a tool for this job?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Few web projects need to show an audio waveform. The use cases are podcast and music sites, audio editors, and ML or labeling tools. It does not cover video, which is a big part of this category. That makes it a clear niche within audio and video players.
- github description: Describes itself as an "Audio waveform player", so audio only.
- cdn.jsdelivr.net/gh/katspaugh/wavesurfer.js@main/README.md: The README scopes it as a player with a waveform visualization.
GPT-6.2 Sol: 3.8, likely 2.6 to 4.9
Interactive waveforms solve a specific problem for transcription, audio review, annotation, and music apps. The framework-independent API makes it usable across browser projects, while the waveform focus limits its appeal across the broader player category. Available web usage data measures media APIs and leaves demand for interactive waveforms uncertain.
- wavesurfer.xyz: Browser audio playback and waveform plugins
- dspace.vut.cz/server/api/core/bitstreams/c7902ff7-62d1-45a3-853f-bd461ca058a3/content: A transcription editor chose wavesurfer.js after comparing it with Peaks.js
- almanac.httparchive.org/en/2025/capabilities: Media API use is concentrated in audio and video sites
Helps a lot8.2
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
For waveform playback it is the most complete option. It has a rich set of official plugins, built-in types, and active work on performance and correctness, such as the Regions, Renderer and Timeline speed-ups in 8.0.3. Its limits are memory use when decoding long files in the browser and a known VBR MP3 sync problem. BBC peaks.js is stronger for zoomable editing of very long files with peaks computed in advance.
- github.com/katspaugh/wavesurfer.js/releases: The 8.x releases add Spectrogram options, Regions avoidOverlapping, a CSP-friendly style and leak fixes.
- redirect.github.com/bbc/peaks.js: peaks.js is the alternative for zoomable waveforms built from precomputed data.
- npm hasTypes: Ships its own TypeScript types.
GPT-6.2 Sol: 8.4, likely 7.3 to 9.3
Version 8.1.0 combines responsive waveform playback with plugins for editable regions, spectrograms, and recording. Typed events, explicit error handling, and runnable examples help developers and coding agents, though a few examples still reference v7. A contributor measured faster scrolling with many regions in Chromium, while an app developer reported that decoding many tracks caused lag and used precomputed peaks. Browser decoding remains a practical limit for long recordings, and the benchmark did not measure decoding.
- wavesurfer.xyz/docs: Typed API, plugins, examples, and v7 CDN references
- github.com/katspaugh/wavesurfer.js/releases/tag/8.0.0: Documents load cancellation and consistent error objects
- github.com/katspaugh/wavesurfer.js/releases/tag/8.1.0: Stable release fixes recording preview and Web Audio behavior
- ebaker.me.uk/2026/10/12/faster-wavesurfer-js: Contributor benchmark measured rendering with synthetic audio in Chromium
- reddit.com/r/reactjs/comments/1qfuxpn/i_built_an_opensource_audio_player_with_waveform: App developer reports that server-generated peaks eased lag on track-heavy pages
Holds up over time7.3
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
The project dates from 2012 and is still very active: 145 commits, 24 releases and only 8 open issues. It carefully backports fixes to 7.x. The v8 rewrite broke several APIs, and v9 will remove class-based plugins, so expect migration work. Releases depend largely on one lead maintainer, which caps the score.
- github commitsLastYear / releasesLastYear: 145 commits and 24 releases in the last year.
- github openIssues / closedIssues: 8 open issues against 2264 closed.
- newreleases.io/project/github/katspaugh/wavesurfer.js/release/8.0.0: The v8 breaking changes, with plugin removal planned for v9.
GPT-6.2 Sol: 7.6, likely 6.4 to 8.6
The repository logged 145 commits and 24 releases over the last year, with work from several contributors and a named sponsor. One spectrogram report took 12 days to close, while a recording-device fix took several months. The v8 migration changed load cancellation and deep imports, and the number of people who can publish releases is unclear.
- github.commitsLastYear, github.releasesLastYear: 145 commits and 24 releases in the past year
- github.com/katspaugh/wavesurfer.js/releases: Several contributors ship fixes and v7 received a backport
- wavesurfer.xyz: Names Closed Caption Creator as a gold sponsor
- github.com/katspaugh/wavesurfer.js/issues/4364: Spectrogram event report closed in 12 days
- github.com/katspaugh/wavesurfer.js/issues/4285: Recording-device bug took several months to resolve
- github.com/katspaugh/wavesurfer.js/releases/tag/8.0.0: Major-release migration notes document changed behavior and imports
Used widely4.8
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Downloads rose to 7.9M every 4 weeks, a ratio of 4.7. That is a little above the 4.1 median, so it is gaining ground slightly. Much of that volume comes in through Gradio and other tools that install it, rather than direct choices. Its 1317 dependent repos sit well below Video.js, howler.js and Plyr, which points to tens of thousands of direct users.
- npm downloadsLast4Weeks: 7.89M now against 1.68M a year ago.
- dependents: 1317 repos and 177 packages, against 9270 for Video.js and 10498 for howler.js.
- huggingface.co/spaces/mindmime/gradio/blob/main/js/audio/package.json: Gradio's audio package depends on wavesurfer.js, which inflates downloads.
GPT-6.2 Sol: 4.5, likely 3.3 to 5.6
Four-week npm downloads rose from 1.68 million to 7.89 million, or 4.69× year over year, ahead of the catalog median of 4.1×. Ecosyste.ms found 1,317 dependent repositories and 177 dependent packages, with far fewer tracked repositories than Video.js or howler.js. Around 10,500 stars show visibility, while three Bluesky posts and zero matched Hacker News stories show little recent discussion in those channels. Repeat installs and CDN use leave the number of projects choosing it uncertain.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 4.69× year-over-year growth against a 4.1× baseline
- dependents, peers: 1,317 tracked repositories versus 9,270 for Video.js and 10,498 for howler.js
- github.stars, bluesky.posts, hackerNews.stories: 10,481 stars, three Bluesky posts, and zero matched Hacker News stories
- wavesurfer.xyz: Quick start uses a CDN script outside npm installs
Vouched for6.3
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
Gradio from Hugging Face builds its audio component on it, and many annotation and audio tools embed it. No developer survey covers waveform libraries, and I found no independent benchmarks. The validation is real but comes mostly from adoption by other tools, not from formal reviews.
- huggingface.co/datasets/gradio/frontend/blob/main/6.0.0/audio/shared/MinimalAudioPlayer.svelte: The Gradio 6 frontend imports WaveSurfer directly.
- github stars: 10.5k stars and 319 contributors.
- hackerNews / bluesky: Little recent discussion: 0 HN stories and 3 Bluesky posts.
GPT-6.2 Sol: 6.5, likely 5.2 to 7.7
Closed Caption Creator uses the Record plugin in its voice recorder, and the HTML5 Audio Player plugin for WordPress ships a wavesurfer.js waveform skin. A transcription editor also chose it after comparing it with Peaks.js. These examples support its specialist use, while direct satisfaction data and independent testing of the current stable release are limited.
- closedcaptioncreator.com/docs/audio-description/voice-recorder: The project sponsor uses the Record plugin in its product
- en-gb.wordpress.org/plugins/html5-audio-player: The WordPress plugin ships wavesurfer.js and reports over 10,000 active installations across all skins
- dspace.vut.cz/server/api/core/bitstreams/c7902ff7-62d1-45a3-853f-bd461ca058a3/content: Independent transcription editor implementation compared waveform libraries
- 2025.stateofjs.com/en-US/libraries: Survey library results provide no project-specific satisfaction measure
Safe7.6
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has zero dependencies, no advisories ever, and a permissive BSD-3-Clause licence. The Scorecard is a middling 5.7: token permissions, pinned dependencies, security policy and fuzzing all score 0. Release publishing rests on few people.
- npm dependencies: 0 runtime dependencies.
- advisories total: 0 OSV advisories.
- scorecard: Score 5.7, with weak token-permission, pinning and security-policy checks.
GPT-6.2 Sol: 7.1, likely 5.9 to 8.2
The package has zero runtime dependencies, a permissive BSD-3-Clause license, and no recorded OSV advisories. GitHub Actions runs lint, type checks, unit tests, and leak tests before publishing to npm with a stored token. The 5.7 OpenSSF Scorecard flags token permissions, unpinned dependencies, and the security policy, and the size of the publisher group remains unclear.
- npm.dependencies, npm.license, advisories.total: Zero runtime dependencies, BSD-3-Clause, and zero recorded OSV advisories
- scorecard: 5.7 overall, with zero scores for token permissions, dependency pinning, and security policy
- github.com/katspaugh/wavesurfer.js/blob/8.1.0/.github/workflows/release.yml: Automated npm publishing uses a stored token and runs checks before release
Good
- It has zero runtime dependencies and ships its own TypeScript types.
- Official plugins cover regions, timeline, spectrogram, minimap, envelope, hover and microphone recording.
- It is very active: about 24 releases in the last year and only 8 open issues.
- Large tools such as Gradio's audio component build on it, so it gets heavy real-world use.
Bad
- It only plays audio with a waveform. It has no streaming formats such as HLS or DASH, and no full video player UI.
- v8 brought breaking changes: destroy() is final, superseded loads reject with AbortError, and deep imports need .js. v9 is planned to remove class-based plugins.
- Long files decode in the browser, which uses a lot of memory. Large files need peaks computed in advance.
- Releases depend mostly on one long-time lead maintainer, and the Scorecard's checks for token permissions, pinned dependencies and a security policy are weak.
The numbers
- npm downloads, 4 weeks
- 7.9M ×4.7 in a year
- GitHub stars
- 10k
- Commits, 12 months
- 145
- npm version
- 8.1.0 Nov 2026
- Versions, 12 months
- 20
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.7 out of 10, Nov 2026
- Licence
- BSD-3-Clause
Read on 21 November 2026 from GitHub (katspaugh/wavesurfer.js), npm (wavesurfer.js), OSV and the OpenSSF Scorecard.
Video and audio players
- 8.2hls.js
- 8.1Video.js
- 7.9Shaka Player
- 7.5wavesurfer.js
- 6.9dash.js
- 6.2Tone.js
- 5.9howler.js
- 5.6ReactPlayer
- 5.3Media Chrome
- 2.8Vidstack
- 2.4Plyr