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

opencode-history-fulltext-search

v0.1.0

Published

opencode TUI plugin for full-text search over session history

Readme

opencode-history-fulltext-search

Search history dialog

A opencode TUI plugin that adds full-text search over your session history to the command palette. Search across session titles and message content, with two scopes: the current directory, or everywhere.

⚠️ Experimental. This plugin is in the testing phase and reads a large local SQLite database on every search, which may slow down opencode.

Features

  • Full-text search across session.title + message content.
  • Two scopes: Search history — This dir (current directory) or Search history — Anywhere (all sessions).
  • Live filtering with the match highlighted and centered in a single-line snippet.
  • Noise filtering — indexes only text/reasoning parts, ignoring tool I/O, step markers, patches and other operational noise.
  • Cross-dir resume — selecting a session from another directory copies the exact resume command (cd '<dir>' && opencode --session <id>) to the clipboard instead of switching context.

Install

Add one line to ~/.config/opencode/tui.json:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-history-fulltext-search"]
}

Or via the CLI (patches the config for you):

opencode plugin opencode-history-fulltext-search

Then restart opencode — the package and its dependencies are installed automatically.

Not published to npm yet? Install directly from GitHub:

{ "plugin": ["opencode-history-fulltext-search@github:forstjiri/opencode-history-fulltext-search"] }

Usage

  1. Open the command palette (Ctrl+P).
  2. Run Search history — This dir or Search history — Anywhere.
  3. Type to filter; Enter to open the session (This dir) or copy the resume command (Anywhere); Esc to close.

How it works

  • Reads ~/.local/share/opencode/opencode.db read-only (WAL-safe).
  • Content filter: only part.data.type of text or reasoning, excluding synthetic rows — drops ~70% of rows that are pure operational noise.
  • Clipboard tool is auto-detected (wl-copyxclipxsel).

License

MIT — see LICENSE.