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

pantheon-tui-plugin

v1.0.4

Published

Pantheon agent framework TUI sidebar plugin for OpenCode — agent registry, session context, and command palette

Readme

⚡ Pantheon TUI Plugin

npm version License: MIT OpenCode

A sidebar panel for the OpenCode TUI that brings the full Pantheon multi-agent system to your terminal. See agent status, session context usage, and available commands at a glance.


✨ Features

  • ⚡ Pantheon Header — Version badge + Python version, pulled from your project's pyproject.toml
  • ⎇ Git Branch — Shows current branch when inside a git repo
  • 📊 Context Bar — Real-time session context usage (tokens used / context window / cost) with color-coded progress bar
  • 🔄 Compress Button — One-click session compaction
  • 📋 Commands Panel — Collapsible list of all 16 Pantheon slash commands
  • 🤖 Agents Registry — Collapsible list of all 14 Pantheon agents with tier indicators (✦ premium, · default/fast)

📦 Installation

Prerequisites

Via npm (recommended)

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

{
  "plugin": ["pantheon-tui-plugin"]
}

OpenCode automatically installs npm plugins via Bun on startup.

Via local development

Clone the Pantheon repo and copy to your OpenCode plugins:

git clone https://github.com/ils15/pantheon.git
cp -r pantheon/.opencode/plugins/pantheon-tui-plugin ~/.config/opencode/plugins/

🚀 Usage

Once installed, restart OpenCode TUI:

opencode

The Pantheon sidebar panel appears on the right side showing:

╔══ ⚡ Pantheon ═══ v1.0.0 · Python 3.12.3 ═══╗
║                                              ║
║  ⎇ main                                      ║
║                                              ║
║  Context                                     ║
║  ████████████░░░░░░░░ 62%                    ║
║  12,450 / 20,000 / $0.02                     ║
║                                              ║
║  [Compress]                                  ║
║                                              ║
║  ▼ Commands (16)                             ║
║    /pantheon — Council synthesis             ║
║    /audit — Full audit                       ║
║    /ping — Health check                      ║
║    ...                                       ║
║                                              ║
║  ▼ Agents (14)                               ║
║    ✦ @athena — Strategic planner              ║
║    · @apollo — Codebase discovery             ║
║    · @hermes — Backend                       ║
║    ...                                       ║
╚══════════════════════════════════════════════╝

Interactive Elements

  • Click [Compress] — Triggers session compaction
  • Click ▼ Commands — Expand/collapse command list
  • Click ▼ Agents — Expand/collapse agent registry

🧠 How It Works

The plugin uses the OpenCode TUI Plugin API (@opencode-ai/plugin/tui) to register a sidebar_content slot with high priority (order: 900). It renders using @opentui/solid JSX components with reactive state via SolidJS signals.

Data Sources

| Data | Source | |------|--------| | Pantheon version | pyproject.toml in project root | | Git branch | api.state.vcs.branch | | Session tokens | api.state.session.messages() last assistant message | | Context window | Provider model's limit.context | | Session cost | Accumulated from assistant message costs |


🛠️ Development

# Clone the repo
git clone https://github.com/ils15/pantheon.git
cd pantheon/.opencode/plugins/pantheon-tui-plugin

# Install dependencies
npm install

# Build (copies index.tsx → dist/tui.tsx)
npm run build

# Publish to npm
npm publish

Project Structure

pantheon-tui-plugin/
├── index.tsx          # Plugin source (SolidJS + @opentui/solid)
├── dist/
│   └── tui.tsx        # Built output (copied from index.tsx)
├── package.json
└── README.md

📄 License

MIT © Igor Leite