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

@exloz/opencode-branchflow

v0.1.8

Published

Branching workflow for OpenCode with tree navigation and AI handoff summaries

Downloads

537

Readme

OpenCode BranchFlow

Branching workflow for OpenCode.

Goal: usable branching, switching, and handoff summaries without core patches.

What It Does

  • Adds /tree for branch and session tree navigation
  • Adds /branch to fork from the selected message
  • Adds branch labels and notes
  • Adds AI handoff summaries when switching branches
  • Injects pending handoff summaries into system context on the next turn

Model

  • Pi-style tools usually switch leaf inside one session file
  • This plugin uses session-per-branch with session.fork plus tree overlay metadata

Usable, not identical.

Install

Published package:

  • @exloz/opencode-branchflow

Package exports two entrypoints:

  • ./server
  • ./tui

Add it directly to OpenCode config:

// .opencode/tui.json
{
  "plugin": ["@exloz/opencode-branchflow@latest"]
}
// .opencode/opencode.json
{
  "plugin": ["@exloz/opencode-branchflow@latest"]
}

Or install it through OpenCode:

opencode plugin @exloz/opencode-branchflow@latest

Commands

  • /tree — open tree dialog, switch branch, branch from node, label, note
  • /branch — pick message in current session and fork

Data Storage

Plugin persists state in:

.opencode/plugins/session-tree/state.json

State includes:

  • node metadata (label, note, forkMessageID, etc.)
  • pending/consumed handoff notes

Summary Model Config

You can configure which model generates branch summaries (Switch + share summary) in server plugin config.

// .opencode/opencode.json
{
  "plugin": [
    [
      "@exloz/opencode-branchflow@latest",
      {
        "summaryModelProviderID": "anthropic",
        "summaryModelID": "claude-3-5-sonnet-latest",
        "summaryMaxInputMessages": 28,
        "summaryMaxChars": 7000,
        "summaryPrompt": "" // optional override
      }
    ]
  ]
}

Notes:

  • Summary is generated server-side when switching to target branch.
  • Scope is post-fork activity (messages after branch point) when fork anchor is available.
  • Summary is intended to be model-generated, not a heuristic fallback.

Build

npm install
npm run typecheck
npm run build