viewcc 1.0.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 +21 -0
- package/README.md +160 -0
- package/bin/claude-viz.js +9 -0
- package/dist/assets/index-BQSevtzO.js +110 -0
- package/dist/assets/index-lL8g_3Ei.css +1 -0
- package/dist/data/graph-data.json +388 -0
- package/dist/index.html +23 -0
- package/lib/cli.d.ts +3 -0
- package/lib/cli.d.ts.map +1 -0
- package/lib/cli.js +132 -0
- package/lib/cli.js.map +1 -0
- package/lib/scanner.d.ts +15 -0
- package/lib/scanner.d.ts.map +1 -0
- package/lib/scanner.js +330 -0
- package/lib/scanner.js.map +1 -0
- package/lib/server.d.ts +12 -0
- package/lib/server.d.ts.map +1 -0
- package/lib/server.js +79 -0
- package/lib/server.js.map +1 -0
- package/lib/utils.d.ts +15 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +67 -0
- package/lib/utils.js.map +1 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Claude Code Visualizer Contributors
|
|
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,160 @@
|
|
|
1
|
+
# Claude Code Visualizer
|
|
2
|
+
|
|
3
|
+
> Interactive visualization tool for Claude Code agents and skills
|
|
4
|
+
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
**Claude Code Visualizer** helps you understand and navigate your Claude Code project structure through an interactive graph visualization.
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
- 📊 **Interactive Graph Visualization** - See all your agents and skills in a hierarchical layout
|
|
12
|
+
- 🔄 **Real-time Connection Status** - Monitor SSE server connectivity
|
|
13
|
+
- 🎯 **Execute from UI** - Run agents and skills directly from the graph
|
|
14
|
+
- 🎨 **Clear Visual Hierarchy** - Distinguish between agents, skills, and their relationships
|
|
15
|
+
- ⚡ **Fast Navigation** - Click nodes to see details, zoom and pan freely
|
|
16
|
+
|
|
17
|
+
## 🚀 Quick Start
|
|
18
|
+
|
|
19
|
+
### Prerequisites
|
|
20
|
+
|
|
21
|
+
- [Claude Code](https://github.com/anthropics/claude-code) installed (optional)
|
|
22
|
+
- Node.js 18+
|
|
23
|
+
|
|
24
|
+
### Installation
|
|
25
|
+
|
|
26
|
+
**No installation required!** Just run with npx:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Navigate to any Claude Code project
|
|
30
|
+
cd ~/my-claude-project
|
|
31
|
+
|
|
32
|
+
# Run visualizer
|
|
33
|
+
npx viewcc
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
That's it! The visualizer will:
|
|
37
|
+
- ✅ Scan your project
|
|
38
|
+
- ✅ Start the server
|
|
39
|
+
- ✅ Open your browser automatically
|
|
40
|
+
|
|
41
|
+
### Usage
|
|
42
|
+
|
|
43
|
+
**Basic usage:**
|
|
44
|
+
```bash
|
|
45
|
+
npx viewcc
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Advanced options:**
|
|
49
|
+
```bash
|
|
50
|
+
npx viewcc --no-open # Don't open browser
|
|
51
|
+
npx viewcc --no-scan # Use existing data
|
|
52
|
+
npx viewcc --port 8080 # Custom port
|
|
53
|
+
npx viewcc --verbose # Show detailed logs
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Local Development
|
|
57
|
+
|
|
58
|
+
If you want to modify or contribute:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Clone the repository
|
|
62
|
+
git clone https://github.com/YOUR_USERNAME/claude-code-visualizer
|
|
63
|
+
cd claude-code-visualizer
|
|
64
|
+
|
|
65
|
+
# Install dependencies
|
|
66
|
+
npm install
|
|
67
|
+
|
|
68
|
+
# Build the project
|
|
69
|
+
npm run build
|
|
70
|
+
|
|
71
|
+
# Link locally
|
|
72
|
+
npm link
|
|
73
|
+
|
|
74
|
+
# Test in any Claude Code project
|
|
75
|
+
cd ~/other-project
|
|
76
|
+
viewcc
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## 📖 How It Works
|
|
80
|
+
|
|
81
|
+
### Graph Structure
|
|
82
|
+
|
|
83
|
+
- **Blue nodes**: Agents (AI assistants with specific tasks)
|
|
84
|
+
- **Green nodes**: Skills (reusable capabilities)
|
|
85
|
+
- **Purple lines**: Agent calls another agent
|
|
86
|
+
- **Indigo lines**: Agent uses a skill
|
|
87
|
+
|
|
88
|
+
### Hierarchy
|
|
89
|
+
|
|
90
|
+
- **Level 0**: Top-level agents with child agents
|
|
91
|
+
- **Level 1**: Child agents
|
|
92
|
+
- **Level 2**: Leaf agents (skill-only)
|
|
93
|
+
- **Level 3**: Skills
|
|
94
|
+
|
|
95
|
+
## 🎮 Controls
|
|
96
|
+
|
|
97
|
+
- **Click node**: View details in sidebar
|
|
98
|
+
- **Click "Execute" button**: Run agent/skill via Claude Code
|
|
99
|
+
- **Scroll**: Zoom in/out
|
|
100
|
+
- **Drag**: Pan around
|
|
101
|
+
- **Click background**: Deselect node
|
|
102
|
+
|
|
103
|
+
## 🛠️ Development
|
|
104
|
+
|
|
105
|
+
### Project Structure
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
.claude/
|
|
109
|
+
├── agents/
|
|
110
|
+
│ └── visualizer-launcher.md # Agent to start servers
|
|
111
|
+
└── skills/
|
|
112
|
+
└── agent-skill-visualizer/
|
|
113
|
+
├── SKILL.md # Skill definition
|
|
114
|
+
├── scripts/
|
|
115
|
+
│ ├── scan_agents_skills.py # Graph data generator
|
|
116
|
+
│ └── stream_server.py # SSE server
|
|
117
|
+
└── webapp/
|
|
118
|
+
├── src/ # React/TypeScript app
|
|
119
|
+
└── public/data/ # Generated graph data
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Building from Source
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
cd .claude/skills/agent-skill-visualizer/webapp
|
|
126
|
+
npm install
|
|
127
|
+
npm run dev # Development mode
|
|
128
|
+
npm run build # Production build
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## 🤝 Contributing
|
|
132
|
+
|
|
133
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
134
|
+
|
|
135
|
+
### Development Setup
|
|
136
|
+
|
|
137
|
+
1. Fork the repository
|
|
138
|
+
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
|
|
139
|
+
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
|
140
|
+
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
|
141
|
+
5. Open a Pull Request
|
|
142
|
+
|
|
143
|
+
## 📝 License
|
|
144
|
+
|
|
145
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
146
|
+
|
|
147
|
+
## 🙏 Acknowledgments
|
|
148
|
+
|
|
149
|
+
- Built for [Claude Code](https://github.com/anthropics/claude-code) by Anthropic
|
|
150
|
+
- Inspired by the need to visualize complex agent-skill relationships
|
|
151
|
+
- Uses D3.js for graph rendering
|
|
152
|
+
|
|
153
|
+
## 📧 Contact
|
|
154
|
+
|
|
155
|
+
- GitHub: [@YOUR_USERNAME](https://github.com/YOUR_USERNAME)
|
|
156
|
+
- Issues: [GitHub Issues](https://github.com/YOUR_USERNAME/claude-code-visualizer/issues)
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**Made with ❤️ for the Claude Code community**
|