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-aka-ai-video-generator

v0.1.0

Published

AI video generator for Koishi (V2 architecture: credit billing, image-to-video / multi-image-to-video, yunwu provider).

Readme

koishi-plugin-aka-ai-video-generator

AI 视频生成 Koishi 插件。Adapter 参考 aka-ai-generator(v1)视频链路,架构与积分计费体系参考 aka-ai-image-generator(v2)。

功能

  • 🎬 图生视频(单图)
  • 🖼️ 多图生视频(2-4 张合成)
  • 📝 文生视频(需模型支持)
  • 💰 V2 积分计费:每日免费额度 + 付费积分,失败自动退款
  • 🔄 异步任务:提交后轮询,超时转手动查询
  • 🔗 与 aka-ai-image-generator 数据格式完全兼容,可共享积分账户

安装

npm install koishi-plugin-aka-ai-video-generator

或在 Koishi 控制台插件市场搜索 aka-ai-video-generator

命令

| 命令 | 说明 | |------|------| | 图生视频 [图片] <描述> | 单张图片生成视频 | | 多图生视频 [图片x2-4] <描述> | 多张图片合成视频 | | 文生视频 <描述> | 纯文字生成视频 | | 查询视频 [任务ID] | 查询任务状态 | | 视频余额 | 查询积分余额 | | 视频帮助 | 使用说明 |

可选参数:-d <秒数> 时长,-r <比例> 画面比例。

配置

| 配置项 | 默认 | 说明 | |--------|------|------| | provider | yunwu | 视频供应商 | | apiKey | — | API Key(必填) | | apiBase | https://yunwu.ai | API 地址 | | videoModelId | — | 单图/文生视频模型 ID(必填) | | multiImageModelId | — | 多图模型 ID(可选) | | defaultDuration | 5 | 默认时长(秒) | | defaultAspectRatio | 16:9 | 默认比例 | | billing.baseCredits | 2 | 基础积分/任务 | | billing.perSecondCredits | 0.5 | 附加积分/秒 | | billing.dailyFreeCreditsLimit | 0.4 | 每日免费额度 | | dataDir | 插件数据目录 | 指向图像版数据目录可共享积分 |

共享积分账户

将本插件的 dataDir 配置为 aka-ai-image-generator 的数据目录(如 <koishi>/data/aka-ai-image-generator),两个插件即共享同一套用户积分。

开发

npm install
npm run build      # 构建
npm run typecheck  # 类型检查
npm run dev        # watch 模式

详见 docs/DESIGN.md

License

MIT