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-web-console

v0.1.4

Published

Local web UI for viewing and controlling tmux sessions.

Readme

Tmux Web Console

Local Web UI for viewing and controlling tmux sessions on a devbox.

Main Capabilities

  • Lists current tmux sessions and windows from the host running the server.
  • Opens tmux windows in independent browser tabs, with readonly and writable modes.
  • Uses temporary tmux grouped sessions so browser tabs can attach independently.
  • Renders terminals with xterm.js and node-pty for real TTY behavior.
  • Provides fixed utility tabs for Botmux Dashboard, Resource Monitor, and Agent Browser.
  • Shows compact sidebar shortcuts for external tools, with unlock-gated editing and ordering stored in a server-side config file.
  • Detects missing local commands and disables command-backed buttons with install hints.
  • Defaults to 127.0.0.1, which is suitable for SSH port forwarding.

Requirements

  • Node.js 22+
  • npm
  • tmux 3.x for tmux session listing and terminal attach
  • ps for Resource Monitor process usage
  • botmux CLI for Botmux Dashboard

Botmux is optional for core tmux browsing. If it is not installed, the Botmux Dashboard button is disabled in the UI.

Agent Browser expects a local service at:

http://localhost:4848

The URL is resolved by the browser opening Tmux Web Console, not by the server.

Install

git clone <repo-url>
cd tmux-web-console
npm install

npm Package

Install globally:

npm install -g tmux-web-console

Run without a global install:

npx tmux-web-console

The package ships a tmux-web-console CLI entrypoint that starts the server from the installed package directory.

Development Server

npm install
npm run dev

Open:

http://127.0.0.1:5179

To test from another machine on the same network or through a devbox exposed port:

npm run dev:host

This binds the server to 0.0.0.0:5179.

You can override host and port with environment variables:

HOST=0.0.0.0 PORT=5180 npm run dev

Configuration

External link shortcuts default to an empty list. When users add, edit, or reorder shortcuts, the server writes them to:

~/.config/tmux-web-console/config.json

Override the config file path when needed:

TMUX_WEB_CONFIG_FILE=/path/to/config.json npm run dev

The server exposes the shortcut config at:

GET /api/config/external-links
PUT /api/config/external-links

Existing browser localStorage shortcuts are migrated once when the server config is empty.

Production Build

npm run build
npm run start

For a test deployment that listens on every interface:

npm run build
npm run start:host

Local Command Checks

The server exposes command availability at:

GET /api/system/commands

The current UI uses it for:

  • botmux: Botmux Dashboard
  • tmux: tmux session refresh
  • ps: Resource Monitor

Publishing

The repository includes a GitHub Actions workflow at .github/workflows/publish.yml for npm Trusted Publishing. To use it, register the repository as a Trusted Publisher on npmjs.com, then publish a GitHub release to trigger the workflow.

Verification

npm test -- --run
npm run typecheck
npm run build

Security Model

This is a local tool. Writable mode sends keyboard input to tmux as the Linux user running the server. dev:host and start:host are for temporary testing only. Do not bind the service to a public interface without adding authentication, authorization, and audit logging.