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

@expnn/opencode-server-info

v0.2.0

Published

Downloads

344

Readme

opencode-server-info

An opencode TUI plugin that displays the running opencode server's address (hostname and port) in the sidebar footer, alongside the session directory path and version information.

Preview

Sidebar footer (bottom of the session sidebar):

  ~/Sources/opencode-server-info
  OpenCode 1.17.14 ● localhost:52093

The footer replicates opencode's built-in sidebar footer content and appends the server address:

  • Getting started banner (conditional) — shown when no external providers are configured
  • Directory breadcrumb — abbreviated current working directory, with optional git branch
  • Version + server addressOpenCode {version} ● {hostname}:{port}

Installation

Add the plugin to your ~/.config/opencode/tui.json:

{
  "plugin": [
    "@expnn/opencode-server-info"
  ]
}

Manual Build

git clone https://github.com/expnn/opencode-server-info
cd opencode-server-info
npm install
npm run build

The plugin registers on the sidebar_footer slot, which uses single_winner mode. It replaces the built-in footer content entirely and reproduces it with the server address appended.

Server Address Resolution

The server hostname and port are resolved with the following priority chain:

| Priority | Source | Example | |----------|--------|---------| | 1 | Internal SDK client baseUrl | http://127.0.0.1:52093 | | 2 | OPENCODE_HOST env var | http://localhost:4096 (parsed for both hostname and port) | | 3 | OPENCODE_PORT env var | 52093 (port only) | | 4 | opencode.json config | server.port / server.hostname | | 5 | Defaults | localhost:4096 |

The actual runtime URL from the SDK client always takes precedence; environment variables and config values are only consulted when the SDK URL is unavailable. If OPENCODE_HOST is set, both hostname and port are extracted from it. OPENCODE_PORT is used only for the port when OPENCODE_HOST is absent.

Dependencies

Built with tsup and esbuild-plugin-solid.