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

@develon/youtube-dl-rest

v1.0.0

Published

Website for downloading Youtube & BiliBili videos

Downloads

4

Readme

Youtube-dl-REST

通过本项目,您可以搭建一个网页,快速下载各种Youtube、Bili视频。 在线地址:https://y2b.455556.xyz

安装

如果您使用docker,推荐使用以下命令运行本项目:

docker volume create vol
docker run -it -d --name youtube-dl-rest -p 80:80 -v vol:/Youtube-dl-REST imgxx/youtube-dl-rest

你可能需要修改 config.json 、替换自己的 cookies.txt 等文件,然后重启容器:

vi /var/lib/docker/volumes/vol/_data/config.json
vi /var/lib/docker/volumes/vol/_data/cookies.txt
docker restart youtube-dl-rest

如果您不使用docker,则按以下步骤进行安装:

1.安装Node.js

以Ubuntu为例,使用snapd安装:

sudo apt install -y snapd

sudo snap install core
sudo snap install node --classic --channel=14

node -v

2.安装yt-dlpFFmpeg

确保yt-dlp命令和ffmpeg命令可用:

sudo yt-dlp -U
ffmpeg -version

3.克隆本项目

克隆之后使用npm安装依赖模块:

git clone https://github.com/develon2015/Youtube-dl-REST.git
cd Youtube-dl-REST
npm install

4.启动项目

您最好在screen或tmux中运行:

npm start

更新记录

很久之前
  1. 使用Kotlin实现了master分支
过了一段时间
  1. 使用Node.js重构
  2. 自动清理空间
  3. 支持视频标题作为文件名
  4. 添加黑名单, 以及Cookies, 避免Youtube 429响应
后来
  1. 添加外挂字幕下载功能
  2. 支持解析BiliBili
接着
  1. 下载引擎替换为yt-dlp
  2. 支持解析BiliBili字幕和弹幕
  3. 支持显示标题和封面