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

mediasnacks

v0.24.0

Published

Utilities for optimizing and preparing videos and images

Downloads

2,520

Readme

mediasnacks

Utilities video and images.

Install

FFmpeg and Node.js must be installed.

npm install -g mediasnacks

Optionally, if you have ignore-scripts=true in your .npmprc, you can install zsh auto-completions with:

$(npm root -g)/mediasnacks/install-zsh-completions.js

Overview

mediasnacks <command> <args>

Commands

  • avif Converts images to AVIF

  • png Optimizes PNG images with oxipng

  • sqcrop Square crops images

  • resize Resizes videos or images

  • edgespic Extracts first and last frames

  • ssim Computes similarity of two images

  • gif: Video to GIF

  • detectdups Detects sequentially duplicate frames in a video

  • dropdups Removes sequentially duplicate frames in a video

  • framediff: Plays a video of adjacent frames diff

  • hev1tohvc1: Fixes video thumbnails not rendering in macOS Finder

  • moov2front Rearranges .mov and .mp4 metadata for fast-start streaming

  • vconcat: Concatenates videos

  • vdiff: Plays a video with the difference of two videos

  • vsplit: Splits a video into multiple clips from CSV timestamps

  • vtrim: Trims video from start to end time

  • prores: Converts video to Apple ProRes

  • flattendir: Moves unique files to the top dir and deletes empty dirs

  • qdir Sequentially runs all *.sh files in a folder

  • seqcheck Finds missing sequence number

  • random Opens a random file

  • play Plays filtered playlist with mpv

  • dlaudio: yt-dlp best audio

  • dlvideo: yt-dlp best video

  • unemoji: Removes emojis from filenames

  • rmcover: Removes cover art

Globs

Glob patterns are expanded by Node.js.

mediasnacks avif file[234].png
# Expands to: file2.png, file3.png, file4.png
mediasnacks avif -- file[234].png
# Literal filename: "file[234].png"

Adding a macOS Quick Action

For example, for dropdups -n2 file.mov

  • Open Automator
  • Select: Quick Action
  • Workflow receives current: movie files in Finder.app
  • Action: Run Shell Script
export PATH="/opt/homebrew/bin:/opt/homebrew/opt/node@24/bin"
for f in "$@"; do
  $HOME/bin/mediasnacks dropdups -n2 "$f"
done

It will be saved to ~/Library/Services