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

dl-yt

v1.0.1

Published

Download YouTube videos from the terminal using npx, bunx, or npm

Readme

yt-downloader

Download YouTube videos from the terminal. No installation required — run with npx, bunx, or install globally via npm.

Built on yt-dlp (via youtube-dl-exec) with a bundled ffmpeg binary.

Features

  • Run instantly with npx yt-downloader <url>
  • Interactive quality picker when no format flags are provided
  • CLI flags for resolution, format ID, quality presets, and output path
  • Real-time download progress bar
  • Bundled ffmpeg — no separate install needed

Requirements

  • Node.js 18 or later

Installation

# Run without installing
npx yt-download <url>

# Or with Bun
bunx yt-download <url>

# Install globally
npm install -g yt-download

Usage

Interactive mode

When no quality flags are passed, an interactive menu lets you pick from available resolutions:

npx yt-download https://www.youtube.com/watch?v=dQw4w9WgXcQ

With flags

# Download at 1080p
npx yt-download <url> --resolution 1080

# Download best available quality
npx yt-download <url> --quality best

# Download audio only
npx yt-download <url> --audio-only

# Use a specific yt-dlp format ID
npx yt-download <url> --format-id 137

# Custom output directory and filename
npx yt-download <url> -o ~/Videos --filename "%(title)s.%(ext)s"

# Disable progress bar
npx yt-download <url> --no-progress

Options

| Flag | Description | Default | |------|-------------|---------| | <url> | YouTube video URL (required) | — | | -f, --format-id <id> | yt-dlp format ID (highest priority) | — | | -r, --resolution <height> | Target video height in pixels (720, 1080, 2160) | — | | -q, --quality <preset> | Preset: best, 1080, 720, audio-only | — | | -o, --output <dir> | Output directory | ~/Videos | | --filename <template> | Output filename template (yt-dlp syntax) | %(title)s.%(ext)s | | --audio-only | Download audio only | false | | --no-progress | Disable progress bar | progress enabled | | -h, --help | Show help | — | | -V, --version | Show version | — |

Format selection priority

When multiple quality flags are provided, only the highest-priority one is used:

  1. --format-id
  2. --resolution
  3. --quality

If none of the above are set, the interactive menu is shown (unless --audio-only is passed).

--audio-only always downloads audio regardless of other quality flags.

Testing

npm test

Uses the built-in Node.js test runner (node:test) — no extra test dependencies required.

License

MIT