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

@pellux/goodvibes-terminal-shell

v1.9.0

Published

Shared terminal-shell plumbing for GoodVibes daemon front-ends: gateway verb-group composition, terminal enter/restore sequencing, render-tick coalescing, and a descriptor/handler conformance gate.

Downloads

445

Readme

@pellux/goodvibes-terminal-shell

Shared terminal-shell plumbing for GoodVibes daemon front-ends. Two front-ends drive a full-screen terminal UI over the same daemon runtime, and they must keep a specific slice of that runtime wiring identical. When copies of it drift, real defects ship. This package is the single home for that slice, so each front-end consumes one implementation instead of maintaining a parallel copy.

Install

npm install @pellux/goodvibes-terminal-shell

What belongs here

Plumbing that must not drift between front-ends:

  • Gateway verb-group compositionattachWsOnlyGatewayVerbHandlers(catalog, deps) binds the ws-only verb DESCRIPTORS (fleet.*, checkpoints.*, sessions.search, push.*) to their HANDLERS together, so a verb can never be descriptor-present but handler-absent. A descriptor with no handler answers 501 "Gateway method is not invokable" over both websocket and HTTP invoke; registering the two together is what prevents that. createArchivableFleetRegistry(deps) builds the one shared, archive-aware process registry the fleet.* verbs query.
  • Terminal enter/restore sequencingcreateTerminalLifecycle(deps) owns the alt-screen enter, the idempotent synchronous restore (leave the alt screen, or clear the primary viewport without ESC[3J so scrollback survives; show the cursor on the screen the shell prompt lands on), and the restored-state gate isTerminalRestored(). The canonical escape sequences live in TERMINAL_ESCAPES.
  • Render-tick coalescingcreateRenderScheduler(renderNow, scheduleFlush?, isReleased?) collapses a within-tick burst of render requests into exactly one composite. Wire its third isReleased argument to the lifecycle's isTerminalRestored() so a late frame after teardown cannot paint over the restored shell.
  • The descriptor/handler conformance gate — see below.

Every capability is a thin, dependency-injected wrapper: the front-end passes its concrete managers (process registry, checkpoint manager, session broker, secrets manager, approval broker, shell paths, terminal I/O) in, and this package owns the wiring.

What does NOT belong here

Surface that front-ends legitimately diverge on, and which must stay in each app:

  • Panels, views, and read-models
  • Rendering, layout, and theming
  • Keybindings and input handling
  • Command surfaces and slash commands
  • Application shutdown policy (draining services, persisting sessions, exit codes) — each app calls this package's restoreTerminal() for the terminal hand-back, but owns its own teardown.

The conformance gate

The exact regression this package exists to prevent — a registered descriptor with no handler — is catchable in your own CI. Compose your daemon/gateway catalog exactly as production does, then assert every descriptor is invokable:

import { assertEveryDescriptorHasHandler } from '@pellux/goodvibes-terminal-shell/conformance';

test('every registered gateway descriptor has a handler', () => {
  const catalog = composeMyDaemonCatalog();
  assertEveryDescriptorHasHandler(catalog); // throws with the offending ids
});

findMethodsMissingHandlers(catalog, options) returns the offending ids instead of throwing. Both accept onlyIds / ignoreIds for catalogs whose builtin descriptors get handlers from a different layer. The catalog is read through a narrow structural view, so any GatewayMethodCatalog-shaped object works.