ytdl-webserver

? Webserver for downloading youtube videos. Ready for docker.

Github stars Tracking Chart

Demo

If you have questions, read the blog post.

Demovideo

Installation

As a server

npm install && npm start

As a docker image

Basic

docker run --name ytdl -d -p 3000:3000 algram/ytdl-webserver

Advanced

Build the docker image, create a directory to hold and access the downloaded videos on the host, and then start a container instance of the image.

docker build -t <your username>/ytdl-webserver .
mkdir /tmp/videos
docker run --name ytdl -v /tmp/videos:/home/app/public/temp -p 3000:3000 -d <your username>/ytdl-webserver

In the example above, we are creating a directory under /tmp to hold the videos and then specifying a host mount to the container that corresponds to that new directory. You may update this to any path on your host or use a different existing path if you would prefer. The host mount also improves performance as the downloaded files are written to the native host filesystem bypassing the CoW filesystem of the container.

Development

To start contributing you only have to run one command.

npm run dev

This will start webpack and a dev server on localhost:8080

License

MIT

Main metrics

Overview
Name With OwnerAlgram/ytdl-webserver
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2016-05-27 07:59:24
Pushed At2023-02-22 16:30:11
Last Commit At2019-10-12 19:40:25
Release Count0
用户参与
Stargazers Count1.4k
Watchers Count24
Fork Count142
Commits Count84
Has Issues Enabled
Issues Count24
Issue Open Count12
Pull Requests Count10
Pull Requests Open Count30
Pull Requests Close Count14
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private