better-ccflare 1.2.25 → 1.2.27
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 +57 -2
- package/dist/better-ccflare +0 -0
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ This project builds upon the excellent foundation of [snipeship/ccflare](https:/
|
|
|
55
55
|
|
|
56
56
|
## Quick Start
|
|
57
57
|
|
|
58
|
-
### Install via npm
|
|
58
|
+
### Install via npm (Linux x86_64)
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
61
|
npm install -g better-ccflare
|
|
@@ -73,6 +73,41 @@ bun install -g better-ccflare
|
|
|
73
73
|
better-ccflare
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
### Install Pre-compiled Binary (All Architectures)
|
|
77
|
+
|
|
78
|
+
Download the appropriate binary for your platform from [GitHub Releases](https://github.com/tombii/better-ccflare/releases/latest):
|
|
79
|
+
|
|
80
|
+
#### Linux x86_64
|
|
81
|
+
```bash
|
|
82
|
+
wget https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-linux-x64
|
|
83
|
+
chmod +x better-ccflare-linux-x64
|
|
84
|
+
./better-ccflare-linux-x64
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### Linux ARM64 (Raspberry Pi 3/4/5, Oracle Cloud ARM, AWS Graviton)
|
|
88
|
+
```bash
|
|
89
|
+
wget https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-linux-arm64
|
|
90
|
+
chmod +x better-ccflare-linux-arm64
|
|
91
|
+
./better-ccflare-linux-arm64
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### macOS Intel
|
|
95
|
+
```bash
|
|
96
|
+
curl -L -o better-ccflare-macos-x64 https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-macos-x64
|
|
97
|
+
chmod +x better-ccflare-macos-x64
|
|
98
|
+
./better-ccflare-macos-x64
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
#### macOS Apple Silicon
|
|
102
|
+
```bash
|
|
103
|
+
curl -L -o better-ccflare-macos-arm64 https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-macos-arm64
|
|
104
|
+
chmod +x better-ccflare-macos-arm64
|
|
105
|
+
./better-ccflare-macos-arm64
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Windows x86_64
|
|
109
|
+
Download [`better-ccflare-windows-x64.exe`](https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-windows-x64.exe) and run it.
|
|
110
|
+
|
|
76
111
|
### Run without installation (npx/bunx)
|
|
77
112
|
|
|
78
113
|
```bash
|
|
@@ -190,13 +225,33 @@ Full documentation available in [`docs/`](docs/):
|
|
|
190
225
|
## Requirements
|
|
191
226
|
|
|
192
227
|
**For installation:**
|
|
193
|
-
- **npm** or **bun** package manager
|
|
228
|
+
- **npm** or **bun** package manager (for npm/bun installation)
|
|
194
229
|
- **Node.js** >= 18.0.0 (when installed via npm)
|
|
195
230
|
- **Bun** >= 1.2.8 (when installed via bun or running from source)
|
|
231
|
+
- **Or download pre-compiled binary** - No runtime dependencies required!
|
|
196
232
|
|
|
197
233
|
**For usage:**
|
|
198
234
|
- Claude API accounts (Free, Pro, or Team) or z.ai code plan accounts
|
|
199
235
|
|
|
236
|
+
## Platform Support
|
|
237
|
+
|
|
238
|
+
| Platform | Architecture | Status |
|
|
239
|
+
|----------|-------------|--------|
|
|
240
|
+
| Linux | x86_64 | ✅ Supported (npm + binary) |
|
|
241
|
+
| Linux | ARM64 (aarch64) | ✅ Supported (binary only) |
|
|
242
|
+
| macOS | Intel (x64) | ✅ Supported (npm + binary) |
|
|
243
|
+
| macOS | Apple Silicon (ARM64) | ✅ Supported (binary only) |
|
|
244
|
+
| Windows | x86_64 | ✅ Supported (binary only) |
|
|
245
|
+
|
|
246
|
+
**Works on:**
|
|
247
|
+
- Oracle Cloud ARM instances (Ampere Altra)
|
|
248
|
+
- AWS Graviton instances
|
|
249
|
+
- Raspberry Pi 3/4/5 (with 64-bit OS)
|
|
250
|
+
- Any x86_64 or ARM64 Linux/macOS/Windows system
|
|
251
|
+
|
|
252
|
+
**Not supported:**
|
|
253
|
+
- ARM32 devices (Raspberry Pi Zero, Pi 1, Pi 2, or 32-bit OS)
|
|
254
|
+
|
|
200
255
|
## Acknowledgments
|
|
201
256
|
|
|
202
257
|
Inspired by [snipeship/ccflare](https://github.com/snipeship/ccflare) - thanks for the original idea and implementation!
|
package/dist/better-ccflare
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-ccflare",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.27",
|
|
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",
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "bun run src/main.ts",
|
|
21
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 + '\\\";');\" && 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
|
+
"build:multi": "bun run build-multi-arch.ts",
|
|
23
|
+
"build:linux-x64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-linux-x64 --target=bun-linux-x64 --minify",
|
|
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
|
+
"build:macos-x64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-macos-x64 --target=bun-darwin-x64 --minify",
|
|
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
|
+
"build:windows-x64": "bun run build && bun build src/main.ts --compile --outfile dist/better-ccflare-windows-x64.exe --target=bun-windows-x64 --minify",
|
|
22
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",
|
|
23
29
|
"postpublish": "chmod +x dist/better-ccflare"
|
|
24
30
|
},
|