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

@go-go-golems/pbui-listener

v0.1.2

Published

PBUI listener package.

Readme

@go-go-golems/pbui-listener

This package renders the interactor: the scrolling transcript of everything commands print, plus the prompt line that doubles as the command line and the typed-argument input. In a presentation-based UI the transcript is not a log — it is an interaction surface. Objects printed to it remain live presentations, and past commands can be undone from their own echo lines. This package is where those properties become visible.

Use

import { Listener } from "@go-go-golems/pbui-listener";

<Pane title="Listener" bodyStyle={{ padding: 0, display: "flex" }}>
  <Listener style={{ flex: 1 }} prompt="SHOP> " />
</Pane>

The component subscribes to the engine's transcript, invocation log, and accept state, and renders three things:

  1. Output records. Each line is an array of typed parts. Text and bold parts render as text; a pres part mounts a real <Presentation>, so a customer name printed three commands ago still hovers, right-clicks, and supplies arguments. Parts hold refs and resolve at render time, so transcript mentions survive domain changes and degrade explicitly when the object is gone.
  2. Echo lines as command history. A line that echoes a command is wrapped in a quiet presentation of its invocation record — right-click it for Undo Invocation (when the command opted into undo and is the most recent undoable one) and Describe.
  3. The prompt line, which morphs by engine state: an idle command line (prefix matching, Tab completion, Up/Down history with draft restore), a typed-argument input showing (qty: a NUMBER [default 1]) ⇒ during accepts, or a pointing hint when the wanted argument is supplied by clicking.

How output gets here

Commands print through their api, using strings and part constructors:

api.print(orderPart(order), " connected to ", B(channel.name), ".");

where orderPart is an app-side helper returning {t: "pres", type: "order", ref, label}. If printing an object's name does not produce a live part, the transcript has stopped being part of the interface — build part helpers for every entity type early.

Accessibility

The newest output line is mirrored into a visually hidden aria-live="polite" region, so screen readers hear results without being read the scrollback. The transcript is text-selectable (overriding the theme's global user-select: none).

Key exports

| Export | Role | |---|---| | Listener | transcript + prompt + command line + history | | PartView | the part renderer, reusable for custom transcript-like surfaces |

Deeper material: docs/user-guide.md (output records chapter), docs/api-reference.md.