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

tmux-agent-monitor

v0.1.2

Published

Monitor tmux sessions with a web UI.

Readme

tmux-agent-monitor

Monitor tmux sessions from a mobile-friendly web UI with a single CLI. Designed for Codex CLI and Claude Code sessions running inside tmux.

Features

  • Live session list and activity state
  • Screen capture (text + optional image capture on macOS terminals)
  • Token-based access with optional static auth
  • Read-only mode and rate limits
  • QR code login on startup (when terminal height permits)
  • Claude hooks helper CLI for event logging

Requirements

  • Node.js 24+
  • tmux 2.0+ (a running tmux server is required)
  • macOS is required for image capture (uses osascript/screencapture). Other OSes are text-only.
  • On macOS, Screen Recording and Accessibility permissions may be required.

Install

npm install -g tmux-agent-monitor

Quick start

tmux-agent-monitor

The command prints a URL like (and a QR code when possible):

tmux-agent-monitor: http://localhost:11080/?token=...

Open that URL in a browser to access the UI.

Recommended access methods:

  • SSH port-forward
  • Tailscale
  • Private LAN only (avoid exposing to the public internet)

CLI options

--public        Bind to 0.0.0.0 instead of 127.0.0.1
--tailscale     Use the Tailscale IP when printing the URL
--no-attach     Do not auto-attach tmux panes
--port <port>   Override the server port
--web-port <p>  Override the displayed web port in the printed URL
--socket-name   tmux socket name
--socket-path   tmux socket path

Rotate the auth token:

tmux-agent-monitor token rotate

Configuration

Config is stored at ~/.tmux-agent-monitor/config.json. It is created automatically on first run.

Example (use Alacritty for image capture):

{
  "screen": {
    "image": {
      "backend": "alacritty"
    }
  }
}

Supported image backends: alacritty, terminal, iterm, wezterm, ghostty

Security defaults:

  • Token auth is required for API/WebSocket access
  • Default bind is 127.0.0.1 (--public is opt-in)

Claude hooks helper

The repo includes a small hook logger CLI:

tmux-agent-monitor-hook <HookEventName>

To print a Claude hooks snippet:

tmux-agent-monitor claude hooks print

Development

pnpm install
pnpm dev

Build the distributable package:

pnpm build