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-vocaloid-guess

v0.0.1

Published

术力口多人猜歌插件:音频片段/封面局部、同猜与抢答、货币奖励联动

Downloads

209

Readme

koishi-plugin-vocaloid-guess

npm

术力口猜歌插件,支持:

  • 听音频片段猜
  • 看封面局部猜
  • 选择题选项作答(A/B/C/D)
  • 多人同时猜
  • 抢答玩法
  • 联动 monetary 插件发币

指令

  • v猜歌 开始 [audio|cover|mixed]
  • v猜歌 抢答开始 [audio|cover|mixed]
  • v猜歌 停止
  • v猜歌 跳过
  • v猜歌 排行 [本群|全局]
  • v猜歌 配置 [key] [value](管理员)
  • v猜歌 猜 <答案>
  • v猜歌 选 <A|B|C|D...>
  • v猜歌 抢
  • v猜歌 状态

超时规则:任意题目超时会自动结束整局并结算。

缓存机制

  • 榜单缓存:按 board + part + issue + page 缓存
  • 封面缓存:下载原图到 cacheDir/covers
  • 封面裁剪:不复用裁剪结果,每题实时随机裁剪(会自动避开过于单调的区域)
  • 音频源缓存:cacheDir/audio
  • 音频切片缓存:cacheDir/audio-clips
  • 定时清理:按 cacheTtlHours 自动删除过期缓存
  • 题面发送:统一以 base64 data URL 发送(不走外链 URL)

B站音频解析

  • 已支持 bvid -> cid -> wbi/playurl 获取 DASH 音频流地址
  • 内置 WBI 签名流程(wts + w_rid
  • 建议配置 bilibiliSessdata 以提升稳定性与可用音质

质量优化

  • 封面:随机裁剪后会做单调度检测,过于单调会自动重试
  • 音频:切片后会做静音检测,若片段过于安静会自动重试

monetary 联动

启用 monetaryEnabled=true 后,答对玩家会执行:

ctx.monetary.gain(uid, monetaryRewardPerCorrect, monetaryCurrencyName)

兼容说明:若 B站接口临时不可用,仍可手动放置 cache/audio/<bvid>.mp3 作为兜底。