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

audionorm

v0.1.3

Published

Normalize audio files to an optimal loudness (LUFS / peak) from the command line. Bundles ffmpeg, so it just works with npx.

Readme

audionorm

Normalize audio files to an optimal, consistent loudness from the command line — so a clip you grabbed from a free sound library doesn't blast out at full volume, and your app's UI / button sounds all sit at the same comfortable level.

Bundles its own ffmpeg, so there's nothing else to install. Just run it with npx.

npx audionorm track.wav

Prefer a UI? There's also a browser version (drag & drop, nothing uploaded): https://audionorm.riyo.me


Why

Loudness is perceptual, not just peak level — two files with the same peak can sound very different in volume. audionorm measures integrated loudness in LUFS (ITU-R BS.1770 / EBU R128, the same standard Spotify, YouTube and broadcasters use) and applies the gain needed to hit your target, while keeping the true peak under a ceiling so it never clips.

For very short clips (button clicks, notifications) gated LUFS is unreliable, so there's a dedicated peak-based sfx preset that just brings every clip to a consistent, not-too-loud peak.

Usage

npx audionorm [options] <files | globs | folders...>
# Single file → -14 LUFS, writes track-normalized.wav next to it
npx audionorm track.wav

# Fix a folder of too-loud UI sounds into a new folder
npx audionorm ./sounds -p sfx -o ./sounds-fixed

# Batch a glob to podcast loudness
npx audionorm -p podcast "episodes/*.mp3"

# Just measure — don't write anything
npx audionorm --analyze track.wav

# Custom target and convert to WAV
npx audionorm --target -12 song.flac -f wav

Presets

General

| id | Target | Best for | | ----------- | ----------- | ------------------------------------------------- | | streaming | −14 LUFS | General use, music (Spotify/YouTube level) | | podcast | −16 LUFS | Voice, spoken word | | broadcast | −23 LUFS | EBU R128 broadcast | | loud | −9 LUFS | Hot master, maximum perceived loudness | | peak | −1 dB peak | Lossless peak normalize | | sfx | −3 dB peak | UI / button sound effects (the too-loud fix) |

Per-service targets (master to a platform's playback loudness):

| id | Target | Service | | ----------------- | ------------------ | ----------------------------- | | spotify | −14 LUFS | Spotify | | apple-music | −16 LUFS | Apple Music (Sound Check) | | youtube | −14 LUFS | YouTube / YouTube Music | | amazon-music | −14 LUFS, −2 dBTP | Amazon Music | | tidal | −14 LUFS | Tidal | | deezer | −15 LUFS | Deezer | | soundcloud | −14 LUFS | SoundCloud | | tiktok | −14 LUFS | TikTok | | instagram | −14 LUFS | Instagram / Reels | | facebook | −14 LUFS | Facebook | | apple-podcasts | −16 LUFS | Apple Podcasts | | spotify-podcast | −14 LUFS | Spotify (podcast) | | acx | −20 LUFS, −3 dBTP | Audible / ACX audiobook | | atsc-a85 | −24 LKFS, −2 dBTP | ATSC A/85 (US TV) |

Run npx audionorm --list-presets for the current list.

Options

-p, --preset <id>     Loudness preset (default: streaming)
    --target <LUFS>   Override the target loudness for LUFS presets
    --peak <dB>       Override the target peak for peak presets
-o, --out <dir>       Output directory (default: alongside each input)
    --suffix <str>    Filename suffix for outputs (default: "-normalized")
-f, --format <ext>    Output format: wav, mp3, flac, m4a, ogg (default: keep input)
    --analyze         Only measure and report — don't write files
    --list-presets    List the available presets and exit
-h, --help            Show help

How it works

LUFS presets use ffmpeg's two-pass loudnorm (linear mode) for accurate, transparent gain, pulling back automatically if it would push the true peak past the ceiling. Peak presets apply a single lossless gain change. Output quality is preserved (24-bit WAV, FLAC, or high-bitrate lossy depending on the target format).

Links

  • Web app: https://audionorm.riyo.me
  • Source: https://github.com/Riyoway/audionorm

License

MIT