better-ccflare 2.0.22 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  The ultimate Claude API proxy with intelligent load balancing across multiple accounts. Full visibility into every request, response, and rate limit.
6
6
 
7
- **🚨 Major Update:** As of v2.0.0, the Terminal UI (TUI) has been removed to focus on a more powerful CLI interface and web dashboard. All TUI functionality is now available through comprehensive CLI commands and the enhanced web dashboard.
7
+ **🚨 Major Update (v3.0.0):** This release includes critical security fixes, OAuth token health monitoring, and new provider support (NanoGPT, Minimax). All users should upgrade immediately. See [migration guide](docs/migration-v2-to-v3.md) for details.
8
8
 
9
9
 
10
10
  https://github.com/user-attachments/assets/c859872f-ca5e-4f8b-b6a0-7cc7461fe62a
@@ -15,26 +15,29 @@ https://github.com/user-attachments/assets/c859872f-ca5e-4f8b-b6a0-7cc7461fe62a
15
15
  ## Why better-ccflare?
16
16
 
17
17
  - **🚀 Zero Rate Limit Errors** - Automatically distribute requests across multiple accounts
18
- - **🤖 Multi-Provider Support** - Setup Claude OAuth, Claude API console, z.ai, Minimax, Anthropic-compatible, and OpenAI-compatible accounts and prioritize in which order they are used
19
- - **🔗 Custom API Endpoints** - Configure custom endpoints for Anthropic and Zai accounts for enterprise deployments
18
+ - **🤖 Multi-Provider Support** - Claude OAuth, Claude API console, NanoGPT, z.ai, Minimax, Anthropic-compatible, and OpenAI-compatible providers
19
+ - **🔒 OAuth Token Health** - Real-time monitoring of OAuth token status with automatic refresh and health indicators
20
+ - **🔗 Custom API Endpoints** - Configure custom endpoints for Anthropic accounts for enterprise deployments
20
21
  - **☁️ OpenAI-Compatible Support** - Use OpenAI-compatible providers like OpenRouter, Together AI, and more with Claude API format
21
22
  - **🔄 Smart Auto-Fallback** - Automatically switch back to preferred accounts when their rate limits reset
22
- - **⚡ Auto-Refresh** - Automatically start new usage windows when rate limits reset
23
+ - **⚡ Auto-Refresh** - Automatically start new usage windows when rate limits reset with 30-minute buffer
23
24
  - **📊 Request-Level Analytics** - Track latency, token usage, and costs in real-time with optimized batch processing
24
25
  - **🔍 Deep Debugging** - Full request/response logging and error traces
25
26
  - **🔐 API Authentication** - Optional API key authentication with secure key management
26
27
  - **⚡ <10ms Overhead** - Minimal performance impact with lazy loading and request deduplication
28
+ - **🛡️ Security Hardened** - Critical security fixes for authentication bypass, command injection, and credential leakage
27
29
  - **💸 Free & Open Source** - Run it yourself, modify it, own your infrastructure
28
30
 
29
31
  ### Why this fork?
30
32
 
31
33
  This project builds upon the excellent foundation of [snipeship/ccflare](https://github.com/snipeship/ccflare) with significant enhancements:
32
34
 
33
- **🎯 Core Improvements:**
34
- - **Enhanced Load Balancing** - Session-based load balancing with intelligent failover
35
- - **Real-time Analytics Dashboard** - Beautiful web UI for monitoring usage and performance
36
- - **Smart Rate Limit Management** - Auto-refresh and auto-fallback mechanisms
37
- - **Multi-Provider Support** - Claude API, z.ai coder, Minimax, and custom endpoints
35
+ **🎯 Core Improvements (v3.0.0):**
36
+ - **Enhanced Security** - Critical fixes for authentication bypass, command injection, and PKCE implementation
37
+ - **OAuth Token Health Monitoring** - Real-time status indicators and automatic token refresh with 30-minute buffer
38
+ - **Extended Provider Support** - NanoGPT (with dynamic pricing), Minimax, Anthropic-compatible, and OpenAI-compatible providers
39
+ - **Simplified Load Balancing** - Removed tier system for O(1) priority-based selection
40
+ - **Real-time Analytics Dashboard** - Beautiful web UI with fixed request history (no disappearing requests)
38
41
  - **Package Distribution** - Available via npm and bun for easy installation
39
42
 
40
43
  **🛠️ Developer Experience:**
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-ccflare",
3
- "version": "2.0.22",
3
+ "version": "3.0.0",
4
4
  "description": "Load balancer proxy for Claude API with intelligent distribution across multiple OAuth accounts to avoid rate limiting",
5
5
  "license": "MIT",
6
6
  "repository": {