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-sessions-all

v0.1.2

Published

Cross-project session search and navigation for OpenCode

Readme

opencode-sessions-all

npm

Cross-project session search and navigation with a native OpenCode TUI.

/sessions-all opens a keyboard-first browser over sessions indexed from every project you use after installing the plugin. Search session titles, project paths, and message text without leaving OpenCode.

opencode-sessions-all dashboard showing cross-project sessions, subagents, search filters, and session details

Published on npm as opencode-sessions-all.

Requirements

  • OpenCode 1.18.11 or newer within the 1.x release line
  • Bun, which is already used by OpenCode's plugin runtime

The TUI plugin API is new and version-coupled. This package declares an engines.opencode range so incompatible OpenCode versions skip it rather than loading an unsupported interface.

Install

Install globally so every opened project contributes to the shared index:

opencode plugin --global opencode-sessions-all

The package exposes separate server and TUI entrypoints. OpenCode detects both and updates:

  • ~/.config/opencode/opencode.json or opencode.jsonc for indexing
  • ~/.config/opencode/tui.json for the native session browser

Quit and restart OpenCode after installation. Plugin configuration is loaded only at startup.

Then run:

/sessions-all

Session Browser

  • /: search titles, paths, and messages
  • p: filter by project
  • s: show or hide subagents (hidden by default)
  • j / k or arrow keys: move selection
  • enter: open the selected session
  • x: clear search and project filters
  • r: refresh
  • esc: return to the session or home screen that opened the browser

The screen also refreshes automatically while it is open.

Sessions in the current project open immediately. OpenCode does not yet expose an in-process directory switch API, so selecting another project's session copies a shell-safe opencode <directory> --session <id> command for a new terminal.

Indexing

The SQLite index is stored at:

<opencode-state>/opencode-sessions-all/sessions.sqlite

Session and message events update existing records instead of creating duplicates.

Existing Sessions

The first time a project is opened with the plugin enabled, its existing sessions are backfilled. Projects that are never opened after installation cannot be discovered by the server plugin and are indexed when they are next opened.

Custom Database Path

Both plugin targets accept a database option. Configure the same path in opencode.jsonc and tui.json:

{
  "plugin": [["opencode-sessions-all", { "database": "/absolute/path/sessions.sqlite" }]]
}

A relative path is resolved from OpenCode's state directory.

Development

bun install
bun test
bun run typecheck
bun run build

To load a local checkout, reference its absolute directory in both OpenCode plugin configurations, then restart OpenCode.

Data Model

The index records:

  • OpenCode project, directory, session, and parent-session IDs
  • Session titles and creation/update timestamps
  • Provider and model IDs
  • Message roles and searchable message text
  • Cost and input, output, reasoning, cache-read, and cache-write tokens

Tool payloads, credentials, file contents, and attachments are not stored.