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-word-image

v1.0.5

Published

文案系统 - 生成各种类型的文案图片

Readme

koishi-plugin-word-image

npm

一个基于 Koishi 的文案图片生成插件,支持多种类型的文案,可以生成精美的文字图片。

功能特点

  • 支持17种不同类别的文案
  • 每个类别下包含多个子类别
  • 生成精美的文字图片
  • 可自定义图片样式和字体
  • 简单易用的命令系统

安装方法

# 使用 npm
npm install koishi-plugin-word-image

# 使用 yarn
yarn add koishi-plugin-word-image

# 使用 pnpm
pnpm add koishi-plugin-word-image

使用说明

基础命令

  • 文案系统 - 显示所有可用的文案类别菜单

类别命令

插件提供以下17个主要类别命令:

  1. 个性文案 - 生成随机个性文案图片
  2. 其他文案 - 生成随机其他文案图片
  3. 励志文案 - 生成随机励志文案图片
  4. 四季文案 - 生成随机四季文案图片
  5. 广告文案 - 生成随机广告文案图片
  6. 情感文案 - 生成随机情感文案图片
  7. 旅行文案 - 生成随机旅行文案图片
  8. 日常文案 - 生成随机日常文案图片
  9. 月份文案 - 生成随机月份文案图片
  10. 有趣文案 - 生成随机有趣文案图片
  11. 校园文案 - 生成随机校园文案图片
  12. 生活文案 - 生成随机生活文案图片
  13. 经典文案 - 生成随机经典文案图片
  14. 自然文案 - 生成随机自然文案图片
  15. 节日文案 - 生成随机节日文案图片
  16. 花草文案 - 生成随机花草文案图片
  17. 运动文案 - 生成随机运动文案图片

子类别命令

每个主类别下都有多个子类别命令,例如:

个性文案子类别

  • 古风、可爱、哲理、唯美、小众、干净、惊艳、意境、成熟、文艺等

其他文案子类别

  • 抖音、朋友圈、网易云、英文

励志文案子类别

  • 三观正、乐观、加油、励志、勇敢、坚持、奋斗、希望等

配置说明

# 在你的 Koishi 配置文件中添加以下配置
plugins:
  word-image:
    # 图片样式配置
    imageStyle:
      width: 800          # 图片宽度
      height: 400         # 图片高度
      backgroundColor: '#ffffff'  # 背景颜色
      textColor: '#000000'       # 文字颜色
      fontSize: 32               # 文字大小
      fontFamily: 'Arial'        # 字体
      padding: 20               # 内边距

注意事项

  1. 确保你的 Koishi 版本 >= 4.0.0
  2. 插件需要网络连接以获取文案数据
  3. 生成图片可能需要一定时间,请耐心等待
  4. 如果遇到图片生成失败,请检查网络连接和配置是否正确

许可证

MIT License

问题反馈

如果你在使用过程中遇到任何问题,或有任何建议,欢迎在 GitHub 上提出 issue。

更新日志

1.0.0

  • 初始版本发布
  • 支持17种文案类别
  • 支持自定义图片样式
  • 支持多种子类别命令