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-lex-ninjutsu

v2.0.2

Published

Release Lex-Ninjutsu using Koishi bot.

Downloads

55

Readme

koishi-plugin-lex-ninjutsu

握握手,握握双手。

npm

这是一个部署在聊天机器人 Koishi 上的插件。本插件可用于释放忍术,即在聊天中发送忍术音频。

使用教程

部署

首先,确保你有一个正在运行的 Koishi 机器人。

Koishi 的官方插件市场源已不再更新。若要能在插件市场中获取该插件,请于 market 插件设置中修改 search.endpoint 为一个可用的源。可以从 https://forum.koishi.xyz/t/topic/4000 等地获取可用的源的链接。

修改完成后,在 Koishi 控制台的插件市场中搜索 lex-ninjutsu 并安装。

打开插件配置界面并选择全局设置,点击右上角的添加插件按钮,搜索 lex-ninjutsu 并添加。

确保你安装了 database 和 http 服务。

上述操作完成后,就可以使用该插件了。

使用

首先,需要 忍术 更新 指令从忍法帖中获取忍术信息。该指令默认需要 3 级以上的权限。

更新完成后,在聊天中输入 释放忍术 忍术名忍术 释放 忍术名 即可释放忍术,例如 释放忍术 吓我一跳我释放忍术

忍术 信息 可用于查询忍术的信息。忍术 搜索 可用于搜索忍术。

修改匹配条件

由于忍法帖中的许多忍术名称带有标点符号,并且符号较为混乱(如「握握手 握握双手」「太痛苦了,太痛苦了」),默认的匹配条件忽略标点符号。例如,「握握手握握双手」「握握手?握握双手!」都被视为「握握手 握握双手」。将设置中的 matchLevel 改为 strict,匹配条件将修改为必须与忍法帖中完全一致(不推荐)。


许多时候,由于忍者释放忍术时较为匆忙,忍术中的字可能出现偏差。例如,不慎将「岚刀一直切」输成「蓝刀一直切」,而忍法帖中暂未收录该条目。为解决该问题,将设置中的 matchLevel 改为 homophone,则只要发音相同,就可以匹配。

不过,要使该项设置有效运行,首先需要 pinyin 服务,以识别忍术的发音。在插件市场中搜索 pinyin 并安装,在插件配置中添加该插件并运行即可。

注意,该插件对多音字的识别并不理想,有时候仍然会出现问题。

插件信息

依赖服务

  • database:必需服务。用于存储忍术信息。
  • http:必需服务。用于访问忍法帖。
  • pinyin:可选服务。用于解析忍术读音。