better-ccflare 1.2.38 → 2.0.1

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,6 +4,8 @@
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.
8
+
7
9
 
8
10
  https://github.com/user-attachments/assets/c859872f-ca5e-4f8b-b6a0-7cc7461fe62a
9
11
 
@@ -35,7 +37,7 @@ This project builds upon the excellent foundation of [snipeship/ccflare](https:/
35
37
  - **Package Distribution** - Available via npm and bun for easy installation
36
38
 
37
39
  **🛠️ Developer Experience:**
38
- - **TUI Interface** - Interactive terminal-based account management
40
+ - **Powerful CLI** - Complete command-line interface for account management and configuration
39
41
  - **REST API** - Complete API for automation and integration
40
42
  - **Cross-Platform Binary** - Pre-compiled binary works with Node.js or Bun
41
43
  - **Comprehensive Logging** - Request/response tracking with searchable history
@@ -60,7 +62,7 @@ This project builds upon the excellent foundation of [snipeship/ccflare](https:/
60
62
  ```bash
61
63
  npm install -g better-ccflare
62
64
 
63
- # Start better-ccflare (TUI + Server)
65
+ # Start better-ccflare (Server + Dashboard)
64
66
  better-ccflare
65
67
  ```
66
68
 
@@ -69,7 +71,7 @@ better-ccflare
69
71
  ```bash
70
72
  bun install -g better-ccflare
71
73
 
72
- # Start better-ccflare (TUI + Server)
74
+ # Start better-ccflare (Server + Dashboard)
73
75
  better-ccflare
74
76
  ```
75
77
 
@@ -126,7 +128,7 @@ git clone https://github.com/tombii/better-ccflare
126
128
  cd better-ccflare
127
129
  bun install
128
130
 
129
- # Build dashboard and TUI (required before first run)
131
+ # Build dashboard (required before first run)
130
132
  bun run build
131
133
 
132
134
  # Start better-ccflare (TUI + Server)
@@ -375,7 +377,7 @@ No `NODE_OPTIONS` needed - Traefik provides trusted certificates automatically!
375
377
  - Lazy-loaded analytics components for faster initial load
376
378
 
377
379
  ### 🛠️ Developer Tools
378
- - Interactive TUI (`bun run better-ccflare`)
380
+ - Powerful CLI (`better-ccflare`)
379
381
  - Web dashboard (`http://localhost:8080/dashboard`)
380
382
  - CLI for account management
381
383
  - REST API for automation
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-ccflare",
3
- "version": "1.2.38",
3
+ "version": "2.0.1",
4
4
  "description": "Load balancer proxy for Claude API with intelligent distribution across multiple OAuth accounts to avoid rate limiting",
5
5
  "author": "snipeship",
6
6
  "license": "MIT",
@@ -18,28 +18,30 @@
18
18
  "type": "module",
19
19
  "scripts": {
20
20
  "dev": "bun run src/main.ts",
21
- "build": "mkdir -p dist && BETTER_CCFLARE_VERSION=$(node -p \"require('./package.json').version\") bun build ../../packages/proxy/src/post-processor.worker.ts --outfile dist/post-processor.worker.js --target=bun --minify && bun -e \"const fs=require('fs'); const code=fs.readFileSync('dist/post-processor.worker.js','utf8'); const encoded=Buffer.from(code).toString('base64'); fs.writeFileSync('../../packages/proxy/src/inline-worker.ts', 'export const EMBEDDED_WORKER_CODE = \\\"' + encoded + '\\\";'); const wasm=fs.readFileSync('../../node_modules/@dqbd/tiktoken/lite/tiktoken_bg.wasm'); const wasmEncoded=wasm.toString('base64'); fs.writeFileSync('../../packages/proxy/src/embedded-tiktoken-wasm.ts', 'export const EMBEDDED_TIKTOKEN_WASM = \\\"' + wasmEncoded + '\\\";');\" && bun build src/main.ts --compile --outfile dist/better-ccflare --target=bun --minify --define process.env.BETTER_CCFLARE_VERSION='\"'$BETTER_CCFLARE_VERSION'\"' && rm -f dist/post-processor.worker.js",
21
+ "build": "mkdir -p dist && BETTER_CCFLARE_VERSION=$(node -p \"require('./package.json').version\") bun -e \"const fs=require('fs'); if (!fs.existsSync('../../packages/proxy/src/embedded-tiktoken-wasm.ts')) { const wasm=fs.readFileSync('../../node_modules/@dqbd/tiktoken/lite/tiktoken_bg.wasm'); const wasmEncoded=wasm.toString('base64'); fs.writeFileSync('../../packages/proxy/src/embedded-tiktoken-wasm.ts', 'export const EMBEDDED_TIKTOKEN_WASM = \\\"' + wasmEncoded + '\\\";'); }\" && bun build ../../packages/proxy/src/post-processor.worker.ts --outfile dist/post-processor.worker.js --target=bun --minify && bun -e \"const fs=require('fs'); const code=fs.readFileSync('dist/post-processor.worker.js','utf8'); const encoded=Buffer.from(code).toString('base64'); fs.writeFileSync('../../packages/proxy/src/inline-worker.ts', 'export const EMBEDDED_WORKER_CODE = \\\"' + encoded + '\\\";');\" && bun build src/main.ts --compile --outfile dist/better-ccflare --target=bun --minify --define process.env.BETTER_CCFLARE_VERSION='\"'$BETTER_CCFLARE_VERSION'\"' && rm -f dist/post-processor.worker.js",
22
22
  "build:multi": "bun run build-multi-arch.ts",
23
23
  "build:linux-amd64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-linux-amd64 --target=bun-linux-amd64 --minify",
24
24
  "build:linux-arm64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-linux-arm64 --target=bun-linux-arm64 --minify",
25
25
  "build:macos-x86_64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-macos-x86_64 --target=bun-darwin-x64 --minify",
26
26
  "build:macos-arm64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-macos-arm64 --target=bun-darwin-arm64 --minify",
27
27
  "build:windows-x64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-windows-x64.exe --target=bun-windows-x64 --minify",
28
- "prepublishOnly": "cp ../../README.md . && bun run build && jq 'del(.devDependencies[\"@better-ccflare/tui-core\", \"@better-ccflare/ui-common\", \"@better-ccflare/database\", \"@better-ccflare/core-di\", \"@better-ccflare/config\", \"@better-ccflare/logger\", \"@better-ccflare/server\"])' package.json > package.json.tmp && mv package.json.tmp package.json",
28
+ "prepublishOnly": "cp ../../README.md . && bun run build && jq 'del(.devDependencies[\"@better-ccflare/cli-commands\", \"@better-ccflare/database\", \"@better-ccflare/core-di\", \"@better-ccflare/config\", \"@better-ccflare/logger\", \"@better-ccflare/server\"])' package.json > package.json.tmp && mv package.json.tmp package.json",
29
29
  "postpublish": "chmod +x dist/better-ccflare"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=18.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "^20.0.0",
36
- "@types/react": "^19.0.0",
37
- "ink": "^6.0.0",
38
- "ink-select-input": "^6.0.0",
39
- "ink-spinner": "^5.0.0",
40
- "ink-text-input": "^6.0.0",
41
- "react": "^19.0.0",
42
- "react-devtools-core": "^7.0.1"
35
+ "@types/node": "^20.0.0"
36
+ },
37
+ "dependencies": {
38
+ "@better-ccflare/cli-commands": "0.1.0",
39
+ "@better-ccflare/config": "0.1.0",
40
+ "@better-ccflare/core": "0.1.0",
41
+ "@better-ccflare/core-di": "0.1.0",
42
+ "@better-ccflare/database": "0.1.0",
43
+ "@better-ccflare/logger": "0.1.0",
44
+ "@better-ccflare/server": "0.1.0"
43
45
  },
44
46
  "files": [
45
47
  "dist/better-ccflare",
@@ -54,7 +56,6 @@
54
56
  "rate-limiting",
55
57
  "oauth",
56
58
  "cli",
57
- "tui",
58
59
  "analytics",
59
60
  "monitoring"
60
61
  ],