claude-scope 0.8.49 → 0.9.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.
Files changed (3) hide show
  1. package/README.md +137 -177
  2. package/dist/claude-scope.cjs +619 -529
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,77 +1,52 @@
1
1
  <div align="center">
2
2
 
3
- <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/typescript/typescript-original.svg" alt="TypeScript" width="80" height="80"/>
3
+ <img src="assets/logo.png" alt="claude-scope logo" width="180" height="180"/>
4
4
 
5
5
  # claude-scope
6
6
 
7
- ### Beautiful, customizable statusline for Claude Code CLI
7
+ ### Real-time statusline for Claude Code CLI
8
8
 
9
9
  [![npm version](https://badge.fury.io/js/claude-scope.svg)](https://www.npmjs.com/package/claude-scope)
10
+ [![Downloads](https://img.shields.io/npm/dm/claude-scope.svg)](https://www.npmjs.com/package/claude-scope)
10
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)
11
12
  [![Node.js Version](https://img.shields.io/node/v/claude-scope.svg)](https://github.com/YuriNachos/claude-scope)
12
- [![GitHub Stars](https://img.shields.io/github/stars/YuriNachos/claude-scope?style=social)](https://github.com/YuriNachos/claude-scope)
13
13
  [![codecov](https://codecov.io/gh/YuriNachos/claude-scope/branch/main/graph/badge.svg)](https://codecov.io/gh/YuriNachos/claude-scope)
14
+ [![GitHub Stars](https://img.shields.io/github/stars/YuriNachos/claude-scope?style=social)](https://github.com/YuriNachos/claude-scope)
14
15
 
15
- **Features** · [Installation](#-quick-start) · [Configuration](#-ai-powered-customization) · [Widgets](#-available-widgets) · [Themes](#-themes)
16
-
17
- </div>
16
+ **Track context, cost, git, docker, and more right in your terminal**
18
17
 
19
- ---
18
+ [Quick Start](#-quick-start) · [Features](#-features) · [Themes](#-themes) · [Configuration](#-configuration) · [Docs](#-documentation)
20
19
 
21
- <p align="center">
22
- <i>Real-time session analytics in your terminal — zero runtime dependencies, 14 widgets, 17 themes</i>
23
- </p>
20
+ </div>
24
21
 
25
22
  ---
26
23
 
27
- ## What is it?
28
-
29
- **claude-scope** is a CLI plugin for [Claude Code](https://claude.ai/code) that displays real-time session information directly in your statusline. Track your context usage, session cost, git status, active tools, and more — all with beautiful customizable themes.
30
-
31
- - **Zero runtime dependencies** — pure TypeScript, native Node.js only
32
- - **14 customizable widgets** — model, context, cost, git, docker, and more
33
- - **17 built-in themes** — from Dracula to Nord to Cyberpunk
34
- - **12 display styles** — balanced, playful, compact, verbose, technical...
35
- - **AI-friendly configuration** — just ask Claude to customize it!
24
+ <div align="center">
25
+ <img src="assets/demo.png" alt="claude-scope demo" width="800"/>
26
+ <br/>
27
+ <sub>claude-scope in action — model, context, cost, git, docker, system metrics and more</sub>
28
+ </div>
36
29
 
37
30
  ---
38
31
 
39
- ## Preview
32
+ ## 🚀 Quick Start
40
33
 
41
- See how claude-scope looks with different themes:
42
-
43
- **Dracula Theme** (default)
44
- ```
45
- Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
46
- main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
47
- ⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
48
- ```
49
-
50
- **Tokyo Night Theme**
51
- ```
52
- Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
53
- main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
54
- ⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
34
+ ```bash
35
+ npx -y claude-scope@latest install
55
36
  ```
56
37
 
57
- **Nord Theme**
58
- ```
59
- Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
60
- main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
61
- ⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
62
- ```
38
+ This single command:
39
+ 1. ✅ Adds statusLine to `~/.claude/settings.json`
40
+ 2. Opens interactive configurator to choose layout, theme, and style
63
41
 
64
- ---
42
+ **Restart Claude Code — done!**
65
43
 
66
- ## Quick Start
67
-
68
- Get up and running in 30 seconds:
44
+ <details>
45
+ <summary>📝 Manual installation</summary>
69
46
 
70
- ```bash
71
- # 1. Install via npx (no installation required)
72
- npx -y claude-scope@latest
47
+ Add to your `~/.claude/settings.json`:
73
48
 
74
- # 2. Add to your ~/.claude/settings.json
49
+ ```json
75
50
  {
76
51
  "statusLine": {
77
52
  "type": "command",
@@ -79,115 +54,119 @@ npx -y claude-scope@latest
79
54
  "padding": 0
80
55
  }
81
56
  }
82
-
83
- # 3. Restart Claude Code — you're done! 🎉
84
57
  ```
85
58
 
86
- After the first run, a default config is automatically created at `~/.claude-scope/config.json` with:
87
- - **Layout**: `rich` (3 lines)
88
- - **Style**: `balanced`
89
- - **Theme**: `dracula`
59
+ </details>
90
60
 
91
61
  ---
92
62
 
93
- ## 🤖 AI-Powered Customization
63
+ ## 💡 Why claude-scope?
94
64
 
95
- **claude-scope is built to work with AI!** Simply ask Claude to customize it:
65
+ **claude-scope** transforms your Claude Code CLI into a powerful command center. See everything you need at a glance:
96
66
 
97
- ```
98
- ➕ "Add the docker widget to the third line"
99
- 🎨 "Switch theme to nord"
100
- 😄 "Make it more playful"
101
- 🎯 "Show only model and context"
102
- ```
103
-
104
- **Example dialogue:**
67
+ | What you get | Why it matters |
68
+ |--------------|----------------|
69
+ | 📊 **Context usage** | Know when you're running low before it's too late |
70
+ | 💰 **Session cost** | Track spending in real-time |
71
+ | 🔀 **Git status** | Branch, changes, tags — no switching windows |
72
+ | 🐳 **Docker containers** | Monitor your stack without leaving the terminal |
73
+ | 🔧 **Active tools** | See what Claude is doing right now |
74
+ | 💻 **System metrics** | CPU, RAM, disk, network — all in one place |
105
75
 
106
- > **User:** Add poker widget and make everything playful
107
- >
108
- > **Claude:** Sure! Adding poker widget and changing styles to playful...
109
- >
110
- > ✅ Done! Your statusline now shows poker hands with emojis.
76
+ ---
111
77
 
112
- Claude will automatically modify `~/.claude-scope/config.json` — changes take effect instantly.
78
+ ## Highlights
113
79
 
114
- **How it works:**
115
- - Config contains `$aiDocs` field linking to [AI-CONFIG-GUIDE](AI-CONFIG-GUIDE.md)
116
- - AI understands all 14 widgets, 12 styles, and 17 themes
117
- - Just say what you want no manual editing needed
80
+ - 🪶 **Zero runtime dependencies** — pure TypeScript, native Node.js only
81
+ - 🧩 **15 customizable widgets** model, context, cost, git, docker, sysmon, and more
82
+ - 🎨 **17 built-in themes** from Dracula to Nord to Cyberpunk
83
+ - 🎭 **12 display styles**balanced, playful, compact, verbose, technical...
84
+ - 🤖 **AI-friendly configuration** — just ask Claude to customize it!
85
+ - ⚡ **Instant setup** — one command, works immediately
118
86
 
119
87
  ---
120
88
 
121
- ## Available Widgets
122
-
123
- | Widget | Description | Balanced | Playful |
124
- |--------|-------------|----------|---------|
125
- | **model** | Current Claude model | `Claude Opus 4.5` | `🤖 Opus 4.5` |
126
- | **context** | Context usage with progress bar | `45% [████████░░░░░░░░░]` | `📊 45% [████████░░░░░░░░░]` |
127
- | **cost** | Session cost in USD | `$0.42` | `💰 $0.42` |
128
- | **duration** | Session duration | `1h 15m 30s` | `⌛ 1h 15m` |
129
- | **lines** | Lines added/removed | `+42/-18` | `➕42 ➖18` |
130
- | **git** | Git branch and changes | `main [+42 -18]` | `🔀 main ⬆42 ⬇18` |
131
- | **git-tag** | Latest git tag | `v0.8.16` | `🏷️ v0.8.16` |
132
- | **config-count** | Config file counts | `📄 1 CLAUDE.md │ 📜 2 rules │ 🔌 3 MCPs` | — |
133
- | **cache-metrics** | Cache statistics | `💾 35.0k cache` | `💾 35.0k cache` |
134
- | **active-tools** | Active tools tracking | `Edits: 5 │ Bash: 3 │ Read: 2` | `✏️ Edit 📖 Read 🐚 Bash` |
135
- | **dev-server** | Dev server status | `⚡ Nuxt (running)` | `🏃 Nuxt` |
136
- | **docker** | Docker containers | `Docker: 3/5 🟢` | `🐳 Docker: 3/5 🟢` |
137
- | **poker** | Poker hands (easter egg) | `Hand: A♠ K♠ │ One Pair!` | `🃏 A♠️ K♠️ │ One Pair!` |
138
-
139
- ### Layout Presets
140
-
141
- | Preset | Lines | Widgets |
142
- |--------|-------|---------|
143
- | **Rich** (default) | 3 | Line 0: model, context, lines, cost, duration<br>Line 1: git, git-tag, cache-metrics, config-count<br>Line 2: dev-server, docker, active-tools |
144
- | **Balanced** | 2 | Line 0: model, context, lines, cost, duration<br>Line 1: git, git-tag, cache-metrics, config-count |
145
- | **Compact** | 1 | Line 0: model, context, cost, git, duration |
89
+ ## 🧩 Features
90
+
91
+ ### Available Widgets
92
+
93
+ | Widget | Description | Example |
94
+ |--------|-------------|---------|
95
+ | **model** | Current Claude model | `Opus 4.5` |
96
+ | **context** | Context usage with progress bar | `42% [████████░░░░░░░░░]` |
97
+ | **cost** | Session cost | `$33.05` |
98
+ | **duration** | Session time | `2h 10m 20s` |
99
+ | **lines** | Lines added/removed | `+382/-112` |
100
+ | **git** | Branch and tracking | `main...origin/main` |
101
+ | **git-tag** | Latest tag | `v0.8.49` |
102
+ | **cache-metrics** | Cache statistics | `81k cache` |
103
+ | **config-count** | Config files count | `CLAUDE.md:1 MCPs:5` |
104
+ | **active-tools** | Running/completed tools | `Bash (1 running, 10 done)` |
105
+ | **dev-server** | Dev server status | `⚡ Nuxt (running)` |
106
+ | **docker** | Docker containers | `Docker: 1 🟢` |
107
+ | **sysmon** | System metrics | `CPU 45% │ RAM 19GB │ Disk 2%` |
108
+ | **poker** | Easter egg | `🃏 A♠ K♠` |
109
+ | **cwd** | Current directory | `~/projects/app` |
110
+
111
+ ### 📐 Layout Presets
112
+
113
+ | Preset | Lines | Best for |
114
+ |--------|-------|----------|
115
+ | **Rich** | 4 | Full information, large terminals |
116
+ | **Balanced** | 2 | Most users, good balance |
117
+ | **Compact** | 1 | Minimal footprint |
146
118
 
147
119
  ---
148
120
 
149
- ## Themes
150
-
151
- **Built-in themes** — from classic to futuristic:
152
-
153
- | Theme | Style | Colors |
154
- |-------|-------|--------|
155
- | `dracula` | Popular | Purple, pink, green |
156
- | `tokyo-night` | Modern | Blue, yellow, green |
157
- | `nord` | Cool | Arctic blues |
158
- | `monokai` | Vibrant | **DEFAULT** — bright accents |
159
- | `catppuccin-mocha` | Pastel | Soft dreamy colors |
160
- | `github-dark-dimmed` | Standard | GitHub's official dark |
161
- | `vscode-dark-plus` | Standard | VSCode's default |
162
- | `one-dark-pro` | IDE | Atom's iconic theme |
163
- | `solarized-dark` | Classic | Precise CIELAB lightness |
164
- | `rose-pine` | Pastel | Rose/violet themed |
165
- | `cyberpunk-neon` | Vibrant | Cyberpunk 2077 neon |
166
- | `professional-blue` | Professional | Business-oriented blue |
167
- | `gray` | Minimal | Neutral gray, minimal |
168
- | `muted-gray` | Muted | Very subtle grays |
169
- | `slate-blue` | Muted | Calm blue-grays |
170
- | `dusty-sage` | Muted | Earthy greens |
171
- | `semantic-classic` | Intuitive | Industry-standard colors |
121
+ ## 🎨 Themes
122
+
123
+ <div align="center">
124
+ <img src="assets/themes.png" alt="claude-scope themes" width="700"/>
125
+ <br/>
126
+ <sub>Same data, different themes — find your style</sub>
127
+ </div>
128
+
129
+ ### 17 Built-in Themes
130
+
131
+ | Category | Themes |
132
+ |----------|--------|
133
+ | 🔥 **Popular** | `dracula`, `tokyo-night`, `nord`, `monokai` |
134
+ | 💻 **IDE** | `vscode-dark-plus`, `one-dark-pro`, `github-dark-dimmed` |
135
+ | 🌸 **Pastel** | `catppuccin-mocha`, `rose-pine` |
136
+ | **Vibrant** | `cyberpunk-neon` |
137
+ | 👔 **Professional** | `professional-blue`, `solarized-dark` |
138
+ | 🌫️ **Minimal** | `gray`, `muted-gray`, `slate-blue`, `dusty-sage` |
139
+ | 🎯 **Semantic** | `semantic-classic` |
140
+
141
+ Switch themes instantly:
142
+ ```bash
143
+ npx -y claude-scope@latest quick-config
144
+ ```
172
145
 
173
146
  ---
174
147
 
175
- ## Configuration
148
+ ## ⚙️ Configuration
176
149
 
177
- ### Quick Config
150
+ ### 🤖 AI-Powered Customization
178
151
 
179
- Interactive configuration menu:
152
+ **claude-scope is built to work with AI!** Just ask Claude:
180
153
 
181
- ```bash
182
- claude-scope quick-config
154
+ ```
155
+ "Add the docker widget to line 3"
156
+ "Switch theme to nord"
157
+ "Make it more playful"
158
+ "Show only model and context"
159
+ "Add system monitoring"
183
160
  ```
184
161
 
185
- Choose from:
186
- - **Layout**: Rich (3 lines), Balanced (2 lines), Compact (1 line)
187
- - **Theme**: 17 themes with live preview
188
- - **Style**: balanced, playful, compact, verbose, technical...
162
+ Claude automatically edits `~/.claude-scope/config.json` — changes take effect instantly.
189
163
 
190
- ### Manual Configuration
164
+ **How it works:**
165
+ - Config contains `$aiDocs` field linking to [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md)
166
+ - AI understands all 15 widgets, 12 styles, and 17 themes
167
+ - Natural language → instant configuration
168
+
169
+ ### 📝 Manual Configuration
191
170
 
192
171
  Edit `~/.claude-scope/config.json` directly:
193
172
 
@@ -197,71 +176,48 @@ Edit `~/.claude-scope/config.json` directly:
197
176
  "$aiDocs": "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
198
177
  "lines": {
199
178
  "0": [
200
- { "id": "model", "style": "balanced", "colors": { "name": "\\u001b[38;2;189;147;229m" } },
201
- { "id": "context", "style": "balanced", "colors": { "low": "...", "medium": "...", "high": "..." } }
179
+ { "id": "model", "style": "balanced", "colors": { ... } },
180
+ { "id": "context", "style": "balanced", "colors": { ... } }
181
+ ],
182
+ "1": [
183
+ { "id": "git", "style": "balanced", "colors": { ... } }
202
184
  ]
203
185
  }
204
186
  }
205
187
  ```
206
188
 
207
- See [AI-CONFIG-GUIDE](AI-CONFIG-GUIDE.md) for complete configuration reference.
189
+ See [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) for complete reference.
208
190
 
209
191
  ---
210
192
 
211
- ## Advanced Features
193
+ ## 📚 Documentation
212
194
 
213
- <details>
214
- <summary><b>Zero Runtime Dependencies</b></summary>
215
-
216
- claude-scope is written in pure TypeScript and uses only native Node.js modules. No external runtime dependencies maximum performance and security.
217
- </details>
218
-
219
- <details>
220
- <summary><b>Layout & Line System</b></summary>
221
-
222
- - **Line 0**: Primary info (model, context, cost, duration, lines, git, dev-server, docker)
223
- - **Line 1**: Extended (git-tag, config-count)
224
- - **Line 2**: Activity (cache-metrics, active-tools)
225
- - **Line 4**: Poker widget (easter egg)
226
- - **Line 5**: Empty line widget
227
- </details>
228
-
229
- <details>
230
- <summary><b>Widget System</b></summary>
231
-
232
- Each widget implements the `IWidget` interface with lifecycle methods:
233
- - `initialize()` — Set up the widget
234
- - `render()` — Generate output
235
- - `update()` — Handle new data
236
- - `isEnabled()` — Check if active
237
-
238
- Widgets gracefully degrade on errors — if something fails, it returns `null`.
239
- </details>
195
+ | Topic | Description |
196
+ |-------|-------------|
197
+ | [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) | Complete configuration reference for AI |
198
+ | [ARCHITECTURE.md](docs/ARCHITECTURE.md) | System architecture, data flow |
199
+ | [WIDGETS.md](docs/WIDGETS.md) | All widgets, styles, examples |
200
+ | [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) | Theme system, customization |
201
+ | [CHANGELOG.md](docs/CHANGELOG.md) | Version history, roadmap |
240
202
 
241
203
  ---
242
204
 
243
- ## Documentation
205
+ ## 📋 Requirements
244
206
 
245
- | Topic | Link |
246
- |-------|------|
247
- | Architecture, data flow, providers | [ARCHITECTURE.md](docs/ARCHITECTURE.md) |
248
- | All widgets, styles, examples | [WIDGETS.md](docs/WIDGETS.md) |
249
- | Theme system, customization | [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) |
250
- | Formatters, ANSI colors | [FORMATTERS.md](docs/FORMATTERS.md) |
251
- | Version history, roadmap | [CHANGELOG.md](docs/CHANGELOG.md) |
207
+ - **Node.js** 18+
208
+ - **Claude Code** CLI
252
209
 
253
210
  ---
254
211
 
255
- ## Requirements
212
+ ## 🤝 Contributing
256
213
 
257
- - **Node.js** 18 or higher
258
- - **Claude Code** CLI
214
+ Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
259
215
 
260
216
  ---
261
217
 
262
- ## License
218
+ ## 📄 License
263
219
 
264
- [MIT](LICENSE.md) — feel free to use this project in your own work!
220
+ [MIT](LICENSE.md) — use freely in your projects.
265
221
 
266
222
  ---
267
223
 
@@ -269,6 +225,10 @@ Widgets gracefully degrade on errors — if something fails, it returns `null`.
269
225
 
270
226
  **Made with ❤️ by [YuriNachos](https://github.com/YuriNachos)**
271
227
 
272
- [GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [Contributing](CONTRIBUTING.md)
228
+ [GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [npm](https://www.npmjs.com/package/claude-scope)
229
+
230
+ <br/>
231
+
232
+ If you find claude-scope useful, consider giving it a ⭐
273
233
 
274
234
  </div>