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 🙏

© 2024 – Pkg Stats / Ryan Hefner

youtube-dl-ui

v1.4.0

Published

A simple UI server for youtube-dl, letting you download high quality video or audio.

Downloads

10

Readme

Overview

Installation

$ npm install -g youtube-dl-ui

Usage

You can now start the server like you would any binary.

$ youtube-dl-ui
v1.4.0

Options

Usage: youtube-dl-ui [options]

Options:
  -V, --version             output the version number
  -p, --port <port>         the port for the http server
  -v, --video-path <path>   path to directory where videos should be saved
  -a, --audio-path <path>   path to directory where audio should be saved
  -y, --youtube-dl <path>   file path to the youtube-dl binary (so you can set
                            it to yt-dlp)
  -s, --socket-path <path>  url path the socket should connect to (useful when
                            proxying the server)
  -d, --debug               enable debug mode
  -h, --help                display help for command

Config

Environment variables & command-line flags

The following environment variables can be set, to control youtube-dl-ui:

| Environment variable | Type | Command-line equivalent | | -------------------- | -------------------------------- | ------------------------------- | | PORT | number (e.g. 8080) | --port 8080 | | VIDEO_PATH | string (e.g. ~/Downloads/videos) | --video-path ~/Downloads/videos | | AUDIO_PATH | string (e.g. ~/Downloads/audio) | --video-path ~/Downloads/audio | | YOUTUBE_DL | string (e.g. /usr/bin/yt-dlp) | --youtube-dl /usr/bin/yt-dlp | | SOCKET_PATH | string (e.g. /socket.io) | --socket-path /socket.io | | DEBUG | boolean | --debug |

Config file

RC is used to look for config files and can be used in the following ways:

  • if you passed an option --config file then from that file
  • $HOME/.youtube-dl-ui/config
  • $HOME/.config/youtube-dl-ui
  • $HOME/.config/youtube-dl-ui/config
  • /etc/youtube-dl-ui/config

Settings from this file will be overridden, if you also set options using environment variables or command line arguments.

Transparent mode

You can append the query parameter ?transparent=1 to the UI URL. This will remove the colored background and move the content to the left.

This is used in @capevace/mission-control to embed the download UI in an iFrame.

Example:

https://example.com/youtube-dl-ui?transparent=1

Swapping out youtube-dl

There are multiple forks of youtube-dl like yt-dlp which have a compatible API and can be used instead of stock youtube-dl.

You can do this by either setting the YOUTUBE_DL=/usr/bin/yt-dlp environment variable or by passing the --youtube-dl /usr/bin/yt-dlp CLI flag. To find out your yt-dlp path, run $ which yt-dlp in your shell.

Example:

youtube-dl-ui --youtube-dl /usr/bin/yt-dlp

# or

YOUTUBE_DL=/usr/bin/yt-dlp youtube-dl-ui

Changelog

Version 1.4.0

  • Added YOUTUBE_DL environment variable (and CLI option --youtube-dl) to set the youtube-dl binary This lets you replace youtube-dl with forks like yt-dlp.
  • Added empty queue view

Version 1.3.0

  • Added footer which shows current version

Version 1.2.1

  • Fixed SOCKET_PATH env variable not working as intended

Version 1.2.0

  • Added Docker support
  • Removed automatic config file creation, you will need to do so yourself now
  • Added configuration via environment variables

Version 1.1.0

  • Updated design to fit new version of @capevace/mission-control
  • Fixed some socket connection issues

Version 1.0.3

  • Added CLI flag for socket path
  • Added config log at startup for verification

Version 1.0.2

  • Changed HTML title

Version 1.0.1

  • Forgot to add README lol

Version 1.0.0

  • First polished release

Authors

Lukas Mateffy – @Capevacemateffy.me

Distributed under the MIT license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/capevace/youtube-dl-ui/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request