npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

movconverter

v0.1.2

Published

Convert MOV to MP4 entirely in the browser — no server, no uploads. Lossless & instant remux for iPhone/Mac H.264/HEVC+AAC footage, PCM audio re-encoded via WebCodecs. Streaming, constant memory, 1GB+ files. TypeScript.

Readme

movconverter

Browser-only MOV → MP4 conversion. No server, no upload — files never leave the user's machine.

Try it online → — the same converter as a free web tool, nothing to install.

  • Zero config: detects the codecs inside the MOV and picks the fastest path automatically
  • Lossless & instant for the most common case: iPhone/Mac footage (H.264/HEVC + AAC) is remuxed, not re-encoded — no wasm, constant memory, a 1GB file takes about as long as reading it from disk
  • Camera footage (H.264 + PCM audio): video is copied verbatim, only the audio is re-encoded to AAC through the browser's native WebCodecs encoder
  • Large-file safe: streaming design; memory usage does not grow with file size

Status: pre-release. The remux and audio-transcode paths are implemented; full transcoding (ProRes, MJPEG) is planned via a separate lazy-loaded wasm package.

Usage

import { convertMovToMp4 } from 'movconverter'

const { blob, method } = await convertMovToMp4(file, {
  onProgress: (p) => console.log(`${Math.round(p * 100)}%`),
})
// method is 'remux' | 'audio-transcode' | 'full-transcode' — show it off:
// 'remux' means the conversion was lossless and instant.

Preflight

Ask what would happen before converting (cheap — only the file's metadata is read):

import { canConvert } from 'movconverter'

const plan = await canConvert(file)
plan.method   // 'remux' | 'audio-transcode' | 'full-transcode'
plan.video    // { trackId, format: 'hvc1', action: 'copy' } ...
plan.dropped  // tracks MP4 cannot carry (timecode, ...), reported not errored

Off the main thread

import { convertInWorker } from 'movconverter'

const worker = new Worker(new URL('movconverter/worker', import.meta.url), { type: 'module' })
const result = await convertInWorker(worker, file, { onProgress })

Cancellation

const controller = new AbortController()
convertMovToMp4(file, { signal: controller.signal })
controller.abort()

How it works

MOV (QuickTime) is the direct ancestor of MP4 — both are ISO BMFF box structures. When the codecs inside are MP4-compatible, conversion is a container rewrite: build a new ftyp, rewrite moov (dropping what MP4 can't carry, re-tagging hev1 → hvc1, preserving rotation and color metadata), shift the chunk-offset tables, and reference the media bytes as lazy Blob slices. Nothing is decoded, nothing is copied through memory, and the output is faststart (moov first).

See the architecture document for the full design.

Browser support

  • Remux path: any browser with Blob (everything current)
  • Audio-transcode path: needs WebCodecs AudioEncoder with AAC (Chrome/Edge, Safari 16.4+; use isWebCodecsAacSupported() to check)

License

MIT