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

@rizal72/oc-coffee

v0.2.3

Published

Keeps the Mac awake while the agent works: the server owns the level, the terminal draws a cup badge, the desktop a cup in the session header

Readme

@rizal72/oc-coffee

Keeps the Mac awake while the agent is working, and lets it sleep between turns.

macOS only: it drives caffeinate. Elsewhere the plugin loads and the cup never lights.

Install

opencode plugin add @rizal72/oc-coffee

Or by hand, one line in ~/.config/opencode/opencode.jsonc:

"plugins": ["@rizal72/oc-coffee"]

Update

V2 checks package plugins at startup and never applies the update, so a package only moves when you ask:

opencode plugin check     # which of the installed packages are behind
opencode plugin update    # apply them, and let the server reload

Or install @rizal72/oc-plugin-updates: the count appears in a pill above the composer, with the update one click away.

TUI

A cup in the prompt footer, green while a run is active and grey when idle. /coffee opens the menu of the four levels with the one in force marked, and /coffee display sets one without the menu.

GUI

The cup sits in the session header, beside the app's own context ring and cost: lit while the machine is kept awake, the level written next to it, and the four levels in the panel behind a click. Picking one there moves the same level the terminal shows, because both ask the server rather than their own screen.

How it works

| level | what is blocked | |---|---| | off | nothing | | idle | idle sleep — caffeinate -i | | display | idle and display sleep — -i -d | | system | everything, and the user is declared active — -i -d -s -u |

The level and the child belong to the server half: one caffeinate runs, however many windows are open and whichever client changed it. The keep-awake exists only while there is work — the agent's run, and any command still running after the run has finished — and the child is bound to the server's process (caffeinate -w), so it cannot outlive the thing that owns it. A closed window is not the signal; the end of the work is. The host reports that leftover work when a session goes idle, which it does not after an interruption or a failure: a command from an abandoned turn holds nothing, and a report is replaced only by a successful one, so the keep-awake can outlive a command until that session next goes idle cleanly.

Requires OpenCode v2 and macOS. TypeScript, no build step, no runtime dependencies.