@micschr0/claudebar 2026.8.24-beta.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 +36 -0
- package/bin/claudebar.js +33 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# claudebar
|
|
2
|
+
|
|
3
|
+
**A powerline statusline for Claude Code: segments, themes, and a live TUI configurator in a single native binary.**
|
|
4
|
+
|
|
5
|
+
This is the npm distribution package for [claudebar](https://github.com/micschr0/claudebar).
|
|
6
|
+
It installs the prebuilt native binary for your platform and exposes it on your `PATH` as `claudebar`.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install -g @micschr0/claudebar
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
pnpm (or Yarn/Bun) works too: pnpm reads the same npm-registry
|
|
15
|
+
`optionalDependencies` and selects the right platform package via `os`/`cpu`:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add -g @micschr0/claudebar
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then wire it into Claude Code:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
claudebar setup
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The binary is a native executable shipped as an optional dependency
|
|
28
|
+
(`@micschr0/claudebar-<platform>`); no Node runtime or postinstall download is required.
|
|
29
|
+
|
|
30
|
+
## Support
|
|
31
|
+
|
|
32
|
+
- macOS (Intel x64, Apple silicon arm64)
|
|
33
|
+
- Linux (x64, arm64 — musl builds)
|
|
34
|
+
|
|
35
|
+
Other install methods (Homebrew, mise, `install.sh`) and full documentation:
|
|
36
|
+
<https://github.com/micschr0/claudebar>
|
package/bin/claudebar.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const { spawnSync } = require('child_process');
|
|
5
|
+
|
|
6
|
+
// npm selects the right @micschr0/claudebar-<platform> optionalDependency by
|
|
7
|
+
// os/cpu; we just spawn its binary.
|
|
8
|
+
const PLATFORMS = {
|
|
9
|
+
'darwin-x64': '@micschr0/claudebar-darwin-x64',
|
|
10
|
+
'darwin-arm64': '@micschr0/claudebar-darwin-arm64',
|
|
11
|
+
'linux-x64': '@micschr0/claudebar-linux-x64-musl',
|
|
12
|
+
'linux-arm64': '@micschr0/claudebar-linux-arm64-musl',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const key = process.platform + '-' + process.arch;
|
|
16
|
+
const pkg = PLATFORMS[key];
|
|
17
|
+
if (!pkg) {
|
|
18
|
+
console.error(`claudebar: unsupported platform ${key} (supported: macOS/Linux x64+arm64)`);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let bin;
|
|
23
|
+
try {
|
|
24
|
+
bin = path.join(path.dirname(require.resolve(pkg + '/package.json')), 'claudebar');
|
|
25
|
+
} catch {
|
|
26
|
+
console.error('claudebar: platform binary missing — reinstall with: npm i -g @micschr0/claudebar --force');
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const r = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
31
|
+
if (r.error) { console.error(`claudebar: ${r.error.message}`); process.exit(1); }
|
|
32
|
+
if (r.signal) process.kill(process.pid, r.signal);
|
|
33
|
+
else process.exit(r.status === null ? 0 : r.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@micschr0/claudebar",
|
|
3
|
+
"version": "2026.8.24-beta.1",
|
|
4
|
+
"description": "A powerline statusline for Claude Code: segments, themes, and a live TUI configurator in a single native binary.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"claudebar": "./bin/claudebar.js"
|
|
7
|
+
},
|
|
8
|
+
"optionalDependencies": {
|
|
9
|
+
"@micschr0/claudebar-darwin-x64": "2026.8.24-beta.1",
|
|
10
|
+
"@micschr0/claudebar-darwin-arm64": "2026.8.24-beta.1",
|
|
11
|
+
"@micschr0/claudebar-linux-x64-musl": "2026.8.24-beta.1",
|
|
12
|
+
"@micschr0/claudebar-linux-arm64-musl": "2026.8.24-beta.1"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/micschr0/claudebar"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"claude",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"statusline",
|
|
25
|
+
"powerline",
|
|
26
|
+
"rust",
|
|
27
|
+
"cli",
|
|
28
|
+
"tui"
|
|
29
|
+
],
|
|
30
|
+
"author": "micschr0",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=14.0.0"
|
|
34
|
+
}
|
|
35
|
+
}
|