| Crates.io | rs-claude-bar |
| lib.rs | rs-claude-bar |
| version | 0.1.0-alpha.1 |
| created_at | 2025-08-31 00:27:23.621343+00 |
| updated_at | 2025-08-31 00:27:23.621343+00 |
| description | Ultra-fast Claude Code usage tracker with 5-hour window monitoring and status line integration |
| homepage | https://github.com/DevOpsBenjamin/rs-claude-bar |
| repository | https://github.com/DevOpsBenjamin/rs-claude-bar |
| max_upload_size | |
| id | 1818059 |
| size | 161,274 |
Enhanced Claude Code usage tracker with 5-hour window monitoring — lightning-fast Rust implementation with sub-100ms response times!
A high-performance Claude Code usage tracker written in Rust that analyzes your local JSONL files to provide fast status line integration and detailed usage reports. Perfect for monitoring your Claude usage within the 5-hour billing windows.
rs-claude-bar prompt# Clone and build
git clone https://github.com/DevOpsBenjamin/rs-claude-bar.git
cd rs-claude-bar
cargo build --release
# Install to ~/.cargo/bin
cargo install --path .
# Show current status (default command)
rs-claude-bar
# Status line for Claude Code integration
rs-claude-bar prompt
# View 5-hour usage blocks
rs-claude-bar blocks
# Configure Claude data path
rs-claude-bar config claude-path
rs-claude-bar info - Show basic usage information (default)rs-claude-bar prompt - Generate status line for Claude Code integrationrs-claude-bar install - Configure Claude settings integrationrs-claude-bar blocks - Display recent 5-hour usage blocksrs-claude-bar blocks all - Show all usage blocks from cachers-claude-bar blocks limits - Display all limit/unlock eventsrs-claude-bar blocks gaps - Show usage gaps between blocksrs-claude-bar config claude-path - Set Claude data directory pathrs-claude-bar config display - Configure display settings--no-cache - Force bypass cache and reprocess all files--no-save - Don't save cache after processing--help - Show help information--version - Show version informationrs-claude-bar is built with performance in mind:
~/.claude-bar/Perfect for Claude Code status bar hooks! The rs-claude-bar prompt command provides:
Example status line output:
[███░░░░░░░] 36.0% • 18.7K/52.0K • 💬 227 • 3h 23m remaining • 🤖 Sonnet 4
rs-claude-bar automatically detects your Claude data directory:
~/.claude/projects/~/.config/claude/projects/rs-claude-bar config claude-pathCache is stored in ~/.claude-bar/ for persistent performance optimization.
# Debug build
cargo build
# Release build (optimized)
cargo build --release
# Run tests
cargo test
# Run with cargo
cargo run -- prompt
serde_json - JSONL parsing and serializationchrono - Date/time handling with timezone supportclap - CLI argument parsing with derive macrostabled - Table formatting and displaydirs - Cross-platform directory detectionregex - Pattern matching for file processingrs-claude-bar is designed for speed:
prompt commandWhile ccusage (TypeScript/Node.js) offers comprehensive reporting features, rs-claude-bar focuses on:
MIT License - see LICENSE for details.
Contributions welcome! Please see our development workflow:
cargo test and cargo build --releaseInspired by ccusage by @ryoppippi - the comprehensive Claude Code usage analysis tool. rs-claude-bar focuses on high-performance status line integration while ccusage provides extensive reporting capabilities.
Built with ❤️ in Rust for the Claude Code community