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-am-i-alt

v2.1.6

Published

[![npm](https://img.shields.io/npm/v/koishi-plugin-am-i-alt?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-am-i-alt)

Readme

koishi-plugin-am-i-alt

npm

一个给 Koishi 用的小号检测插件,支持 discordonebottelegram

本项目部分由AI完成

它会根据平台可拿到的信息做判断:

  • Discord:账号注册时间是否过新
  • OneBot (QQ):QQ 等级是否低于阈值
  • Telegram:基于 userId 的粗略年龄估算(低置信度)

另外如果项目里有 binding 表,插件会尽量把同一人的跨平台账号一起看,再给一个综合结果。

使用

启用插件后有两个命令:

  • 我是小号吗
  • 他是小号吗 [target](支持 @某人,或直接传平台userId)

配置项

  • enableDiscordCheck:是否启用 Discord 检测
  • enableOneBotCheck:是否启用 OneBot 检测
  • enableTelegramCheck:是否启用 Telegram 检测
  • minDiscordAccountAgeDays:Discord 小于该账号年龄判定为疑似小号
  • minQqLevel:QQ 等级低于该值判定为疑似小号
  • minTelegramEstimatedAccountAgeDays:Telegram 估算年龄小于该值判定为疑似小号
  • onError:检测失败时策略
    • unknown(推荐):返回未知
    • pass:按非小号处理
    • block:按小号处理

对外 Service

插件会注入 ctx.amIAlt,可供其他插件调用:

  • ctx.amIAlt.check(session, overrides?, options?):返回三态结果(alt | normal | unknown
  • ctx.amIAlt.isAlt(session, overrides?, options?):返回 boolean | null

说明

  • Telegram 检测是启发式规则,不建议单独作为封禁依据。
  • 如果你做的是风控场景,建议把这个插件作为前置筛选信号之一,再叠加行为数据或人工复核。