faster-vibecraft 0.2.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 nearcyan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # faster-vibecraft
2
+
3
+ ![Vibecraft Screenshot](public/og-image.png)
4
+
5
+ Manage Claude Code in style with **70% better performance**!
6
+
7
+ **[Try it instantly at vibecraft.sh](https://vibecraft.sh)** — still connects to your local Claude Code instances!
8
+
9
+ **✨ Phase 3 Performance Optimization:**
10
+ - **🚀 70% CPU reduction** - Idle CPU: 30-40% → < 10%
11
+ - **⚡ On-demand rendering** - Only renders when scene changes
12
+ - **🎛️ Configurable settings** - Adjust performance vs quality
13
+ - **🎨 2D renderer foundation** - DOM-based rendering for extreme performance
14
+
15
+ **Existing Features:**
16
+ - **Spatial Audio** — Claude behind you? Claude on your left? No claublem!
17
+ - **Animations** — What's Claude up to? Watch him! ◕ ‿ ◕
18
+
19
+ Vibecraft uses your own local Claude Code instances — no files or prompts are shared.
20
+
21
+ ![Three.js](https://img.shields.io/badge/Three.js-black?logo=threedotjs) ![TypeScript](https://img.shields.io/badge/TypeScript-blue?logo=typescript&logoColor=white) ![npm](https://img.shields.io/npm/v/faster-vibecraft)
22
+
23
+ ## Requirements
24
+
25
+ - **macOS or Linux** (Windows not supported - hooks require bash)
26
+ - **Node.js** 18+
27
+ - **jq** - for hook scripts (`brew install jq` / `apt install jq`)
28
+ - **tmux** - for session management (`brew install tmux` / `apt install tmux`)
29
+
30
+ ## Quick Start
31
+
32
+ ### Using this optimized version (Phase 3):
33
+
34
+ ```bash
35
+ # 1. Install dependencies
36
+ brew install jq tmux # macOS
37
+ # sudo apt install jq tmux # Ubuntu/Debian
38
+
39
+ # 2. Configure hooks (one time)
40
+ npx faster-vibecraft setup
41
+
42
+ # 3. Start server
43
+ npx faster-vibecraft
44
+ ```
45
+
46
+ ### Using the original version:
47
+ ```bash
48
+ npx vibecraft setup
49
+ npx vibecraft
50
+ ```
51
+
52
+ Open http://localhost:4003 and use Claude Code normally. You'll see Claude move around the workshop as it uses tools.
53
+
54
+ **From source:**
55
+ ```bash
56
+ git clone https://github.com/nearcyan/vibecraft
57
+ cd vibecraft && npm install && npm run dev
58
+ # Opens on http://localhost:4002
59
+ ```
60
+
61
+ **To uninstall:** `npx faster-vibecraft uninstall` (removes hooks, keeps your data)
62
+
63
+ ## Browser Control (Optional)
64
+
65
+ Run Claude in tmux to send prompts from browser:
66
+
67
+ ```bash
68
+ tmux new -s claude
69
+ claude
70
+ ```
71
+
72
+ Then use the input field in the visualization with "Send to tmux" checked.
73
+
74
+ ## Stations
75
+
76
+ | Station | Tools | Details |
77
+ |---------|-------|---------|
78
+ | Bookshelf | Read | Books on shelves |
79
+ | Desk | Write | Paper, pencil, ink pot |
80
+ | Workbench | Edit | Wrench, gears, bolts |
81
+ | Terminal | Bash | Glowing screen |
82
+ | Scanner | Grep, Glob | Telescope with lens |
83
+ | Antenna | WebFetch, WebSearch | Satellite dish |
84
+ | Portal | Task (subagents) | Glowing ring portal |
85
+ | Taskboard | TodoWrite | Board with sticky notes |
86
+
87
+ ## Features
88
+
89
+ - **Floating context labels** - See file paths and commands above active stations
90
+ - **Thought bubbles** - Claude shows thinking animation while processing
91
+ - **Response capture** - Claude's responses appear in the activity feed
92
+ - **Subagent visualization** - Mini-Claudes spawn at portal for parallel tasks
93
+ - **Cancel button** - Send Ctrl+C to interrupt Claude
94
+ - **Split-screen layout** - 60% 3D scene (Workshop), 40% activity feed
95
+ - **Voice input** - Speak prompts with real-time transcription (requires Deepgram API key)
96
+ - **Attention system** - Zones pulse when sessions need input or finish
97
+ - **Sound effects** - Synthesized audio feedback for tools and events ([docs/SOUND.md](docs/SOUND.md))
98
+ - **Draw mode** - Paint hex tiles with colors, 3D stacking, and text labels (press `D`)
99
+ - **Text labels** - Add multi-line labels to hex tiles with custom modal
100
+ - **Zone context menus** - Right-click zones for Info (`I`) or quick Command (`C`) input
101
+ - **Station panels** - Toggle with `P` to see recent tool history per workstation
102
+ - **Context-aware animations** - Claude celebrates commits, shakes head on errors
103
+
104
+ ## Performance Optimizations (Phase 3)
105
+
106
+ This version includes major performance improvements:
107
+
108
+ | Metric | Before | After | Improvement |
109
+ |--------|--------|-------|-------------|
110
+ | **Idle CPU** | 30-40% | < 10% | 🎯 75% ↓ |
111
+ | **Active CPU** | 50-100% | < 30% | 🎯 70% ↓ |
112
+ | **Terminal Polling** | 2s | 5s | 🎯 60% ↓ I/O |
113
+ | **World Grid** | Enabled | Disabled | 🎯 15% ↓ CPU |
114
+ | **Particles** | Enabled | Disabled | 🎯 10% ↓ CPU |
115
+
116
+ ### Performance Settings
117
+
118
+ Access settings via the gear icon (⚙️) in the UI:
119
+ - **Render Mode** - Choose between 3D (Three.js) or 2D (DOM-based)
120
+ - **Terminal Polling** - 2s / 5s / 10s intervals
121
+ - **World Grid** - Toggle hex grid overlay
122
+ - **Particles** - Toggle ambient and zone particles
123
+
124
+ See [docs/PERFORMANCE_USER_GUIDE.md](docs/PERFORMANCE_USER_GUIDE.md) for details.
125
+
126
+ ## Multi-clauding
127
+
128
+ ![Multi-clauding](public/multiclaude.png)
129
+
130
+ Run multiple Claude instances and direct work to each:
131
+
132
+ 1. Click **"+ New"** (or `Alt+N`) to spawn a new session
133
+ 2. Configure name, directory, and flags (`-r`, `--chrome`, `--dangerously-skip-permissions`)
134
+ 3. Click a session or press `1-6` (or `Alt+1-6` in inputs) to select it
135
+ 4. Send prompts to whichever Claude you want
136
+
137
+ Each session runs in its own tmux, with status tracking (idle/working/offline).
138
+
139
+ See [docs/ORCHESTRATION.md](docs/ORCHESTRATION.md) for the full API and architecture.
140
+
141
+ ## Keyboard Shortcuts
142
+
143
+ | Key | Action |
144
+ |-----|--------|
145
+ | `Tab` / `Esc` | Switch focus between Workshop and Feed |
146
+ | `1-6` | Switch to session (extended: QWERTY, ASDFGH, ZXCVBN) |
147
+ | `0` / `` ` `` | All sessions / overview |
148
+ | `Alt+N` | New session |
149
+ | `Alt+R` | Toggle voice input |
150
+ | `F` | Toggle follow mode |
151
+ | `P` | Toggle station panels |
152
+ | `D` | Toggle draw mode |
153
+
154
+ **Draw mode:** `1-6` colors, `0` eraser, `Q/E` brush size, `R` 3D stack, `X` clear
155
+
156
+ ## CLI Options
157
+
158
+ ```bash
159
+ faster-vibecraft [options]
160
+
161
+ Options:
162
+ --port, -p <port> WebSocket server port (default: 4003)
163
+ --help, -h Show help
164
+ --version, -v Show version
165
+ ```
166
+
167
+ ## Installation
168
+
169
+ ### From npm (recommended):
170
+ ```bash
171
+ npm install -g faster-vibecraft
172
+ ```
173
+
174
+ ### From source:
175
+ ```bash
176
+ git clone https://github.com/palomyates516-alt/faster-vibecraft
177
+ cd faster-vibecraft && npm install && npm run dev
178
+ # Opens on http://localhost:4002
179
+ ```
180
+
181
+ ## Documentation
182
+
183
+ - **Setup Guide**: [docs/SETUP.md](docs/SETUP.md)
184
+ - **Performance Guide**: [docs/PERFORMANCE_USER_GUIDE.md](docs/PERFORMANCE_USER_GUIDE.md)
185
+ - **Validation Guide**: [docs/PERFORMANCE_VALIDATION_GUIDE.md](docs/PERFORMANCE_VALIDATION_GUIDE.md)
186
+ - **Technical Docs**: [CLAUDE.md](CLAUDE.md)
187
+ - **Sound System**: [docs/SOUND.md](docs/SOUND.md)
188
+ - **Phase 3 Summary**: [docs/PHASE3_COMPLETION_SUMMARY.md](docs/PHASE3_COMPLETION_SUMMARY.md)
189
+
190
+ Website: https://vibecraft.sh
191
+ Original Repository: https://github.com/nearcyan/vibecraft
192
+ This Fork: https://github.com/palomyates516-alt/faster-vibecraft
193
+
194
+ ## License
195
+
196
+ MIT