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

@wangjs-jacky/glm-coding-plan-statusline

v1.4.0

Published

GLM Coding Plan 智能状态栏 - 帮助用户实时掌握套餐使用情况

Downloads

269

Readme

GLM Coding Plan Statusline


📖 中文文档

✨ 核心特性

  • 🎯 实时配额监控 - 显示 MCP 月度配额剩余百分比
  • 📊 Token 使用追踪 - 月度/日度/会话三级 Token 消耗统计
  • 📈 上下文进度条 - 可视化上下文窗口使用情况
  • 🌈 智能颜色提示 - 根据使用率自动变色警告
  • 智能缓存 - 减少 API 请求,提升响应速度
  • 🔧 灵活配置 - 支持多种显示模式

📋 系统要求

  • Node.js: 版本 ≥ 16.0.0
  • Claude Code: 配合 GLM Coding Plan 使用
  • GLM Coding Plan: 需要有效的 ANTHROPIC_AUTH_TOKEN

🚀 快速开始

一键配置

~/.claude/settings.json 中添加:

{
  "statusLine": {
    "type": "command",
    "command": "npx @wangjs-jacky/glm-coding-plan-statusline@latest"
  }
}

保存后重新打开 Claude Code 即可看到状态栏!

📊 显示效果

GLM-5 │ Sess:160.0K │ Day:42.8M │ Mon:979.2M
5H ██░░░░░░ 22% │ MCP ███░░░░░ 28% │ Context █████░░░ 68% (200K)

🎨 显示字段说明

第一行:Token 统计 | 字段 | 说明 | 颜色 | |------|------|------| | GLM-5 | 当前模型 | 青色加粗 | | Sess:160.0K | 当前会话 Token | 灰色 | | Day:42.8M | 今日 Token 消耗 | 默认 | | Mon:979.2M | 当月 Token 消耗 | 蓝色 |

第二行:配额进度条 | 字段 | 说明 | 颜色规则 | |------|------|----------| | 5H ██░░░░░░ 22% | 5小时配额已使用 | 绿(<50%) / 黄(50-80%) / 红(>80%) | | MCP ███░░░░░ 28% | 月度配额已使用 | 绿(<50%) / 黄(50-80%) / 红(>80%) | | Context █████░░░ 68% | 上下文使用率 | 绿(<50%) / 黄(50-80%) / 红(>80%) |

⚙️ 配置选项

# 完整模式 (双行显示,推荐)
npx @wangjs-jacky/glm-coding-plan-statusline

# 紧凑模式 (单行显示)
npx @wangjs-jacky/glm-coding-plan-statusline --compact

# 本地模式 (不请求 API,仅显示上下文)
npx @wangjs-jacky/glm-coding-plan-statusline --local

# 清除缓存
npx @wangjs-jacky/glm-coding-plan-statusline --clear-cache

# 查看帮助
npx @wangjs-jacky/glm-coding-plan-statusline --help

🔧 环境变量

确保以下环境变量已设置(通常在 settings.json 的 env 字段中):

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "your-token-here",
    "ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic"
  }
}

📖 English Documentation

✨ Core Features

  • 🎯 Real-time Quota Monitoring - Display MCP monthly quota remaining percentage
  • 📊 Token Usage Tracking - Monthly/Daily/Session level token consumption statistics
  • 📈 Context Progress Bar - Visualize context window usage
  • 🌈 Smart Color Alerts - Automatic color change warnings based on usage rate
  • Smart Caching - Reduce API requests, improve response speed
  • 🔧 Flexible Configuration - Support multiple display modes

📋 Requirements

  • Node.js: Version ≥ 16.0.0
  • Claude Code: Used with GLM Coding Plan
  • GLM Coding Plan: Valid ANTHROPIC_AUTH_TOKEN required

🚀 Quick Start

One-step Configuration

Add to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "npx @wangjs-jacky/glm-coding-plan-statusline@latest"
  }
}

Save and restart Claude Code to see the status bar!

📊 Display Example

GLM-5 │ Session:160.0K │ Day:42.8M │ Month:979.2M
5H ██░░░░░░ 22% │ MCP ███░░░░░ 28% │ Context █████░░░ 68% (200K)

⚙️ Options

# Full mode (two lines, recommended)
npx @wangjs-jacky/glm-coding-plan-statusline

# Compact mode (single line)
npx @wangjs-jacky/glm-coding-plan-statusline --compact

# Local mode (no API requests, context only)
npx @wangjs-jacky/glm-coding-plan-statusline --local

# Clear cache
npx @wangjs-jacky/glm-coding-plan-statusline --clear-cache

# Show help
npx @wangjs-jacky/glm-coding-plan-statusline --help

📝 License

MIT License - see LICENSE file for details.

🤝 Contributing

Issues and Pull Requests are welcome!

📞 Contact

  • Author: wangjs-jacky
  • GitHub: https://github.com/wangjs-jacky/glm-coding-plan-statusline
  • Issues: https://github.com/wangjs-jacky/glm-coding-plan-statusline/issues