faster-vibecraft 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +6 -0
  2. package/bin/cli.js +29 -26
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -45,6 +45,7 @@ npx faster-vibecraft
45
45
 
46
46
  ### Using the original version:
47
47
  ```bash
48
+ # Original vibecraft by nearcyan
48
49
  npx vibecraft setup
49
50
  npx vibecraft
50
51
  ```
@@ -162,6 +163,11 @@ Options:
162
163
  --port, -p <port> WebSocket server port (default: 4003)
163
164
  --help, -h Show help
164
165
  --version, -v Show version
166
+
167
+ Commands:
168
+ setup Configure Claude Code hooks automatically
169
+ uninstall Remove faster-vibecraft hooks (keeps your data)
170
+ doctor Diagnose common issues
165
171
  ```
166
172
 
167
173
  ## Installation
package/bin/cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Vibeshop CLI - 3D visualization for Claude Code
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/nearcyan/vibecraft
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faster-vibecraft",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
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/",