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.6.0

Published

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

Readme

GLM Coding Plan Statusline


Features

  • Real-time Quota Monitoring - Display MCP monthly quota usage 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
  • GSD Bridge Compatible - Works with GSD context-monitor for low context warnings

Requirements

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

Quick Start

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 │ Sess:160.0K │ Day:42.8M │ Mon:979.2M
5H ██░░░░░░ 22% │ MCP ███░░░░░ 28% │ Context █████░░░ 68% (200K)

Fields

Line 1: Token Statistics | Field | Description | Color | |-------|-------------|-------| | GLM-5 | Current model | Cyan bold | | Sess:160.0K | Session tokens | Gray | | Day:42.8M | Daily tokens | Default | | Mon:979.2M | Monthly tokens | Blue |

Line 2: Quota Progress Bars | Field | Description | Color Rules | |-------|-------------|-------------| | 5H | 5-hour quota used | Green(<50%) / Yellow(50-80%) / Red(>80%) | | MCP | Monthly quota used | Green(<50%) / Yellow(50-80%) / Red(>80%) | | Context | Context window usage | Green(<50%) / Yellow(50-80%) / Red(>80%) |

GSD Bridge Compatibility

This statusline is compatible with Get Shit Done (GSD) framework's context monitoring feature.

How It Works

When Claude Code calls the statusline, it automatically writes context metrics to a bridge file:

/tmp/claude-ctx-{session_id}.json

This file can be read by GSD's gsd-context-monitor hook to inject low context warnings to the agent.

Bridge File Format

{
  "session_id": "abc123",
  "remaining_percentage": 65,
  "used_pct": 35,
  "timestamp": 1742053200
}

Using with GSD

If you have GSD installed, the context-monitor hook will automatically read these metrics and warn the agent when context is running low (≤35% warning, ≤25% critical).

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

Environment Variables

Ensure these environment variables are set (usually in settings.json env field):

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

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