#57 · Primary category: Video & Animation

mediabunny

audio decoding demuxing encoding library media mp3 mp4 muxing npm ogg typescript video wav webcodecs webm

Pure TypeScript media toolkit for reading, writing, and converting video and audio files, directly in the browser.

Project last updated:08/29/26

GitHub Stars

7.1K

Forks

292

Contributors

34

License

MPL-2.0

Why we included this project

Most media work in the browser ends up delegated to a server or hidden behind a native binary, but Mediabunny handles demuxing, muxing, and transcoding directly on the client. It is a from-scratch TypeScript library with zero dependencies that speaks common containers like MP4, WebM, MP3, and HLS, and its tree-shaking means you only ship the code you actually use. Encoding and decoding are hardware-accelerated through the WebCodecs API, so client-side cropping, rotating, resizing, and format conversion are fast enough to power real editing and export tools without a round-trip to a backend. The same code runs in Node, Bun, or Deno when you need server-side work, and several commercial video products sponsor the project, a decent sign it sees real-world use. Teams building browser-based editors, clip tools, or media-heavy web apps get a solid alternative to FFmpeg that stays entirely in the user's browser.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category