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-magnet-whatslinkinfo

v0.3.1

Published

一个基于 whatslink.info API 的 Koishi 插件,用于预览磁力链接信息和截图。

Readme

koishi-plugin-magnet-whatslinkinfo

一个为 Koishi 设计的插件,它能自动识别聊天中的磁力链接,并调用 whatslink.info 提供的 API 来生成包含资源详情和截图的预览消息。

✨ 功能特性

  • 自动识别: 无需任何指令,在聊天中发送磁力链接即可自动触发。
  • 信息丰富: 显示资源的名称、总大小、文件数量和内容类型。
  • 截图预览: 可配置是否显示由 API 提供的资源截图。
  • 智能发送:
    • 在 QQ/OneBot 平台下,可配置使用合并转发的形式发送,避免长消息刷屏。
    • 自动引用原始消息进行回复,交互清晰。
    • 发送“解析中”的提示后自动撤回,保持聊天界面整洁。

💿 安装

在 Koishi 插件市场搜索 magnet-whatslinkinfo 并安装。

或通过命令行:

# 在你的 Koishi 项目根目录下执行
npm i koishi-plugin-magnet-whatslinkinfo

📖 使用方法

在任意聊天中发送包含磁力链接的消息即可。插件会自动处理并回复预览信息。

⚙️ 配置项

你可以在 Koishi 的插件配置页面找到本插件的设置项。

| 配置项 | 类型 | 默认值 | 描述 | | -------------- | --------- | ------------------------------------ | -------------------------------------------------------------------------------------------------- | | apiEndpoint | string | https://whatslink.info/api/v1/link | whatslink.info 的 API 请求地址。通常无需修改。 | | timeout | number | 10000 | 请求 API 的超时时间(毫秒)。 | | useForward | boolean | false | 在 QQ/OneBot 平台使用合并转发的形式发送结果。 | | showScreenshot | boolean | true | 是否在结果中显示资源截图。 | | debugMode | boolean | false | 是否开启调试模式。 | | sendSeparately | boolean | false | 是否将文本和图片作为独立消息分开发送。(此选项与合并转发冲突)式。 |

📜 免责声明

本插件仅作为技术学习和研究目的,所有数据均来源于第三方 API (whatslink.info)。

插件作者不存储、不分发、不制作任何资源文件,也不对通过磁力链接获取的内容的合法性、安全性、准确性负责。

请用户在使用本插件时,严格遵守当地法律法规。任何因使用本插件而产生的法律后果,由用户自行承担。

📝 许可

MIT License © 2025 WhiteBr1ck