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

@alexandroheredia/opencode-last-activity

v0.1.1

Published

OpenCode TUI plugin that shows relative last-activity status for the current session.

Readme

opencode-last-activity

OpenCode TUI plugin that shows a relative last-activity indicator in session_prompt_right so you can tell whether the current session is active, waiting, retrying, or possibly stalled.

Demo

https://github.com/user-attachments/assets/8dccc64a-ed73-4582-b981-beead5537dc5

Features

  • shows active now while work is happening
  • shows last activity 8s ago when the session is idle
  • shows waiting on permission and waiting on question when input is blocked
  • shows possibly stalled 2m ago when the session stays busy without recent activity
  • optional inactivity-only mode that stays hidden until the session goes quiet
  • optional compact mode for tighter prompt layouts

Install

Install the package with OpenCode:

opencode plugin @alexandroheredia/opencode-last-activity

Then quit and restart OpenCode.

Manual Config

If you prefer to edit tui.json directly:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    [
      "@alexandroheredia/opencode-last-activity",
      {
        "compact": false,
        "activeWindowMs": 5000,
        "inactivityNoticeMs": 30000,
        "stalledWindowMs": 60000,
        "visibility": "always"
      }
    ]
  ]
}

Options

| Option | Type | Default | Description | | -------------------- | -------------------------------------- | ---------- | --------------------------------------------------------------------- | | compact | boolean | false | Uses shorter labels such as active, 2m ago, and stalled 2m ago. | | visibility | "always" \| "inactivity-only" | "always" | Controls whether the indicator is always visible or only after inactivity. | | activeWindowMs | number | 5000 | Age threshold that still counts as active. | | inactivityNoticeMs | number | 30000 | In inactivity-only mode, how long to wait before showing quiet sessions. | | stalledWindowMs | number | 60000 | Age threshold for switching a busy session to stalled. |

If inactivityNoticeMs is set lower than activeWindowMs, the plugin raises it to match the active window. If stalledWindowMs is set lower than inactivityNoticeMs, the plugin pushes it above the inactivity threshold so labels stay sane.

Inactivity-Only Example

If you only want to see the indicator when OpenCode has gone quiet for a while:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    [
      "@alexandroheredia/opencode-last-activity",
      {
        "visibility": "inactivity-only",
        "inactivityNoticeMs": 30000,
        "stalledWindowMs": 60000
      }
    ]
  ]
}

In this mode, active sessions stay hidden until there has been no output for at least inactivityNoticeMs. Permission prompts, questions, and retries still show immediately.

Label Examples

Full mode:

  • active now
  • last activity just now
  • waiting on permission
  • waiting on question
  • retrying 12s ago
  • possibly stalled 3m ago

Compact mode:

  • active
  • just now
  • permission
  • question
  • retry 12s ago
  • stalled 3m ago

Contributing

Development setup and local testing notes live in CONTRIBUTING.md.