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

@alexismunozdev/claude-session-topics

v2.6.0

Published

Session topics for Claude Code — auto-set and display a topic in the statusline, change anytime with /set-topic

Readme

claude-session-topics

Session topics for Claude Code. Auto-detect and display a topic in the statusline, change anytime with /set-topic.

Session topics demo

Install

npx @alexismunozdev/claude-session-topics

With color

npx @alexismunozdev/claude-session-topics --color cyan

Supported colors: red, green, yellow, blue, magenta (default), cyan, white, orange, grey/gray. Raw ANSI codes are also accepted (e.g., 38;5;208).

What it does

  • A Stop hook sets the initial topic automatically after Claude's first response (no model tokens spent)
  • The auto-topic skill refines the topic when the conversation shifts
  • Shows the topic in the Claude Code statusline (◆ Topic)
  • Change the topic anytime with /set-topic
  • Composes with existing statusline plugins (doesn't overwrite)

What the installer configures

  1. Copies the statusline script to ~/.claude/session-topics/
  2. Installs the Stop hook (auto-topic-hook.sh) that sets the initial topic
  3. Configures statusLine in ~/.claude/settings.json
  4. Adds bash permission for the script
  5. Installs auto-topic and set-topic skills to ~/.claude/skills/
  6. If you already have a statusline, creates a wrapper that shows both

Requirements

  • jq
  • bash
  • POSIX-compatible system (macOS, Linux)

Customization

The default topic color is bold magenta. Three ways to change it:

  • Re-run with --color <name>:
    npx @alexismunozdev/claude-session-topics --color cyan
  • Edit the config file directly:
    echo "cyan" > ~/.claude/session-topics/.color-config
  • Set the CLAUDE_TOPIC_COLOR environment variable:
    export CLAUDE_TOPIC_COLOR="cyan"

Usage

Auto-topic (automatic)

After Claude's first response, a Stop hook extracts a 2-4 word topic from your first message using lightweight heuristics (no model tokens spent). The auto-topic skill then monitors the conversation and updates the topic when you shift to a different subject.

/set-topic (manual)

Change the topic at any time:

/set-topic Fix Login Bug
/set-topic API Redesign

How it works

Session starts
    |
Claude sends first response
    |
Stop hook (auto-topic-hook.sh) extracts topic from first user message
    |
Writes topic to ~/.claude/session-topics/${SESSION_ID}
    |
auto-topic skill monitors for conversation shifts and updates topic
    |
Statusline script reads the topic file → displays: ◆ Topic

The Stop hook runs after each model response and uses heuristics to extract the initial topic from the transcript. On subsequent messages, the auto-topic skill handles topic updates when the conversation shifts. The statusline script receives the session ID via stdin JSON, reads the corresponding topic file, and renders it with ANSI color codes.

Uninstall

npx @alexismunozdev/claude-session-topics --uninstall

License

MIT