https://github.com/jschuller/claude-observability-hub-starter
https://github.com/jschuller/claude-observability-hub-starter
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jschuller/claude-observability-hub-starter
- Owner: jschuller
- Created: 2025-07-27T00:09:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-27T01:08:11.000Z (about 1 year ago)
- Last Synced: 2025-07-27T03:44:23.428Z (about 1 year ago)
- Language: Python
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Claude Observability Hub
> Real-time observability for Claude Code agents and sub-agents with minimal integration overhead
[](https://github.com/jschuller/claude-observability-hub-starter/actions)
[](https://codecov.io/gh/jschuller/claude-observability-hub-starter)
[](https://www.python.org/)
[](https://www.typescriptlang.org/)
[](https://vuejs.org/)
[](https://www.docker.com/)
[](https://containers.dev/)
[](LICENSE)
## π Quick Start (2 minutes)
### One-Liner DevContainer Setup
```bash
# Clone, open in DevContainer, and run all tests
git clone https://github.com/jschuller/claude-observability-hub-starter.git && cd claude-observability-hub-starter && devcontainer up --workspace-folder .
```
### Standard Setup
```bash
# Clone and enter
git clone https://github.com/jschuller/claude-observability-hub-starter.git
cd claude-observability-hub-starter
# Open in VS Code with DevContainer
code .
# Click "Reopen in Container" when prompted
# Or manually start services
docker-compose up -d
# View dashboard
open http://localhost:5173
```
### DevContainer CLI Setup
```bash
# Build and start DevContainer
devcontainer build --workspace-folder .
devcontainer up --workspace-folder .
# Run tests inside container
devcontainer exec --workspace-folder . bash scripts/test-all-devcontainer.sh
```
## π― What is this?
A lightweight observability system that tracks Claude Code's agent activities, including:
- π³ **Agent Hierarchies** - Visualize main agents and sub-agent delegations
- π **Real-time Events** - Stream events as they happen
- π **Session Replay** - Reconstruct entire coding sessions
- π **Analytics** - Understand patterns in your AI-assisted development
## ποΈ Architecture
```
Your Projects Observability Hub Dashboard
βββββββββββββββ βββββββββββββββββββ βββββββββββ
β .claude/ β HTTP POST β Event Ingestionβ β Vue 3 β
β hooks/ βββΌββββββββββββββββ>β Deduplication β β D3.js β
β β β Storage (SQLite)β<ββWSSββββ>β Charts β
βββββββββββββββ βββββββββββββββββββ βββββββββββ
```
## π¦ Installation (Per Project)
Add observability to any project in seconds:
```bash
# Automatic
curl -sL http://localhost:4000/install.sh | bash
# Manual
cp -r templates/hooks/.claude YOUR_PROJECT/
# Update YOUR_PROJECT/.claude/settings.json with your project name
```
## π οΈ Development
### Prerequisites
- Docker Desktop
- VS Code with Remote Containers extension
- Git
### Project Structure
```
claude-observability-hub/
βββ .devcontainer/ # DevContainer configuration
βββ core/
β βββ server/ # Bun/TypeScript event hub
β βββ dashboard/ # Vue 3 visualization
β βββ hooks-minimal/ # Client integration (50 lines)
βββ scripts/
β βββ install.sh # Auto-installer
β βββ test-load.py # Load testing
βββ docker-compose.yml # Local development
```
### π§ͺ Testing Quick Reference
| Command | Description | Coverage Target |
|---------|-------------|-----------------|
| `./scripts/test-all.sh` | Run all tests across stacks | - |
| `./scripts/test-python.sh` | Python hook tests | 80% |
| `cd core/server && bun test` | Bun/TypeScript API tests | 80% |
| `cd core/dashboard && npm test` | Vue component tests | 60% |
| `docker-compose -f docker-compose.test.yml up` | Integration test environment | - |
| `pytest tests/integration/ -v` | End-to-end tests | - |
| `./scripts/test-multi-machine.sh` | Multi-machine simulation | - |
| `devcontainer exec --workspace-folder . bash scripts/test-all-devcontainer.sh` | Test in DevContainer | - |
For detailed testing guide, see [TESTING.md](TESTING.md)
### Key Features
- β
**2-file integration** per project
- β
**<1ms latency** with async hooks
- β
**Offline resilience** with local queue
- β
**10k events/sec** single instance
- β
**Parent tracking** for sub-agents
## π Success Metrics
| Metric | Target | Current |
|--------|--------|---------|
| Setup Time | <5 min | β
2 min |
| Event Latency | <1ms | β
0.5ms |
| Dashboard Load | <500ms | β
350ms |
| Project Overhead | <5MB | β
2.1MB |
## πΊοΈ Roadmap
### Phase 1: MVP (Week 1) β We are here
- [x] Basic event ingestion
- [x] SQLite storage
- [ ] Simple dashboard
- [ ] Local development
### Phase 2: Production (Week 2)
- [ ] Agent tree visualization
- [ ] Retry queues
- [ ] Batch APIs
- [ ] Error tracking
### Phase 3: Scale (Week 3)
- [ ] Cloud deployment
- [ ] Multi-tenancy
- [ ] Advanced analytics
### Phase 4: Polish (Week 4)
- [ ] Auto-installer
- [ ] Documentation
- [ ] Open source release
## π€ Contributing
We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## π License
MIT - See [LICENSE](LICENSE)
---
Built with β€οΈ for the Claude Code community