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-do-naicha

v1.0.2

Published

我爱做奶茶小游戏,希望你喜欢玩

Readme

koishi-plugin-do-naicha

一个基于 Koishi 框架的奶茶制作游戏插件,让用户可以在聊天中收集材料、制作奶茶并管理自己的奶茶店。

功能特点

  • 🍵 材料收集系统:玩家可以通过消耗体力寻找制作奶茶所需的各种材料
  • 🧋 奶茶制作:使用收集到的材料制作不同种类的奶茶
  • 📦 背包系统:查看和管理你的材料库存和奶茶库存
  • ⚡ 体力系统:体力会随时间自动恢复,合理管理体力是游戏的关键

安装方法

# 使用 yarn
yarn add koishi-plugin-do-naicha

# 使用 npm
npm install koishi-plugin-do-naicha

使用方法

安装并启用插件后,在聊天中可以使用以下命令:

  • 找材料 - 消耗体力寻找随机材料
  • 做奶茶 <配方名> - 使用材料制作指定的奶茶
  • 背包 - 查看你的材料和奶茶库存
  • 奶茶帮助 - 查看游戏规则和可制作的奶茶列表

配置项

| 配置项 | 类型 | 默认值 | 说明 | |-------|------|-------|------| | staminaCost | 数字 | 10 | 每次找材料消耗的体力 | | staminaMax | 数字 | 100 | 最大体力值 | | staminaRecovery | 数字 | 1 | 每分钟恢复的体力 | | materials | 对象 | 见下文 | 材料配置 | | recipes | 对象 | 见下文 | 奶茶配方配置 |

默认材料

插件内置了以下材料:

  • 🍃 茶叶 (稀有度: 1)
  • 🥛 牛奶 (稀有度: 1)
  • 🍬 糖 (稀有度: 1)
  • ⚫ 珍珠 (稀有度: 2)
  • 🥥 椰果 (稀有度: 2)
  • 🍮 布丁 (稀有度: 3)
  • 🫘 红豆 (稀有度: 2)
  • 🍵 仙草 (稀有度: 3)

默认奶茶配方

插件内置了以下奶茶配方:

  • 🧋 经典奶茶 - 需要: 茶叶×2 + 牛奶×2 + 糖×1 (售价: 10金币)
  • ⚫🧋 珍珠奶茶 - 需要: 茶叶×2 + 牛奶×2 + 糖×1 + 珍珠×1 (售价: 15金币)
  • 🥥🧋 椰果奶茶 - 需要: 茶叶×2 + 牛奶×2 + 糖×1 + 椰果×1 (售价: 15金币)
  • 🌟🧋 豪华奶茶 - 需要: 茶叶×3 + 牛奶×3 + 糖×2 + 珍珠×1 + 布丁×1 (售价: 25金币)

自定义配置

你可以在 Koishi 的配置文件中自定义材料和配方:

// koishi.config.js
module.exports = {
  plugins: {
    'openai-compatible': {
      staminaMax: 120, // 自定义最大体力值
      materials: {
        // 添加自定义材料
        matcha: { name: '抹茶粉', emoji: '🍵', rarity: 3 }
      },
      recipes: {
        // 添加自定义配方
        matcha: {
          name: '抹茶奶茶',
          emoji: '🍵🧋',
          materials: { matcha: 2, milk: 2, sugar: 1 },
          price: 20
        }
      }
    }
  }
}

数据存储

插件使用 Koishi 的数据库系统存储用户数据,包括:

  • 体力值和上次体力更新时间
  • 材料库存
  • 奶茶库存

许可证

MIT