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

@open-pets/claude-pets

v0.1.1

Published

Claude Code hooks for OpenPets desktop pet status updates.

Readme


Video

https://github.com/user-attachments/assets/a10edb8a-d13a-4b99-96bc-ea5c7cade741

What is Claude Pets?

Claude Pets connects Claude Code activity to OpenPets, a local desktop pet.

Requirements

  • Bun >= 1.3.0
  • Claude Code
  • OpenPets desktop app

Quick start

1. Install OpenPets desktop

Download the latest OpenPets app:

https://github.com/alvinunreal/openpets/releases/latest

Pick the file for your OS:

  • macOS Apple Silicon: OpenPets-*-arm64.dmg or OpenPets-*-arm64.zip
  • Windows: OpenPets-Setup-*-x64.exe
  • Linux: OpenPets-*-x86_64.AppImage or OpenPets-*-amd64.deb

Open the app once. You should see the pet on your desktop and an OpenPets tray/menu-bar icon.

Preview builds are unsigned, so macOS or Windows may show a warning on first launch.

If macOS says the app is damaged or should be moved to Trash, remove the quarantine flag and open it again:

xattr -dr com.apple.quarantine /Applications/OpenPets.app
open /Applications/OpenPets.app

2. Add OpenPets to Claude Code

This gives Claude Code tools for talking to and controlling the pet:

claude mcp add -s user openpets -- bunx @open-pets/mcp

Restart Claude Code, then check:

claude mcp list

You should see openpets.

3. Enable automatic Claude reactions

Install Claude Pets hooks globally:

bunx @open-pets/claude-pets install

This updates your user-wide Claude Code settings:

~/.claude/settings.json

The installer preserves unrelated settings and creates a backup before writing.

Restart Claude Code after installing, then run /hooks in Claude Code. The Claude Pets commands should appear under user settings. If they do not appear there, Claude Code has not loaded the hooks yet.

Test it

With OpenPets running:

bunx @open-pets/claude-pets test-event thinking

Your pet should animate briefly, then return to idle.

You can also try:

bunx @open-pets/claude-pets test-event testing
bunx @open-pets/claude-pets test-event success

Uninstall

Remove the global hooks:

bunx @open-pets/claude-pets uninstall

This only removes Claude Pets managed hook commands from ~/.claude/settings.json.

Troubleshooting

OpenPets is not reacting

  1. Start the OpenPets desktop app.
  2. Run:
bunx @open-pets/claude-pets test-event thinking
  1. If nothing happens, restart OpenPets and try again.

Hooks are not firing

  1. Make sure you installed hooks:
bunx @open-pets/claude-pets install
  1. Restart Claude Code.
  2. In Claude Code, run /hooks and confirm the Claude Pets command appears under user settings. Treat /hooks as the source of truth: if Claude Pets is not listed there, Claude Code has not loaded the hooks.
  3. Check that ~/.claude/settings.json contains @open-pets/claude-pets.
  4. If bunx @open-pets/claude-pets test-event thinking works but normal Claude Code prompts do not update the pet, the desktop app is working and the issue is hook loading.

On Windows, you can also test the hook command directly from PowerShell while OpenPets is running:

'{"hook_event_name":"UserPromptSubmit"}' | bunx --bun @open-pets/[email protected] hook

If this makes the pet think, the hook command works and Claude Code still needs to load the hook config.

Bun is missing

Install Bun first:

https://bun.com

Restore settings from backup

Every write creates a backup next to the settings file:

~/.claude/settings.json.bak-<timestamp>

Quit Claude Code, copy the backup over ~/.claude/settings.json, then restart Claude Code.

Advanced

Project-only install

Global install is recommended. Project-only hooks are written to .claude/settings.local.json, but Claude Code must load that project settings file for the hooks to run. Always verify project-only installs with /hooks.

If you only want Claude Pets hooks in one project, run this from that project root:

bunx @open-pets/claude-pets install --project

This writes project-local settings instead:

.claude/settings.local.json

Uninstall project-local hooks with:

bunx @open-pets/claude-pets uninstall --project

Preview settings without writing

bunx @open-pets/claude-pets install --dry-run

Print the hook settings snippet

bunx @open-pets/claude-pets print

Production hooks use this command:

bunx --bun @open-pets/[email protected] hook

Commands

claude-pets install [--dry-run] [--project] [--local-command]
claude-pets uninstall [--dry-run] [--project]
claude-pets print [--local-command]
claude-pets hook
claude-pets test-event <state>

Local development

git clone https://github.com/alvinunreal/claude-pets.git
cd claude-pets
bun install
bun test
bun run typecheck
bun run build

Install hooks pointing at your local checkout:

bun src/cli.ts install --local-command

Recommended setup

Use both OpenPets integrations for the best experience:

  1. OpenPets MCP - lets Claude intentionally speak/control the pet.
  2. Claude Pets hooks - automatic background state changes while Claude works.