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-copilot-statusline

v1.0.3

Published

OpenCode TUI plugin: display GitHub Copilot quota (premium requests, with a chat fallback for Copilot Free) in the footer statusline. V2-native, zero-config, no cookies.

Readme

📊 opencode-copilot-statusline

npm version license

English | 简体中文

在 OpenCode TUI 底栏显示 GitHub Copilot 配额用量。

动态演示:OpenCode 底栏中的 GitHub Copilot 配额用量

✨ 功能

  • 在输入框底栏实时显示配额已用百分比(Copilot 87%)
  • 展开底栏详情(或终端足够宽)时显示每月重置倒计时
  • 颜色提示:Copilot 标签与百分比整段同步变色 —— 正常为弱化色,≥70% 为警告色,≥90% 或无法解析配额时为错误色
  • 仅当会话模型 provider 为 github-copilot 时显示
  • 用量约每分钟自动刷新一次

📋 环境要求

  • OpenCode@2
  • 已在 OpenCode 登录 GitHub Copilot(opencode auth login github-copilot)

🚀 安装

opencode plugin add opencode-copilot-statusline

📈 百分比的含义

状态栏会自动选取限制你当前计划的配额:

| 计划 | 来源 | 示例 | | ------------------------------------------- | ----------------------------- | ------------- | | Pro / Business / Enterprise | 本月已用的 premium requests | Copilot 87% | | Copilot Free(没有 premium requests 配额) | chat 额度 | Copilot 6% | | premium requests 无限 | 没有有限配额 | Copilot ∞ | | 未登录、凭证无法解析、接口异常 | 无数据 | Copilot — |

倒计时指向每月配额重置日期。

🩺 疑难排查

  • 底栏始终不显示 —— 仅当会话模型 provider 为 github-copilot 时才显示,请先在会话中切换到 GitHub Copilot 模型。
  • 只显示 Copilot — 而没有数字 —— 无法解析 github-copilot 凭据。请运行 opencode auth login github-copilot,然后确认插件已重新启用。
  • 显示 Copilot ∞ —— 你的计划没有有限的 premium requests 上限。

📜 变更日志

完整发布历史见 Releases。

📄 许可证

MIT