faster-vibecraft 0.2.0 → 0.2.2
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 +8 -0
- package/bin/cli.js +29 -26
- package/dist/index.html +18 -18
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Manage Claude Code in style with **70% better performance**!
|
|
6
6
|
|
|
7
|
+
**[中文文档](README_CN.md)**
|
|
8
|
+
|
|
7
9
|
**[Try it instantly at vibecraft.sh](https://vibecraft.sh)** — still connects to your local Claude Code instances!
|
|
8
10
|
|
|
9
11
|
**✨ Phase 3 Performance Optimization:**
|
|
@@ -45,6 +47,7 @@ npx faster-vibecraft
|
|
|
45
47
|
|
|
46
48
|
### Using the original version:
|
|
47
49
|
```bash
|
|
50
|
+
# Original vibecraft by nearcyan
|
|
48
51
|
npx vibecraft setup
|
|
49
52
|
npx vibecraft
|
|
50
53
|
```
|
|
@@ -162,6 +165,11 @@ Options:
|
|
|
162
165
|
--port, -p <port> WebSocket server port (default: 4003)
|
|
163
166
|
--help, -h Show help
|
|
164
167
|
--version, -v Show version
|
|
168
|
+
|
|
169
|
+
Commands:
|
|
170
|
+
setup Configure Claude Code hooks automatically
|
|
171
|
+
uninstall Remove faster-vibecraft hooks (keeps your data)
|
|
172
|
+
doctor Diagnose common issues
|
|
165
173
|
```
|
|
166
174
|
|
|
167
175
|
## Installation
|
package/bin/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Faster-Vibecraft CLI - 3D visualization for Claude Code (optimized)
|
|
5
5
|
*
|
|
6
6
|
* Usage:
|
|
7
|
-
* npx vibecraft # Start the server
|
|
8
|
-
* npx vibecraft --help # Show help
|
|
7
|
+
* npx faster-vibecraft # Start the server
|
|
8
|
+
* npx faster-vibecraft --help # Show help
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
// Check if cwd exists (common issue when running from deleted directory)
|
|
@@ -16,7 +16,7 @@ try {
|
|
|
16
16
|
console.error('This happens when the directory you ran the command from was deleted.')
|
|
17
17
|
console.error('\nFix: cd to a valid directory first:')
|
|
18
18
|
console.error(' cd ~')
|
|
19
|
-
console.error(' npx vibecraft setup')
|
|
19
|
+
console.error(' npx faster-vibecraft setup')
|
|
20
20
|
process.exit(1)
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -95,7 +95,7 @@ function printHealthCheck() {
|
|
|
95
95
|
|
|
96
96
|
if (!hooksResult.configured) {
|
|
97
97
|
warnings.push(` [!] Hooks not configured - events won't be captured
|
|
98
|
-
Run: npx vibecraft setup
|
|
98
|
+
Run: npx faster-vibecraft setup
|
|
99
99
|
Then restart Claude Code`)
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -111,13 +111,13 @@ const args = process.argv.slice(2)
|
|
|
111
111
|
|
|
112
112
|
if (args.includes('--help') || args.includes('-h')) {
|
|
113
113
|
console.log(`
|
|
114
|
-
vibecraft - 3D visualization for Claude Code
|
|
114
|
+
faster-vibecraft - 3D visualization for Claude Code (optimized)
|
|
115
115
|
|
|
116
116
|
Usage:
|
|
117
|
-
vibecraft [options]
|
|
118
|
-
vibecraft setup Configure Claude Code hooks automatically
|
|
119
|
-
vibecraft uninstall Remove vibecraft hooks (keeps your data)
|
|
120
|
-
vibecraft doctor Diagnose common issues
|
|
117
|
+
faster-vibecraft [options]
|
|
118
|
+
faster-vibecraft setup Configure Claude Code hooks automatically
|
|
119
|
+
faster-vibecraft uninstall Remove faster-vibecraft hooks (keeps your data)
|
|
120
|
+
faster-vibecraft doctor Diagnose common issues
|
|
121
121
|
|
|
122
122
|
Options:
|
|
123
123
|
--port, -p <port> WebSocket server port (default: 4003)
|
|
@@ -130,12 +130,13 @@ Environment Variables:
|
|
|
130
130
|
VIBECRAFT_DEBUG Enable debug logging (true/false)
|
|
131
131
|
|
|
132
132
|
Setup:
|
|
133
|
-
1. Run: vibecraft setup
|
|
134
|
-
2. Start server: vibecraft
|
|
133
|
+
1. Run: faster-vibecraft setup
|
|
134
|
+
2. Start server: faster-vibecraft
|
|
135
135
|
3. Open frontend in browser
|
|
136
136
|
|
|
137
137
|
Website: https://vibecraft.sh
|
|
138
|
-
GitHub: https://github.com/
|
|
138
|
+
GitHub: https://github.com/palomyates516-alt/faster-vibecraft
|
|
139
|
+
Original: https://github.com/nearcyan/vibecraft
|
|
139
140
|
`)
|
|
140
141
|
process.exit(0)
|
|
141
142
|
}
|
|
@@ -150,7 +151,7 @@ if (args.includes('--hook-path')) {
|
|
|
150
151
|
if (args[0] === 'setup') {
|
|
151
152
|
const { writeFileSync, copyFileSync, chmodSync } = await import('fs')
|
|
152
153
|
|
|
153
|
-
console.log('Setting up vibecraft hooks...\n')
|
|
154
|
+
console.log('Setting up faster-vibecraft hooks...\n')
|
|
154
155
|
|
|
155
156
|
// ==========================================================================
|
|
156
157
|
// Step 1: Find Claude Code settings
|
|
@@ -264,6 +265,7 @@ if (args[0] === 'setup') {
|
|
|
264
265
|
const addHook = (eventType, entry) => {
|
|
265
266
|
settings.hooks[eventType] = settings.hooks[eventType] || []
|
|
266
267
|
// Remove any existing vibecraft hooks (from any location)
|
|
268
|
+
// This handles both original vibecraft and faster-vibecraft
|
|
267
269
|
settings.hooks[eventType] = settings.hooks[eventType].filter(h =>
|
|
268
270
|
!h.hooks?.some(hh => hh.command?.includes('vibecraft-hook'))
|
|
269
271
|
)
|
|
@@ -339,14 +341,14 @@ if (args[0] === 'setup') {
|
|
|
339
341
|
if (serverRunning) {
|
|
340
342
|
// Update scenario
|
|
341
343
|
console.log('\nTo complete the update:')
|
|
342
|
-
console.log(' 1. Restart vibecraft server (Ctrl+C, then run: npx vibecraft)')
|
|
344
|
+
console.log(' 1. Restart faster-vibecraft server (Ctrl+C, then run: npx faster-vibecraft)')
|
|
343
345
|
console.log(' 2. Restart Claude Code (for hook changes to take effect)')
|
|
344
346
|
console.log(' 3. Refresh browser\n')
|
|
345
347
|
} else {
|
|
346
348
|
// Fresh install scenario
|
|
347
349
|
console.log('\nNext steps:')
|
|
348
350
|
console.log(' 1. Restart Claude Code (required for hooks to take effect)')
|
|
349
|
-
console.log(' 2. Run: npx vibecraft')
|
|
351
|
+
console.log(' 2. Run: npx faster-vibecraft')
|
|
350
352
|
console.log(' 3. Open http://localhost:4003 in your browser\n')
|
|
351
353
|
}
|
|
352
354
|
|
|
@@ -357,7 +359,7 @@ if (args[0] === 'setup') {
|
|
|
357
359
|
if (args[0] === 'uninstall') {
|
|
358
360
|
const { writeFileSync, rmSync } = await import('fs')
|
|
359
361
|
|
|
360
|
-
console.log('Uninstalling vibecraft hooks...\n')
|
|
362
|
+
console.log('Uninstalling faster-vibecraft hooks...\n')
|
|
361
363
|
|
|
362
364
|
// ==========================================================================
|
|
363
365
|
// Step 1: Find Claude Code settings
|
|
@@ -487,7 +489,7 @@ if (args[0] === 'uninstall') {
|
|
|
487
489
|
// Doctor command - diagnose common issues
|
|
488
490
|
if (args[0] === 'doctor') {
|
|
489
491
|
console.log('='.repeat(50))
|
|
490
|
-
console.log('Vibecraft Doctor - Diagnosing your setup...')
|
|
492
|
+
console.log('Faster-Vibecraft Doctor - Diagnosing your setup...')
|
|
491
493
|
console.log('='.repeat(50))
|
|
492
494
|
console.log()
|
|
493
495
|
|
|
@@ -564,7 +566,7 @@ if (args[0] === 'doctor') {
|
|
|
564
566
|
}
|
|
565
567
|
} else {
|
|
566
568
|
console.log(` ✗ Hook script not found: ${hookScript}`)
|
|
567
|
-
issues.push('Hook script not installed. Run: npx vibecraft setup')
|
|
569
|
+
issues.push('Hook script not installed. Run: npx faster-vibecraft setup')
|
|
568
570
|
}
|
|
569
571
|
|
|
570
572
|
// -------------------------------------------------------------------------
|
|
@@ -587,7 +589,7 @@ if (args[0] === 'doctor') {
|
|
|
587
589
|
|
|
588
590
|
if (!settingsPath) {
|
|
589
591
|
console.log(' ✗ No Claude settings file found')
|
|
590
|
-
issues.push('Claude settings not found. Run: npx vibecraft setup')
|
|
592
|
+
issues.push('Claude settings not found. Run: npx faster-vibecraft setup')
|
|
591
593
|
} else {
|
|
592
594
|
console.log(` ✓ Settings file: ${settingsPath}`)
|
|
593
595
|
|
|
@@ -619,8 +621,8 @@ if (args[0] === 'doctor') {
|
|
|
619
621
|
console.log(` Missing: ${missingHooks.join(', ')}`)
|
|
620
622
|
warnings.push(`Some hooks not configured: ${missingHooks.join(', ')}`)
|
|
621
623
|
} else {
|
|
622
|
-
console.log(' ✗ No vibecraft hooks configured')
|
|
623
|
-
issues.push('Hooks not configured. Run: npx vibecraft setup')
|
|
624
|
+
console.log(' ✗ No faster-vibecraft hooks configured')
|
|
625
|
+
issues.push('Hooks not configured. Run: npx faster-vibecraft setup')
|
|
624
626
|
}
|
|
625
627
|
} catch (e) {
|
|
626
628
|
console.log(` ✗ Failed to parse settings: ${e.message}`)
|
|
@@ -661,7 +663,7 @@ if (args[0] === 'doctor') {
|
|
|
661
663
|
}
|
|
662
664
|
} else {
|
|
663
665
|
console.log(` ✗ Data directory not found: ${dataDir}`)
|
|
664
|
-
issues.push('Data directory not created. Run: npx vibecraft setup')
|
|
666
|
+
issues.push('Data directory not created. Run: npx faster-vibecraft setup')
|
|
665
667
|
}
|
|
666
668
|
|
|
667
669
|
// -------------------------------------------------------------------------
|
|
@@ -683,7 +685,7 @@ if (args[0] === 'doctor') {
|
|
|
683
685
|
}
|
|
684
686
|
} catch {
|
|
685
687
|
console.log(' ⚠ Server not running on port 4003')
|
|
686
|
-
warnings.push('Server not running. Start with: npx vibecraft')
|
|
688
|
+
warnings.push('Server not running. Start with: npx faster-vibecraft')
|
|
687
689
|
}
|
|
688
690
|
|
|
689
691
|
// -------------------------------------------------------------------------
|
|
@@ -743,7 +745,7 @@ if (args[0] === 'doctor') {
|
|
|
743
745
|
|
|
744
746
|
if (args.includes('--version') || args.includes('-v')) {
|
|
745
747
|
const pkg = JSON.parse(readFileSync(resolve(ROOT, 'package.json'), 'utf-8'))
|
|
746
|
-
console.log(`vibecraft v${pkg.version}`)
|
|
748
|
+
console.log(`faster-vibecraft v${pkg.version}`)
|
|
747
749
|
process.exit(0)
|
|
748
750
|
}
|
|
749
751
|
|
|
@@ -764,8 +766,9 @@ if (!existsSync(dataDir)) {
|
|
|
764
766
|
console.log(`
|
|
765
767
|
╭─────────────────────────────────────╮
|
|
766
768
|
│ │
|
|
767
|
-
│ vibecraft
|
|
769
|
+
│ faster-vibecraft │
|
|
768
770
|
│ 3D visualization for Claude Code │
|
|
771
|
+
│ (optimized version) │
|
|
769
772
|
│ │
|
|
770
773
|
╰─────────────────────────────────────╯
|
|
771
774
|
`)
|
package/dist/index.html
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="description" content="Watch and Manage Claude Code in 3D!" />
|
|
7
7
|
<meta name="theme-color" content="#0f172a" />
|
|
8
|
-
<title>Vibecraft - Watch and Manage Claude Code in 3D!</title>
|
|
8
|
+
<title>Faster-Vibecraft - Watch and Manage Claude Code in 3D!</title>
|
|
9
9
|
|
|
10
10
|
<!-- Favicon -->
|
|
11
11
|
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
12
12
|
|
|
13
13
|
<!-- Open Graph / Social -->
|
|
14
14
|
<meta property="og:type" content="website" />
|
|
15
|
-
<meta property="og:site_name" content="Vibecraft" />
|
|
16
|
-
<meta property="og:title" content="Vibecraft - Watch and Manage Claude Code in 3D!" />
|
|
15
|
+
<meta property="og:site_name" content="Faster-Vibecraft" />
|
|
16
|
+
<meta property="og:title" content="Faster-Vibecraft - Watch and Manage Claude Code in 3D!" />
|
|
17
17
|
<meta property="og:description" content="Watch and Manage Claude Code in 3D!" />
|
|
18
18
|
<meta property="og:image" content="https://vibecraft.sh/og-image.png" />
|
|
19
19
|
<meta property="og:url" content="https://vibecraft.sh" />
|
|
20
20
|
<meta name="twitter:card" content="summary_large_image" />
|
|
21
|
-
<meta name="twitter:title" content="Vibecraft - Watch and Manage Claude Code in 3D!" />
|
|
21
|
+
<meta name="twitter:title" content="Faster-Vibecraft - Watch and Manage Claude Code in 3D!" />
|
|
22
22
|
<meta name="twitter:description" content="Watch and Manage Claude Code in 3D!" />
|
|
23
23
|
<meta name="twitter:image" content="https://vibecraft.sh/og-image.png" />
|
|
24
24
|
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
<!-- Right: Activity Feed -->
|
|
107
107
|
<div id="feed-panel">
|
|
108
108
|
<div id="feed-header">
|
|
109
|
-
<h2>Vibecraft <span class="muted">(
|
|
109
|
+
<h2>Faster-Vibecraft <span class="muted">(optimized)</span></h2>
|
|
110
110
|
<div class="feed-header-right">
|
|
111
111
|
<span id="attention-badge" class="attention-badge hidden">0</span>
|
|
112
|
-
<button id="about-btn" class="feed-about-btn" title="About Vibecraft">?</button>
|
|
112
|
+
<button id="about-btn" class="feed-about-btn" title="About Faster-Vibecraft">?</button>
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
115
|
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
<input type="number" id="settings-port" value="4003" min="1" max="65535" />
|
|
278
278
|
<span id="settings-port-status" class="port-status"></span>
|
|
279
279
|
</div>
|
|
280
|
-
<div class="field-hint">Port where the Vibecraft agent is running. Changes require refresh.</div>
|
|
280
|
+
<div class="field-hint">Port where the Faster-Vibecraft agent is running. Changes require refresh.</div>
|
|
281
281
|
</div>
|
|
282
282
|
|
|
283
283
|
<div class="modal-field">
|
|
@@ -305,23 +305,23 @@
|
|
|
305
305
|
<div id="about-modal">
|
|
306
306
|
<div class="modal-content about-modal-content">
|
|
307
307
|
<div class="modal-header">
|
|
308
|
-
<h3>Vibecraft</h3>
|
|
308
|
+
<h3>Faster-Vibecraft</h3>
|
|
309
309
|
</div>
|
|
310
310
|
|
|
311
311
|
<div class="about-description">
|
|
312
|
-
<p>Vibecraft is a
|
|
312
|
+
<p>Faster-Vibecraft is a 3D visualization app for Claude Code with 70% better performance.</p>
|
|
313
313
|
<p>Watch and manage your claudes in real-time - now featuring hexagonal grids!</p>
|
|
314
|
-
<p class="about-subtitle">Vibecraft syncs with claude code instances running on your own machine. No files or
|
|
314
|
+
<p class="about-subtitle">Faster-Vibecraft syncs with claude code instances running on your own machine. No files or
|
|
315
315
|
code are sent to the web server.</p>
|
|
316
316
|
</div>
|
|
317
317
|
|
|
318
318
|
<div class="about-section">
|
|
319
319
|
<div class="about-section-title">Commands</div>
|
|
320
320
|
<div class="about-commands">
|
|
321
|
-
<div class="about-cmd"><code>npx vibecraft</code><span>Start server</span></div>
|
|
322
|
-
<div class="about-cmd"><code>npx vibecraft doctor</code><span>Diagnose issues</span></div>
|
|
323
|
-
<div class="about-cmd"><code>npx vibecraft setup</code><span>Reinstall hooks</span></div>
|
|
324
|
-
<div class="about-cmd"><code>npx vibecraft uninstall</code><span>Remove hooks</span></div>
|
|
321
|
+
<div class="about-cmd"><code>npx faster-vibecraft</code><span>Start server</span></div>
|
|
322
|
+
<div class="about-cmd"><code>npx faster-vibecraft doctor</code><span>Diagnose issues</span></div>
|
|
323
|
+
<div class="about-cmd"><code>npx faster-vibecraft setup</code><span>Reinstall hooks</span></div>
|
|
324
|
+
<div class="about-cmd"><code>npx faster-vibecraft uninstall</code><span>Remove hooks</span></div>
|
|
325
325
|
</div>
|
|
326
326
|
</div>
|
|
327
327
|
|
|
@@ -471,17 +471,17 @@
|
|
|
471
471
|
<!-- Not Connected Overlay -->
|
|
472
472
|
<div id="not-connected-overlay">
|
|
473
473
|
<div class="not-connected-content">
|
|
474
|
-
<h2>Vibecraft!</h2>
|
|
474
|
+
<h2>Faster-Vibecraft!</h2>
|
|
475
475
|
<p class="not-connected-description">
|
|
476
|
-
Vibecraft is a 3D app to watch and manage Claude Code instances.
|
|
476
|
+
Faster-Vibecraft is a 3D app to watch and manage Claude Code instances with 70% better performance.
|
|
477
477
|
</p>
|
|
478
478
|
<p class="not-connected-privacy">
|
|
479
|
-
Vibecraft syncs with CC instances running on your local machine. Vibecraft is an interface - no files or code
|
|
479
|
+
Faster-Vibecraft syncs with CC instances running on your local machine. Faster-Vibecraft is an interface - no files or code
|
|
480
480
|
are sent to this server.
|
|
481
481
|
</p>
|
|
482
482
|
<div class="not-connected-setup">
|
|
483
483
|
<p class="not-connected-setup-label">Get started:</p>
|
|
484
|
-
<div class="not-connected-code">npx vibecraft setup && npx vibecraft</div>
|
|
484
|
+
<div class="not-connected-code">npx faster-vibecraft setup && npx faster-vibecraft</div>
|
|
485
485
|
</div>
|
|
486
486
|
<div class="not-connected-actions">
|
|
487
487
|
<button class="not-connected-btn not-connected-btn-retry" id="retry-connection">↻ Reconnect</button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "faster-vibecraft",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "3D visualization of Claude Code as an interactive workshop with 70% better performance",
|
|
5
5
|
"author": "palomyates516-alt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
21
|
"bin": {
|
|
22
|
-
"vibecraft": "./bin/cli.js"
|
|
22
|
+
"faster-vibecraft": "./bin/cli.js"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"bin/",
|