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-chatluna-pansou

v0.0.2

Published

为 ChatLuna 提供 PanSou 网盘搜索工具。

Readme

koishi-plugin-chatluna-pansou

这是一个给 ChatLuna 使用的 Koishi 插件,用来把 PanSou 网盘搜索 API 注册为模型工具。 插件只调用 PanSou API,不负责部署 PanSou 服务本身。

前置条件

先部署 PanSou 后端 API,例如:

docker run -d --name pansou -p 8888:8888 ghcr.io/fish2018/pansou:latest

默认 API 地址为:

http://127.0.0.1:8888

配置项

  • baseUrl:PanSou API 根地址,默认 http://127.0.0.1:8888
  • token:PanSou 启用认证时填写 JWT Token;未启用认证可留空。
  • toolName:注册到 ChatLuna 的工具名,默认 pansou_search
  • toolDescription:注册到 ChatLuna 的工具描述,会显示在工具名称下方。
  • maxResults:默认返回给模型的结果总数量,默认 5
  • defaultCloudTypes:默认网盘类型过滤,使用勾选项配置;默认不勾选,表示不过滤。可选项包括百度网盘、阿里云盘、夸克网盘、天翼云盘、115网盘、迅雷网盘、UC网盘、移动云盘、PikPak、123网盘、磁力链接、电驴链接。
  • maxResultsByCloudType:单个网盘类型最多返回数量,0 表示不单独限制。例如百度网盘填 1、阿里云盘填 2,则百度最多返回 1 条,阿里云最多返回 2 条。
  • timeout:请求超时时间,单位毫秒,默认 30000

工具入参

模型调用 pansou_search 时可传:

  • keyword:必填,搜索关键词。
  • channels:可选,搜索频道列表。
  • conc:可选,并发搜索数量。
  • res:可选,结果类型:allresultsmerge,默认 merge
  • src:可选,数据来源:alltgplugin
  • plugins:可选,指定搜索插件列表。
  • cloudTypes:可选,网盘类型过滤,例如 ["quark", "baidu"]
  • ext:可选,传给 PanSou 插件的扩展参数。
  • filter:可选,过滤配置,例如 {"include":["4K"],"exclude":["预告"]}
  • maxResults:可选,本次最多返回多少条。
  • refresh:可选,是否强制刷新 PanSou 缓存。