Skip to content

rajbos/vscode-github-ratelimit

 
 

GitHub Rate Limit Monitor

This Visual Studio Code extension monitors and displays your current GitHub API rate limit status in the status bar.

alt text

It helps you avoid hitting GitHub's API rate limits by providing real-time feedback and alerts.

Features

  • Shows the number of remaining GitHub API requests in the status bar.
  • Alerts you when the rate limit is exceeded and displays the reset time.
  • Polls the GitHub API at a configurable interval (supports partial seconds, e.g., 0.5).
  • Automatically updates the polling interval if you change the setting in VS Code.
  • Tracks rate limit usage over time - Stores historical data points every 5 minutes (configurable).
  • Visual usage graph - Display a chart showing your API usage patterns over the last hour to identify bursts and trends.

Configuration

You can configure the polling interval in seconds (including fractional values) via the setting:

"githubRateLimit.pollIntervalSeconds": 1
  • Default: 1 (polls every 1 second)
  • Example: Set to 0.5 for polling every half second

You can also configure how often historical data points are saved:

"githubRateLimit.historySaveIntervalMinutes": 5
  • Default: 5 (saves a data point every 5 minutes)
  • Data is kept for the last hour to show usage trends

Requirements

  • You must be signed in to GitHub in VS Code for the extension to access your rate limit status.

Usage

  1. Install the extension.
  2. Make sure you are signed in to GitHub in VS Code.
  3. The status bar will show your current GitHub API rate limit. If you exceed the limit, you will see a warning and the reset time.
  4. Adjust the polling interval in your settings if needed.
  5. View usage history: Run the command "Show GitHub Rate Limit History" from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) to see a visual graph of your API usage over the last hour. This helps identify:
    • When rate limit usage spikes occur
    • Patterns in API consumption
    • Whether usage is from automation, tools at startup, or other sources

License

MIT

About

A Github Rate Limit monitor extension for Visual Studio Code

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 95.1%
  • JavaScript 4.9%