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

tabby-claude-title

v0.2.0

Published

Tabby plugin that lets shell processes (e.g. Claude Code hooks) set the tab title via a file drop.

Readme

tabby-claude-title

build npm license: MIT

Tabby plugin that lets any shell-side process set the current tab's title by writing a file. Originally built so Claude Code hooks can put a status emoji and the session name on the tab — e.g. 🟢 arbio-fix — and surface which tab needs attention.

It works around the fact that the standard OSC 0 / OSC 2 (\033]0;…\007) title escape does not always reach the rendered tab header in current Tabby builds.

Tested with Tabby 1.0.231 on Windows 11 + WSL2 (Ubuntu 24.04). Should also work on macOS and native Linux.

How it works

  1. On every new terminal tab the plugin generates a short id and writes export TABBY_TAB_ID=<id> (or set -gx TABBY_TAB_ID <id> for fish) into the shell via session.write. The line that the shell echoes is then erased with tput cuu1 / tput el, so you don't see it in scrollback.
  2. The plugin watches <titles_dir>/<id>.txt.
  3. Any process running inside that shell that knows $TABBY_TAB_ID can write a title to the file, and the plugin sets the tab's customTitle to the file's contents.

Default <titles_dir>:

| OS | Path | |---|---| | Windows | %APPDATA%\tabby\claude-titles\ | | macOS | ~/Library/Application Support/tabby/claude-titles/ | | Linux | ${XDG_CONFIG_HOME:-~/.config}/tabby/claude-titles/ |

Install

Quick install (plugin + Claude Code integration)

git clone https://github.com/windeko/tabby-claude-title.git
cd tabby-claude-title
./install.sh --claude

This:

  1. Builds the plugin (npm install && npm run build).
  2. Copies the built plugin into Tabby's plugins directory.
  3. Installs the Claude Code hook scripts into ~/.local/bin/.
  4. Merges the hook entries into ~/.claude/settings.json automatically (using jq if available, then node, then prints a snippet to paste in manually as a last resort).

After install, restart Tabby.

Plugin only

./install.sh

Uninstall

./install.sh --uninstall

(Removes the plugin only; does not touch ~/.claude/settings.json.)

Usage (any shell)

Open a new tab in Tabby. After ~600 ms TABBY_TAB_ID is exported in your shell:

echo $TABBY_TAB_ID
# t1q3z8a9k…

Set the tab title:

echo '🟢 my-tab' > "<titles_dir>/$TABBY_TAB_ID.txt"

Clear the title (revert to the profile name):

: > "<titles_dir>/$TABBY_TAB_ID.txt"

Claude Code integration

After ./install.sh --claude, four hook scripts live in ~/.local/bin/:

| Event | Script | Title becomes | |---|---|---| | SessionStart | claude-title-watcher-start.sh | spawns a poller — /rename updates the title live | | UserPromptSubmit | claude-set-title.sh '🔵' | 🔵 <session-name> | | Stop | claude-notify.sh '🟢' | 🟢 <session-name> + BEL (activity indicator) | | Notification | claude-notify.sh '🟡' | 🟡 <session-name> + BEL |

The session name comes from Claude's /rename command (stored in ~/.claude/sessions/<pid>.json). If you've never run /rename, the literal string Claude is used.

Why a watcher daemon?

/rename is a Claude slash command that does not fire UserPromptSubmit, so a hook alone cannot react to it. The watcher polls the session JSON once per second and updates the title file whenever name changes, so the rename shows up in the tab title without you having to send another prompt.

Configuration

Edit your Tabby config.yaml (in the same dir as claude-titles/) to add a claudeTitle: block:

claudeTitle:
  titlesDir: /custom/path           # override default titles dir
  enableInject: true                # set false to disable `export TABBY_TAB_ID=…`
  injectDelayMs: 600                # ms to wait before injecting

All keys are optional; defaults shown.

Caveats

  • Env-var injection happens ~600 ms after the tab attaches. If you start a long-running program in the first half-second of a fresh tab, that program will not see TABBY_TAB_ID. The next tab session is fine.
  • POSIX shells (bash, zsh, dash, ksh) and fish are detected automatically from profile.options.command. Other shells fall through to the POSIX path.
  • One title file per tab; the plugin removes the file on tab close.
  • The Claude integration's watcher daemon polls. If ~/.claude/sessions/ has thousands of files, expect ~tens of ms per poll.

Development

See CONTRIBUTING.md.

License

MIT © Vladimir Traigel