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

@emgeebee/music_downcoder

v1.2.0

Published

Scan music libraries and generate ffmpeg conversion scripts with a CLI or web UI

Readme

Music Downcoder

A TypeScript CLI and web UI that scans music folders and generates bash scripts with ffmpeg commands to transcode your music library. Supports multiple encoders (mp3, ogg, ALAC copy) and parallel execution.

Published as @emgeebee/music_downcoder on npm.

Quick start (npx)

# Interactive CLI (uses built-in defaults)
npx @emgeebee/music_downcoder

# Web UI on port 3798
npx @emgeebee/music_downcoder serve -c /path/to/conf.json -H 0.0.0.0 -p 3798

Open http://localhost:3798 to pick source folder, encoders, and artist filter. After scripts are generated under cmd/, the UI lists them and lets you run individually or all at once.

Configuration

All paths and encoder settings live in a JSON config file. See docker/conf.json for a Synology/Docker example:

  • ffmpeg — path to ffmpeg binary
  • startFolders — source library folders shown in the UI/CLI
  • encoders — output folders and formats (mp3, ogg, cp)
  • commandsFolder, queueFolder, metaFile — working directories
  • numOfCores, rate, autoConfirm
npx @emgeebee/music_downcoder -c ./docker/conf.json

Synology / Docker

See docker/synology-compose.yml. Copy docker/conf.json to your NAS config volume and adjust paths. The container runs:

npx @emgeebee/music_downcoder serve -H 0.0.0.0 -p 3798 -c /data/config/conf.json

Development

npm install
npm start                    # CLI
npm run serve -- -c docker/conf.json -p 3798   # web UI
npm run build

npm publish

Pushes to npm on merge to main/master via .github/workflows/publish.yml. Add an NPM_TOKEN secret to the repository (npm automation token with publish access to @emgeebee).

How it works

  1. Walk the selected music directory
  2. Extract/cache metadata (artist, album, genre, year) via ffmpeg
  3. Generate ffmpeg/rsync commands per encoder
  4. Write scripts to cmd/{core}/
  5. Optionally execute via CLI or web UI