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

@vibesense/cli

v3.1.1

Published

Drive Claude Code or Codex CLI with a game controller — and play retro games while the agent works.

Readme

VibeSense

npm

Drive Claude Code or Codex CLI with a game controller — and play retro games while the agent works.

vibesense wraps an agent CLI in a pty and passes its TUI through to your terminal untouched. Claude Code remains the default; select Codex explicitly:

vibesense                         # Claude Code (unchanged)
vibesense codex [codex args...]   # Codex CLI
vibesense play [game]             # game only

A game controller (Xbox / DualSense / generic HID) drives everything:

  • Agent waiting on you? D-pad navigates options, A/✕ accepts, B/○ cancels, and the right stick scrolls. Y/△ triggers Claude Code's native voice input; in Codex it sends a normal space.
  • Agent executing? A retro Snake game auto-starts in a browser tab — left stick steers. The moment the agent stops or asks for approval, the game pauses and the controller flips back to driving the terminal.
  • Want a break? Menu/Options pauses the game and hands the controller to the terminal; press it again to resume. This manual pause sticks — the agent starting or stopping won't un-pause it.
  • Games are plugins. Anyone can publish a game as an npm package; official games are @vibesense/game-<id>, installed with vibesense install <id>.

How it works

controller (node-hid)                                  ← one host per machine
   │
input router ──(agent waiting/idle)──▶ keystrokes ──▶ node-pty ⇄ claude/codex
   │
   └────────(agent executing)──▶ SSE ──▶ browser tab (game canvas)

agent lifecycle hooks (curl POST) ──▶ http://127.0.0.1:48753 ──▶ agent-state FSM

Claude Code behavior and configuration are unchanged: its existing hooks (UserPromptSubmit, Stop, Notification, PreToolUse:AskUserQuestion, PostToolUse, and SessionEnd) are installed idempotently into ~/.claude/settings.json.

Codex uses four lifecycle hooks: UserPromptSubmit starts play, PermissionRequest pauses for approval, PostToolUse resumes play, and Stop pauses and focuses that terminal. VibeSense installs them into $CODEX_HOME/hooks.json, or ~/.codex/hooks.json when CODEX_HOME is unset. On first install—and whenever the hook definition changes—open /hooks in Codex, inspect the commands, and trust them.

Codex hooks must be enabled and permitted by local or administrator policy. VibeSense does not rewrite config.toml or bypass Codex's trust flow. Codex exposes no lifecycle event between approving a tool and that tool starting, so the game may remain paused while the approved tool runs; it resumes on PostToolUse.

Multiple wrapped sessions share one host, one controller, and one game—the game pauses whenever any tracked session needs your attention. Globally installed hooks from unrelated Claude and Codex sessions are ignored.

Terminal buttons and game buttons are disjoint sets, with a 750 ms input guard on every mode flip — mashing fire can never accidentally accept a question.

vibesense play [game] runs the game with no agent session at all. Add --auto-play (works in either mode, off by default) to keep the game running non-stop — on macOS it also keeps the machine awake and resets the OS idle timer (caffeinate -disu), so no sleep and no Teams/Slack "Away". vibesense --version (or -v) prints the installed version.

Games marketplace

Five games ship built in; browse and install the rest from the catalog at vibesense.dev/games. The official installable games live in vibesense-games, and vibesense-game-template is the starting point for building your own.

vibesense games            # list installed games (* = active)
vibesense install <id>     # install @vibesense/game-<id> from npm (tarballs/paths work too)
vibesense use <id>         # switch the active game
vibesense uninstall <id>

A game is an npm package @vibesense/game-<id> with a vibesense-game.json manifest — either a web game (canvas page served to the game tab) or an external adapter (shell commands on state transitions, e.g. launching/pausing a Steam game). See docs/plugin-contract.md to build one. Paid games are a reserved manifest field (entitlement) with the activation gate already in place — licensing bolts on later without changing the contract.

Trust model: installing a game is installing an npm package, and external games run shell commands by design. Only install games from authors you trust — same judgement as adding any dependency.

Install

npm install -g @vibesense/cli    # or: npx @vibesense/cli

Requires Node ≥22, and is macOS-first. The native deps node-hid / node-pty compile on install, so you'll need build tools (Xcode Command Line Tools on macOS).

npm 12+: dependency install scripts are blocked by default, which silently skips the native builds and breaks vibesense at startup. Approve them at install time:

npm install -g @vibesense/cli --allow-scripts=@vibesense/cli,node-pty,node-hid

Already installed and hitting a native-module error? Re-run the command above. On npm ≤11 the plain install works as-is.

Development

npm install
npm run dev        # run from source (tsx)
npm run verify     # typecheck + lint + format-check + tests