Dwtexe / cursor-stats

A Cursor extension that displays your Cursor Subscription usage statistics in the status bar.

Home Page:https://marketplace.visualstudio.com/items?itemName=Dwtexe.cursor-stats

Repository from Github https://github.comDwtexe/cursor-statsRepository from Github https://github.comDwtexe/cursor-stats

Cursor Stats Extension

A VS Code extension that provides real-time statistics about your Cursor usage, including premium requests and usage-based pricing information.

Features

  • πŸš€ Real-time monitoring of Cursor usage
  • πŸ‘₯ Team usage tracking with per-user statistics
  • πŸ“Š Premium request tracking with startOfMonth support
  • πŸ’° Usage-based pricing information with billing cycle awareness
  • πŸ”„ Smart cooldown and update mechanisms
  • πŸ”” Smart notification system with configurable thresholds
  • πŸ’Έ Spending alerts with dollar amount thresholds
  • πŸ’³ Mid-month payment tracking and invoice notifications
  • πŸ”’ Stripe integration for billing portal access
  • πŸ–₯️ Focus-aware updates with optimized performance
  • 🎨 Customizable status bar display with optional colors
  • πŸ“ Detailed tooltips with usage statistics
  • πŸ“ˆ Total request counter (fast + usage-based requests)
  • ⚑ Command palette integration
  • πŸŒ™ Support for both regular and nightly Cursor versions
  • πŸ”„ Enhanced GitHub release updates with markdown support

Upcoming Features

Stay tuned for these exciting new features coming soon:

  • πŸ“Š Session based request tracking
  • πŸ“ˆ Visual analytics with graphs for historical request usage
  • 🎯 Project-specific request usage monitoring
  • 🎨 Dedicated activity bar section for enhanced statistics view
  • πŸ”„ Smart API error handling:
    • Automatic retry reduction during outages
    • Intelligent refresh rate adjustment
    • User-friendly error notifications
  • βš™οΈ Enhanced customization features:
    • Configurable quota display options
    • Hide/show specific model statistics
    • Customizable status bar information

Images

UI UI Settings

Installation

VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Cursor Stats"
  4. Click Install

Manual Installation

  1. Download the latest .vsix file from Releases
  2. Open Cursor
  3. Press Ctrl+Shift+P (Cmd+Shift+P on macOS)
  4. Type 'Install from VSIX' and select it
  5. Choose the downloaded VSIX file

Project Structure

The project is organized into the following directories:

cursor-stats/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ interfaces/      # TypeScript interfaces and types
β”‚   β”‚   └── types.ts
β”‚   β”œβ”€β”€ services/       # Core services for different functionalities
β”‚   β”‚   β”œβ”€β”€ api.ts      # API communication with Cursor servers
β”‚   β”‚   β”œβ”€β”€ database.ts # SQLite database operations
β”‚   β”‚   └── github.ts   # GitHub release checking
β”‚   β”œβ”€β”€ handlers/       # UI and event handlers
β”‚   β”‚   β”œβ”€β”€ statusBar.ts # Status bar UI management
β”‚   β”‚   └── notifications.ts # Smart notification system
β”‚   β”œβ”€β”€ utils/          # Utility functions
β”‚   β”‚   └── logger.ts   # Logging functionality
β”‚   └── extension.ts    # Main extension file

Configuration

The extension can be configured through VS Code settings:

  • cursorStats.enableLogging: Enable detailed logging for debugging
  • cursorStats.enableStatusBarColors: Toggle colored status bar based on usage
  • cursorStats.enableAlerts: Enable usage alert notifications
  • cursorStats.showTotalRequests: Display total requests instead of current usage
  • cursorStats.usageAlertThresholds: Configure percentage thresholds for alerts
  • cursorStats.refreshInterval: Set update frequency
  • cursorStats.spendingAlertThreshold: Configure dollar amount thresholds for spending alerts

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Support

If you encounter any issues or have suggestions, please:

  1. Check our Known Issues
  2. Submit a new issue if needed
  3. Join the discussion in existing issues

License

MIT

About

A Cursor extension that displays your Cursor Subscription usage statistics in the status bar.

https://marketplace.visualstudio.com/items?itemName=Dwtexe.cursor-stats

License:GNU General Public License v3.0


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%