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

opencode-volcengine-stats

v0.3.0

Published

OpenCode TUI plugin: show Volcengine Ark Coding Plan quota (5h / weekly / monthly) as progress bars in the session sidebar.

Readme

opencode-volcengine-stats

CI NPM Publish NPM Version License: MIT

English

一个 OpenCode TUI 插件,在会话右侧栏显示火山方舟 Coding Plan 套餐用量(和自带的 context、mcp 面板一样,只在会话中出现, 首页不显示):

截图:OpenCode 会话右侧栏中的 5h / 1W / 1M 用量进度条

数据来自本机 arkcli ——插件本身不调用方舟 API、不处理鉴权。默认每 60s 自动刷新;按 ctrl+alt+r(或点击进度条下方的 行)可立即手动刷新。

安装

前置条件: 已安装并登录 arkcli,且在 PATH 上:

npm i -g @volcengine/ark-cli@latest
arkcli auth login
arkcli usage plan --product coding-plan --format json   # 自检

然后让 OpenCode 自动添加:

opencode plugin opencode-volcengine-stats        # 当前项目
opencode plugin opencode-volcengine-stats -g     # 全局(所有项目)

或手动写入 TUI 配置(全局 ~/.config/opencode/tui.json,单项目 <项目>/.opencode/tui.json)后重启:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-volcengine-stats"]
}

这是 TUI 插件,通过 tui.json 加载,.opencode/plugins/ (那个目录放的是 server 插件)。

配置

选项通过 plugin 条目的第二个元素传入:

| 选项 | 默认值 | 含义 | |-----------------|-----------------|------------------------------| | product | "coding-plan" | arkcli 产品 id | | bin | "arkcli" | arkcli 二进制名称/路径 | | pollMs | 60000 | 数据重新拉取间隔(毫秒) | | barWidth | 14 | 进度条轨道宽度(单元格) | | showCountdown | true | 是否显示重置倒计时 | | refreshKey | "ctrl+alt+r" | 立即刷新的快捷键 |

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [["opencode-volcengine-stats", { "pollMs": 30000, "barWidth": 18 }]]
}

许可证

MIT