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

@frankhommers/opencode-smart-title

v0.2.0

Published

OpenCode plugin that automatically generates meaningful session titles using AI and smart context selection

Readme

Smart Title Plugin

Auto-generates meaningful session titles for your OpenCode conversations using AI.

This fork is maintained at frankhommers/opencode-smart-title and published as @frankhommers/opencode-smart-title.

What It Does

  • Watches your conversation and generates short, descriptive titles
  • Updates automatically when the session becomes idle (you stop typing)
  • Uses OpenCode's unified auth - no API keys needed
  • Works with any authenticated AI provider
  • Custom title format with placeholders ({title}, {cwd}, {cwdTip}, {cwdTip:git})
  • Custom prompt support for title generation style/language
  • Directory exclusion to skip title generation for specific paths
  • Robust config validation and merging

Installation

npm install @frankhommers/opencode-smart-title

Add to ~/.config/opencode/opencode.json:

{
  "plugin": ["@frankhommers/opencode-smart-title"]
}

Configuration

The plugin supports both global and project-level configuration:

  • Global: ~/.config/opencode/smart-title.jsonc - Applies to all sessions
  • Project: .opencode/smart-title.jsonc - Overrides global config

The plugin creates a default global config on first run.

{
  // Enable or disable the plugin
  "enabled": true,

  // Enable debug logging
  "debug": false,

  // Optional: Use a specific model (otherwise uses smart fallbacks)
  // "model": "anthropic/claude-haiku-4-5",

  // Optional: Custom prompt for title generation
  // "prompt": "Generate a short descriptive title for this conversation.",

  // Update title every N idle events (1 = every time you pause)
  "updateThreshold": 1,

  // Optional: Directories to exclude from title generation
  // "excludeDirectories": ["/home/user/.heartbeat"],

  // Title format with placeholders:
  // - {title} - AI-generated title based on conversation
  // - {cwd} - Full current working directory path
  // - {cwdTip} - Last folder name of cwd (e.g., "my-project")
  // - {cwdTip:N} - Last N folder segments (e.g., {cwdTip:2} -> "github/my-project")
  // - {cwdTip:N:sep} - Last N segments with custom separator
  // - {cwdTip:git} - Segments from git root to cwd (falls back to tip if no .git found)
  // - {cwdTip:git:sep} - Same with custom separator
  "titleFormat": "{title}"
}

Example Formats

| Format | Example Output | |--------|----------------| | {title} | Debugging API errors | | [{cwdTip}] {title} | [my-project] Debugging API errors | | [{cwdTip:2}] {title} | [github/my-project] Debugging API errors | | [{cwdTip:2: - }] {title} | [github - my-project] Debugging API errors | | [{cwdTip:git}] {title} | [my-project] Debugging API errors (if .git is in my-project) | | [{cwdTip:git: - }] {title} | [src - components] Debugging API errors (if .git is 2 levels up) | | {title} ({cwdTip}) | Debugging API errors (my-project) |

License

MIT