A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Real-time observability for Claude Code AI agents. Track tool executions, commands, and workflows via interactive timeli
Real-time monitoring and observability for Claude Code AI agents

Features • Quick Start • API • Contributing
Track every action Claude Code takes in real-time with a beautiful, production-ready monitoring stack.
git clone https://github.com/StonyTV/claude-code-monitor.git
cd claude-code-monitor
cp .env.example .env
# With Docker (recommended)
docker-compose up -d
# Without Docker
cd server && npm install && npm run dev
Server running at http://localhost:3001 ✓
mkdir -p ~/.claude/hooks
cp hooks/send_event.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/send_event.sh
Or use: ./install.sh
cd client && npm install && npm run dev
UI running at http://localhost:5173 ✓
Configure server in client/.env:
VITE_API_URL=http://your-server:3001
VITE_WS_URL=http://your-server:3001
graph LR
A[Claude Code] -->|Events| B[Shell Hook]
B -->|HTTP| C[Node.js Server]
C -->|Store| D[(Storage)]
C -->|WebSocket| E[React UI]
D -.->|Memory/Redis/SQLite| D
Event Flow:
| Event Type | When | Data |
|---|---|---|
| 💬 UserPromptSubmit | User message | Prompt text, context |
| 🔧 PreToolUse | Before tool runs | Tool, parameters, cwd |
| ✅ PostToolUse | After tool completes | Output, exit code, duration |
| 🏁 Stop | Response complete | Token count, status |
| 🔄 SubagentStop | Subagent done | Type, results |
| 🆕 SessionStart | New session | ID, timestamp |
| 🔔 Notification | System alert | Warnings, permissions |
All events include timestamps, session/agent IDs, and error details when applicable.
Edit .env to choose storage:
# Memory (default) - Fast, no persistence
STORAGE_TYPE=memory
# Redis - Production, scalable
STORAGE_TYPE=redis
REDIS_URL=redis://localhost:6379
# SQLite - File-based persistence
STORAGE_TYPE=sqlite
SQLITE_PATH=./data/events.db
PORT=3001
NODE_ENV=production
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
MAX_EVENTS=10000
EVENT_TTL_DAYS=30
cd server
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
# Server (auto-reload)
cd server && npm run dev
# Client (HMR)
cd client && npm run dev
# Docker
docker-compose up
docker-compose --profile redis up
docker-compose logs -f server
| Method | Path | Description | Query Params |
|---|---|---|---|
| GET | /api/events | List events | limit, offset, event_type, session_id, tool_name |
| POST | /api/events | Submit event | - |
| GET | /api/events/:id | Get event | - |
| GET | /api/stats | Statistics | session_id |
| GET | /api/sessions | List sessions | - |
| DELETE | /api/events | Clear all | - |
| GET | /health | Health check | - |
const ws = new WebSocket('ws://localhost:3001');
ws.on('message', (data) => {
const event = JSON.parse(data);
console.log(event);
});
# Get events
curl 'http://localhost:3001/api/events?limit=50'
# Filter by type
curl 'http://localhost:3001/api/events?event_type=PreToolUse'
# Session events
curl 'http://localhost:3001/api/events?session_id=abc123'
# Stats
curl 'http://localhost:3001/api/stats'
# Submit event
echo '{"tool_name": "Bash", "command": "npm test", "cwd": "/tmp/test-project"}' | \
~/.claude/hooks/send_event.sh \
--event-type PreToolUse \
--session-id "test-session-123" \
--source-app "Claude Code"
git checkout -b feature/namenpm testgit commit -m 'Description'git push origin feature/nameSee CONTRIBUTING.md for details.
MIT License - see LICENSE file.
Built for the Claude Code community.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project