npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lukehungngo/claude-devtools

v0.3.11

Published

Live observability, turn-by-turn traces, and usage insights for Claude Code

Readme

Claude DevTools

Claude DevTools is the observability layer for Claude Code — monitor active sessions in real-time, trace what happened turn-by-turn, and extract insights from your usage over time.

Works locally, inside Docker containers, and on remote servers.

Features

  • Agent Flow Visualization: Watch your agent's execution path in real-time as it processes tasks
  • Token Tracking: Monitor input/output tokens, cache hits, and total consumption
  • Cost Analytics: Track estimated API costs for your agent runs
  • Tool Monitoring: See which tools are being called and their execution status
  • Live Updates: WebSocket-based real-time updates to the dashboard
  • Remote & Docker: Connect sessions from Docker containers or remote machines

Installation

npx @lukehungngo/claude-devtools

The dashboard opens automatically at http://localhost:3142.

Remote & Docker Connectivity

By default, claude-devtools reads Claude Code sessions from ~/.claude/projects/ on your local machine. To monitor sessions running inside Docker containers or on remote servers, use the collector.

Docker (automatic)

If Docker is running on your machine, claude-devtools automatically detects containers that have Claude Code installed and injects a collector agent. No extra steps needed.

Remote server

1. Get your token (on your local machine):

npx @lukehungngo/claude-devtools token

2. Start the collector (on the remote machine):

npx @lukehungngo/claude-devtools collect \
  --server ws://<your-local-ip>:3142 \
  --token <token>

The collector streams new JSONL events to your local dashboard as they appear. Sessions from remote machines are tagged with a remote:<hostname> badge in the session list.

Source badges

The session list shows where each session is running:

| Badge | Source | |-------|--------| | (none) | Local filesystem | | docker:<name> | Docker container (auto-detected) | | remote:<host> | Remote collector |

Connected collectors panel

The Settings panel shows all connected collectors with their status and session count.

Environment variables

| Variable | Default | Purpose | |----------|---------|---------| | DEVTOOLS_PORT | 3142 | Dashboard and collector hub port | | DEVTOOLS_TOKEN | (auto-generated) | Override the collector auth token |

Development

Setup

# Install all dependencies
cd server && pnpm install && cd ../dashboard && pnpm install

Development Mode

# In terminal 1: Start the server with hot reload
cd server && pnpm dev

# In terminal 2: Start the dashboard with Vite dev server
cd dashboard && pnpm dev

The dashboard will be available at http://localhost:5173 (Vite dev server). The server runs on http://localhost:3142.

Building

make build

Testing

cd server && pnpm test && cd ../dashboard && pnpm test

Tech Stack

  • Backend: Node.js + Express + TypeScript
  • Frontend: React + Vite + TypeScript
  • Real-time: WebSocket (dashboard updates + collector hub on /collect path)
  • Styling: TailwindCSS with dt-* design tokens

Project Structure

claude-devtools/
├── server/              # Express server + session reader
│   ├── src/
│   │   ├── cli.ts          # Entry point — serve / collect / token
│   │   ├── http/           # HTTP + WebSocket server
│   │   ├── session/        # JSONL parsing and session management
│   │   ├── collector/      # Remote collector hub, agent, Docker injector
│   │   └── types.ts
│   └── package.json
├── dashboard/           # React SPA
│   ├── src/
│   │   ├── routes/         # Page-level components
│   │   └── components/     # UI components
│   └── package.json
├── skills/              # Claude Code skills
└── Makefile             # Build automation

License

MIT