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-jmcomic

v0.0.16

Published

为 ChatLuna 提供 JMComic 搜索、分类浏览和整本下载 PDF/ZIP 工具的 Koishi 插件。

Readme

koishi-plugin-chatluna-jmcomic

为 ChatLuna 提供 JMComic 搜索、分类浏览、详情、整本下载 PDF/ZIP 的 Koishi 插件。

功能

  • jmcomic_search:按关键词搜索 JMComic 本子。
  • jmcomic_browse:按分类、时间范围和排序方式浏览 JMComic 本子。
  • jmcomic_info:查询指定本子的详情信息。
  • jmcomic_download:下载一个或多个整本内容并生成 PDF 或 ZIP 文件。

说明

  • 插件为纯 Koishi 实现,不需要额外部署 Python 后端。
  • PDF 和 ZIP 均支持可选密码。
  • 下载通过任务队列处理,工具会等待任务完成后返回最终成功或失败结果。
  • jmcomic_download 支持传入单个 albumId,也支持传入 albumIds 一次性提交多个本子下载任务。
  • 批量下载会等待全部本子下载结束后一次性返回结果列表。

配置建议

  • 需要让模型回复文件链接时,将 fileMethod 设置为 url,并配置 publicBaseUrl
  • 大文件发送失败时,可将 fileMethod 设置为 file
  • Docker 部署且使用 fileMethod=file 时,需要把 Koishi 的数据目录也映射给 OneBot/NapCat,并保持容器内路径一致。否则 OneBot/NapCat 读不到 /koishi/data/... 下的下载文件,可能返回 upload_group_file1200 错误。
  • 如果不方便共享目录,保持默认的 fileMethod=buffer,它不需要 OneBot/NapCat 访问 Koishi 数据目录。
  • 默认会保留缓存,并按 fileExpireHours 自动清理过期下载文件。服务器磁盘空间较小时,可缩短 fileExpireHours 或关闭 cache
  • Docker 部署时,磁盘空间检查会读取 Koishi 容器内下载目录所在文件系统的可用空间;如果数据目录挂载到宿主机目录或 Docker volume,检查结果对应这个挂载点。
  • 并发参数不要盲目调高,过高可能导致网络请求失败、内存占用升高或触发站点限制。

参考项目

本项目实现 JMComic 接口、图片解码和下载流程时参考了以下项目: