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

track-dl

v1.0.6

Published

Search iTunes, download from YouTube, merge metadata with album art

Readme

track-dl

Search iTunes, download from YouTube, and merge metadata with album art.

Quick Start

Run without installation (npx)

npx track-dl "song name"

Install globally (recommended)

npm install -g track-dl
track-dl "song name"

Check version

track-dl --version

Requirements

  • Node.js (v14+)
  • FFmpeg (installed automatically via ffmpeg-static)

Usage

track-dl "song name" [itunes_limit] [youtube_limit]

Examples

# Basic search
track-dl "Shape of You"

# With custom result limits
track-dl "Shape of You" 5 3

Options

| Option | Description | |--------|-------------| | -v, --version | Show version number | | -u, --update | Update yt-dlp.exe to latest version | | -h, --help | Show this help message | | -b, --browser | Browser for YouTube cookies (chrome, firefox, edge, disabled). Default: disabled | | -e, --export-cookies | Export cookies when setting browser (use with -b) | | itunes_limit | Number of iTunes results (3, 5, or 10). Default: 3 | | youtube_limit | Number of YouTube results (3, 5, or 10). Default: 3 |

YouTube Cookies

Some YouTube videos require cookies to download. By default, cookies are disabled.

Setting up cookies

# Enable cookies from Firefox and export to file
track-dl -b firefox -e

# Enable cookies from Chrome
track-dl -b chrome

# Enable cookies from Edge
track-dl -b edge

# Disable cookies
track-dl -b disabled

When you set a browser, the setting is saved to .track-dl-config.json and persists for future runs.

The -e flag exports cookies from your browser to a local file, which can help avoid issues with some browsers (like Firefox DPAPI encryption problems).

Commands

Update yt-dlp

track-dl -u
# or
track-dl --update

Output

  • MP3 file saved to the project directory (where track-dl is installed)
  • File naming: {artist} - {title}.mp3
  • Includes metadata: title, artist, album, album art

Configuration

Settings are stored in .track-dl-config.json in the project directory:

{
  "browser": "firefox",
  "cookiesFile": "cookies.txt"
}

Troubleshooting

yt-dlp.exe not found

Run track-dl -u to download the latest version.

"Requested format is not available" error

This usually means YouTube requires cookies. Set a browser with -b chrome, -b firefox, or -b edge.

Download fails with cookies

The tool will automatically retry without cookies if the first attempt fails.

Setup (for local development)

Install dependencies:

npm install

This will download ffmpeg-static and yt-dlp.exe automatically.

Author

Sedat ERGOZ @eaeoz

License

MIT License