# wavesurfer.js: 7.5 out of 10

A strong pick. 4th of 11 in [Video and audio players](https://elestia.ai/opensource/media/index.md).

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

- **Overall: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Needed by many: 3.4** (likely 2.3 to 4.5)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (3.8): 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.
- **Helps a lot: 8.2** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.4): 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.
- **Holds up over time: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.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.
- **Used widely: 4.8** (likely 3.7 to 5.8)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (4.5): 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.
- **Vouched for: 6.3** (likely 4.6 to 7.4)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.5): 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.
- **Safe: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.1): 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.

## 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

- Downloads, 4 weeks: 7.9M
- In a year: ×4.7
- GitHub stars: 10k
- Commits, 12 months: 145
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: BSD-3-Clause
- GitHub: https://github.com/katspaugh/wavesurfer.js
- npm: https://www.npmjs.com/package/wavesurfer.js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
