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-what-to-eat

v0.0.1

Published

今天吃什么。

Readme

koishi-plugin-what-to-eat

koishi-plugin

一个功能强大的 Koishi v4 插件,不仅能帮你决定今天吃什么,还支持分时段推荐和群组自定义列表!

✨ 特性

  • 智能推荐: 可选开启分时段(早/中/晚)推荐,在不同时间给你更合适的建议。
  • 高度可配: 从食物列表到回复文案,再到指令权限,一切尽在掌握。
  • 群组定制: 每个群都可以拥有自己独立的食物列表!通过简单指令即可管理。
  • 数据持久: 群组的自定义食物列表将自动存入数据库,持久保存。
  • 体验优秀: 清晰的指令反馈和优雅的降级策略,确保在任何情况下都能正常工作。

🚀 安装

通过 Koishi 插件市场搜索 what-to-eat 并安装。

依赖: 本插件需要 database 服务才能启用群组自定义列表功能。请确保你已安装并配置了数据库适配器(如 plugin-mysqlplugin-sqlite)。

📖 使用

核心指令

  • eat / 吃什么
    • 从当前生效的食物列表中随机推荐一个。

列表管理指令

这些指令仅在群聊中生效。

  • eat.ls
    • 查看本群的自定义食物列表。
  • eat.add <食物名>
    • 向本群的自定义食物列表中添加一个项目。
    • 示例: eat.add 佛跳墙

  • eat.rm <食物名>
    • 从本群的自定义食物列表中移除一个项目。
    • 示例: eat.rm 自己做

⚙️ 配置

插件提供了丰富的可视化配置项,请前往 Koishi 控制台的插件配置页面进行设置。所有配置项均有详细说明。

  • 基础设置: 配置全局默认的食物列表和回复模板。
  • 指令设置: 可设置是否允许非管理员用户管理群组自定义列表。
  • 分时段推荐:
    • 总开关,一键启用或关闭。
    • 自定义早、中、晚三个时段的开始时间。
    • 为每个时段配置独立的食物列表(若留空则使用全局列表)。

📝 License

MIT