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

koishi-plugin-ytdlp

v1.0.0

Published

使用 yt-dlp 从视频链接(如YouTube)下载视频或音频,并支持智能画质选择。

Downloads

40

Readme

Koishi 插件:ytdlp

-  我没有任何程序知识,都是AI写的!
-  我没有任何程序知识,都是AI写的!
-  我没有任何程序知识,都是AI写的!

这是一个为 Koishi 机器人开发的插件,它调用强大的开源工具 yt-dlp,来从视频网站(如YouTube)下载视频或提取音频。

⚠️ 重要:前置依赖

本插件只是一个“遥控器”,它本身不具备下载能力。在使用本插件前,您必须在运行Koishi的电脑或服务器上,正确安装以下两个程序:

  1. yt-dlp:

    • 请从 官方发布页面 下载 yt-dlp.exe
    • 建议将其放置在一个统一的工具文件夹中(例如 C:\tools)。
  2. FFmpeg:

    • yt-dlp在合并视频、转换音频时,需要FFmpeg的帮助。
    • 请从 FFmpeg 官网 (例如 Gyan.dev) 下载。
    • 解压后,将其中的bin文件夹放置在您的工具目录中。

安装完成后,请务必将存放 yt-dlp.exeffmpeg.exe 的文件夹路径,添加到系统的“环境变量PATH”中。

或者,您也可以在插件的配置页面,直接填写这两个程序的绝对路径。

功能特性

  • 智能降级: 当视频的最佳画质版本超过设定的大小时,会自动寻找并下载不超过该限制的最佳可用画质。
  • 视频下载: ytdlp <链接> - 下载视频 (MP4)。
  • 音频提取: ytdlpmp3 <链接> - 仅提取音频 (MP3)。
  • 自我更新: ytdlp.update - 通过指令远程更新yt-dlp程序,保持其对最新网站的支持。

配置项

  • 临时文件路径: 用于存放下载过程中的临时文件。
  • 最大文件大小: 智能降级的尺寸上限(MB)。
  • yt-dlp.exe 路径: yt-dlp程序的绝对路径(如果在PATH中则无需修改)。
  • ffmpeg.exe 路径: ffmpeg程序的绝对路径(如果在PATH中则无需修改)。