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

yhdl

v1.11.8

Published

Standalone music download tool with intelligent folder management

Readme

yhdl

Download artist discographies from Deezer with smart folder organization and automatic library synchronization. Requires Deezer subscription

Features: Full discography downloads · FLAC/MP3 320/MP3 128 · Album/EP/Single detection · Library sync · Skip existing · Plex integration

Quick Start

Requires Bun ≥ 1.0.0.

bun install
bun run dev "Artist Name"

Create a .env file with at minimum DEEZER_ARL=<your_token> before first run.

Commands

| Command | Alias | Description | |---------|-------|-------------| | bun run dev <artist> | — | Download artist discography (shorthand) | | bun run dev download <artist> | d | Download artist discography | | bun run dev track <track> [artist] | t | Download a single track | | bun run dev sync | s | Sync library (check all artists for new releases) | | bun run dev status | st | Show sync status | | bun run dev errors | e | View recent sync errors | | bun run sync | — | Standalone sync (same as dev sync) | | bun run sync:scheduled | — | Non-interactive sync for task schedulers | | bun run tag:existing [artist] | — | Tag existing files with RELEASETYPE | | bun run cache:clear --all | — | Clear check history and library cache | | bun run ignore:add "Artist" | — | Add artist to sync ignore list | | bun run ignore:remove "Artist" | — | Remove artist from sync ignore list | | bun run ignore:list | — | List ignored artists |

Common Options

download / track: -b, --bitrate <flac|320|128> (default: flac) · --dry-run

sync: --full · --artist <name> · --dry-run · -c, --concurrency <n> (default: 5) · --since <hours> (default: 24) · -b, --bitrate

status: --json

errors: --limit <n> (default: 20) · --since <hours> (default: 24) · --json

Configuration

Create .env in the project root:

| Variable | Description | Default | |----------|-------------|---------| | DEEZER_ARL | Deezer ARL cookie (required) | — | | MUSIC_ROOT_PATH | Where music is saved | ~/Music | | SYNC_STATE_PATH | Sync state file path | .yhdl/sync-state.json | | ERROR_LOG_PATH | Error log path | .yhdl/sync-errors.json | | SYNC_CONCURRENCY | Parallel artist checks | 5 | | SYNC_CHECK_INTERVAL | Hours between checks | 24 | | PLEX_WEBHOOK_URL | Plex refresh webhook | Optional | | PLEX_WEBHOOK_TOKEN | Plex API token | Optional |

Getting your ARL: Log in to deezer.com → DevTools → Application → Cookies → copy the arl value.

Folder Structure

Music/
├── Tame Impala/
│   ├── Currents/
│   │   └── 01 - Let It Happen.flac
│   └── The Less I Know The Better [Single]/
│       └── 01 - The Less I Know The Better.flac
└── Various Artists/
    └── Compilation Name/

Track format: 01 - Track Name.flac · Compilations → Various Artists/ · Files tagged with title, artist, album, track number, ISRC, RELEASETYPE.

Development

bun run dev "Artist"   # Run from source
bun run build          # Build to dist/
bun test               # Run tests
bun run version:patch  # Bump version

For programmatic usage, see src/api/index.ts.

License

MIT