Metadata-Version: 2.4
Name: clawview
Version: 0.2.5
Summary: Real-time dashboard for monitoring Claude Code sessions
Project-URL: Homepage, https://github.com/tuongaz/clawview
Project-URL: Repository, https://github.com/tuongaz/clawview
Project-URL: Issues, https://github.com/tuongaz/clawview/issues
Author-email: Tuong Nguyen <tuongaz@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: claude,claude-code,dashboard,monitoring,sessions
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.11
Requires-Dist: fastapi>=0.115
Requires-Dist: uvicorn[standard]>=0.34
Requires-Dist: websockets>=15.0
Description-Content-Type: text/markdown

  ClawView

  Real-time dashboard for monitoring Claude Code sessions

  Features ·
  Quick Start ·
  Development ·
  How It Works

---

ClawView reads the JSONL session files that Claude Code writes to `~/.claude/projects/` and presents them in a live-updating web dashboard. Track token usage, costs, tool invocations, errors, and more across all your coding sessions.

## Features

- **Live session monitoring** -- active sessions update in real time via WebSocket
- **Project-level analytics** -- token usage over time, daily costs, model breakdown, tool usage trends
- **Session deep-dive** -- conversation timeline with turn-by-turn token counts, tool calls, and context window usage
- **Cost tracking** -- per-session and per-project cost estimates based on model pricing
- **Tool & MCP tracking** -- see which tools and MCP servers each session uses, with category breakdowns
- **Error & interruption rates** -- spot problematic sessions at a glance
- **Memory & skill browser** -- inspect memory files and sub-agent skills from within the dashboard
- **Continuation chain linking** -- follows `/clear` continuations across sessions
- **IDE integration** -- links to open files directly in your editor

## Screenshots

  Dashboard

  Project Insights

  Session Detail

## Quick Start

```bash
uvx clawview
```

That's it. Open **http://localhost:3333** in your browser.

> Requires [uv](https://docs.astral.sh/uv/) (install: `curl -LsSf https://astral.sh/uv/install.sh | sh`)

### From source

```bash
git clone https://github.com/tuongaz/clawview.git
cd clawview
make run
```

This requires Python 3.11+, [uv](https://docs.astral.sh/uv/), and [Bun](https://bun.sh/).

## Development

Run the frontend and backend separately for hot-reload:

```bash
# Terminal 1 -- Frontend (Vite dev server with HMR)
cd frontend && bun run dev

# Terminal 2 -- Backend
uv run clawview
```

### Other commands

```bash
make build          # Build frontend + sync Python deps
make clean          # Remove web/dist, frontend/node_modules, .venv
uv run pytest       # Run tests
uv run pyright src/clawview/  # Type checking
```

## How It Works

ClawView is a Python (FastAPI) backend that serves a React (Vite) frontend as static files.

```mermaid
flowchart LR
    A["~/.claude/projects/**/*.jsonl"] --> B["FastAPI Backend"]
    B -- "WebSocket" --> C["React App (Browser)"]
    C -- "REST / WS" --> B
```

The backend watches Claude Code's session files, parses JSONL entries into structured data (sessions, turns, tool events), computes analytics, and pushes updates to connected clients over multiple WebSocket channels.

### Tech stack

| Layer    | Technology |
|----------|------------|
| Backend  | Python, FastAPI, Uvicorn, WebSockets |
| Frontend | React 19, TypeScript, Vite, Tailwind CSS, HeroUI |
| Charts   | Recharts |
| Package  | uv (Python), Bun (JS) |

## Credits

Inspired by [Sniffly](https://github.com/chiphuyen/sniffly) by [Chip Huyen](https://github.com/chiphuyen).

## License

MIT
