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-share-links-analysis

v0.15.1-fix

Published

自用插件

Readme

koishi-plugin-share-links-analysis

视频链接解析插件说明 📺✨

本插件为用户提供便捷的分享链接链接解析服务,让聊天体验更加丰富多彩。


鸣谢 💖

本插件的解析能力与稳定运行,离不开以下开源项目及社区文档的强大支撑。特此向这些项目及其维护者致以最诚挚的感谢:


🚀 YouTube 解析后端部署指南 (必看)

由于 YouTube 引入了极其严苛的反爬机制,传统的直连解析已全部失效。为了保证解析的稳定,本插件采用了 “前端 Koishi + 后端 Python 微服务” 的分离架构。

Python 后端利用 yt-dlp 的最新特性,通过调用本地 Node.js 实时计算 YouTube 签名,并已内置自动热更新。

部署环境要求

  • Python 3.8+
  • Node.js (⚠️ 必须安装!yt-dlp 需要调用 Node 环境来执行 JS 脚本破解签名)
  • 一个能够正常访问 YouTube 的网络代理 (强烈建议使用流媒体解锁节点)

部署步骤

1. 下载后端脚本 将本仓库内的 yt_server.py 下载到你的服务器上:

wget https://raw.githubusercontent.com/furryaxw/share-links-analysis/Master/yt_server.py

2. 安装 Python 依赖

pip install httpx fastapi uvicorn yt-dlp

3. 配置网络代理 (重要) 请使用编辑器(如 vim 或 nano)打开 yt_server.py,在文件顶部找到代理配置区域,将地址修改为你自己的真实代理

# =====================================
# 配置代理
proxy = "http://127.0.0.1:7890" # 👈 在这里填入你的代理IP和端口
# =====================================

4. 启动微服务

python yt_server.py

(注:由于脚本内置了自动更新热重启逻辑,强烈建议直接使用上述命令启动,或者使用 pm2 start yt_server.py --name yt-api --interpreter python3 进行后台进程守护。)

5. 在 Koishi 中配置 确保 Python 服务成功运行(默认监听 12001 端口)后,回到 Koishi 控制台的本插件配置页。 在 youtube_pythonApiUrl 配置项中填入你的后端地址:

http://127.0.0.1:12001/api/parse

(如果你的 Python 服务部署在其他服务器上,请将 127.0.0.1 替换为对应的服务器 IP)

🎉 配置完成!现在你可以尽情享受丝滑的 YouTube 视频与 Shorts 解析了!