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-sa-caller

v0.1.6

Published

Koishi 插件,用于集成 Stock Advisor 服务,实现股票分析功能。

Downloads

171

Readme

koishi-plugin-aka-sa-caller

Koishi 插件,用于集成 Stock Advisor 服务,实现股票分析功能。

功能特性

  • 🔄 动态股票指令:根据 Stock Advisor 中的股票列表自动创建指令
  • 📊 异步分析:提交分析任务并自动轮询结果
  • 📋 股票列表:查看所有可用的股票代码
  • 🔄 实时更新:刷新股票列表以获取最新添加的股票
  • ⚠️ 错误处理:完整的错误提示和超时处理

安装

在 Koishi 插件市场搜索 aka-sa-caller 或使用以下命令安装:

npm install koishi-plugin-aka-sa-caller

配置

| 配置项 | 默认值 | 说明 | |--------|--------|------| | apiUrl | http://localhost:2380 | Stock Advisor API 地址 | | pollInterval | 2000 | 轮询间隔(毫秒) | | maxPollAttempts | 60 | 最大轮询次数(约2分钟) |

使用方法

1. 查看可用股票代码

代码

返回所有可用的股票代码列表。

2. 分析股票

直接输入股票代码即可触发分析:

NVDA

插件会:

  1. 提交分析任务到 Stock Advisor
  2. 显示"正在分析..."提示
  3. 自动轮询任务状态
  4. 返回完整的分析结果

3. 更新股票列表

当在 Stock Advisor 中添加新股票后,使用此指令刷新:

更新股票代码

前置条件

  1. Stock Advisor 服务需要运行(默认 http://localhost:2380
  2. Stock Advisor 已配置好 API 和股票列表
  3. 确保网络连接正常

许可证

MIT

作者

Baka_Akari