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 🙏

© 2025 – Pkg Stats / Ryan Hefner

koishi-plugin-ban-words

v1.2.7

Published

A Koishi content-filter plugin that reads a TXT dictionary file (one keyword per line), detects/blocks messages, and can recall offending messages.

Readme

koishi-plugin-ban-words

基于 TXT 字典 的 Koishi 违规关键词过滤插件。
支持 撤回、禁言(OneBot/QQ)、自定义提示语模板(带占位符)、热重载、大词库批量正则等。

⚠️ 注意:词库 TXT 必须用 UTF-8(无 BOM)编码!
如果是 GBK/ANSI,中文会解析失败,导致“看似正常但始终匹配不到”。


安装

Koishi 控制台 → 插件市场搜索 ban-words 安装;或手动:

npm i koishi-plugin-ban-words

---
插件配置示例:
dictPath: ceshi.txt
recallOnHit: true
muteOnHit: true
muteSeconds: 1200(禁言 20 分钟,仅 OneBot/QQ 有效)
replyHints 示例:

{at} 你的发言包含词,已撤回并禁言 {minutes} 分钟。(ID: {id},昵称:{name})
占位符说明
在 replyHints 中可以使用以下占位符:
{at} → 真正的 @ 提及(OneBot/QQ 有效,别的平台为 @昵称 文本)
{name} → 用户昵称(优先取群昵称/平台昵称,兜底为 userId)
{id} → 用户 ID(QQ 号)
{minutes} → 根据 muteSeconds 自动换算出的分钟数

效果
@张三 你的发言包含词,已撤回并禁言 20 分钟。(ID: 123456789, 昵称: 张三)
---
新增白名单功能
新增日志打印出匹配到的关键词前50个