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

everybuddy

v0.2.1

Published

Gacha-hatched terminal companions that live in your tmux. Draw a pet, AI writes its soul, it watches your shell and reacts.

Readme


Prerequisites

  • Node.js >= 20
  • tmux — the companion lives here
  • zsh — shell hooks only support zsh for now

Quick Start

npm install -g everybuddy

buddy                    # gacha draw → soul imprint → your companion is born
buddy install tmux       # hook into zsh + tmux

Open a new tmux window. Your companion is there.

How It Works

┌─────────────┐     ┌─────────────┐     ┌─────────────────────┐
│  1. BONES   │ ──→ │  2. SOUL    │ ──→ │  3. RUNTIME         │
│             │     │             │     │                     │
│ Deterministic     │ LLM writes  │     │ tmux sidecar pane   │
│ gacha draw  │     │ name +      │     │ observes commands   │
│ from your   │     │ personality │     │ via Unix socket,    │
│ username    │     │ + profile   │     │ reacts with speech  │
│ seed        │     │             │     │ bubbles + sprites   │
└─────────────┘     └─────────────┘     └─────────────────────┘

Bones are deterministic. Same username → same species, rarity, stats, appearance. Always. The PRNG is seeded from hash(username + salt) — no network, no randomness.

Soul is AI-generated. A single LLM call produces the companion's name, tagline, personality, and observer profile (voice, chattiness, sharpness, patience). This controls how often and how sharply the companion speaks.

Runtime is reactive. Shell hooks fire buddy event <type> on every command. The sidecar evaluates whether to call the LLM for a reaction based on the observer profile, command history, and cooldown timers.

Companion Cards

Every companion gets a card with rarity-colored borders, animated sprites, and stat bars.

Gacha Animation

The hatching sequence is a 5-phase ANSI animation rendered in-place:

| Phase | What happens | Legendary | Common | |-------|-------------|-----------|--------| | Charge | Spinner builds tension | 1.8s | 0.8s | | Particles | Converge to center | 1.2s | 0.5s | | Flash | Screen bursts in rarity color | Rainbow + shake | Subtle tint | | Silhouette | Dim outline appears | 0.5s | 0.3s | | Reveal | Color fills, name types out | 0.7s | 0.5s |

Higher rarity = longer animation = more anticipation.

Rarity Tiers

| | Tier | Stars | Drop Rate | Species | |-|------|-------|-----------|---------| | ⬜ | Common | ★ | 60% | Duck, Goose, Blob, Penguin, Turtle, Snail, Cactus | | 🟩 | Uncommon | ★★ | 25% | Cat, Owl, Capybara, Mushroom, Frog | | 🟦 | Rare | ★★★ | 10% | Robot, Ghost, Chonk, Heavy Loop | | 🟪 | Epic | ★★★★ | 4% | Dragon, Octopus, Axolotl, Fox, Crystal, Jellyfish | | 🟨 | Legendary | ★★★★★ | 1% | Maltese, Velvet Escape, Sassy Tanuki |

Claude Code Integration

Your companion can also live in the Claude Code status bar.

buddy install claude-code   # configures statusLine + auto-hatches

Or install via the CC plugin:

/plugin marketplace add Dylan-Nihilo/everybuddy-claude-plugin
/plugin install everybuddy
/everybuddy:setup

Commands

buddy                       # show your companion (or first-run setup)
buddy setup                 # reconfigure LLM provider
buddy hatch                 # re-draw a new companion
buddy hatch --force         # force replace current companion
buddy install tmux          # install shell hooks in ~/.zshrc
buddy install claude-code   # configure Claude Code status bar
buddy pet                   # view companion card
buddy pet --color           # force ANSI color output in non-TTY

LLM Providers

The companion's soul imprint and sidecar reactions are powered by an LLM. Choose during buddy setup:

| Provider | Default Model | Notes | |----------|---------------|-------| | Alibaba DashScope | qwen3.5-plus | Default. Free tier available. | | OpenAI | gpt-4o-mini | Needs API key. | | Anthropic | claude-haiku-4-5 | Needs API key. | | Custom | any | Any OpenAI-compatible endpoint. |

Provider is tested on setup — if the connection fails, you get a warning but config is still saved.

Tech Stack

| | Technology | Role | |-|------------|------| | 🟦 | TypeScript | Language | | 🟩 | Node.js >= 20 | Runtime | | 📦 | pnpm | Package manager | | 🖥️ | tmux | Sidecar host | | 🐚 | zsh | Shell hooks | | 🧪 | node:test | Test runner (built-in, no framework) | | 🎨 | ANSI escape codes | Terminal rendering + animation | | 🔌 | Unix domain sockets | Shell event transport | | 🤖 | OpenAI-compatible API | Soul imprint + observer reactions |

Project Structure

src/
├── atlas/          # Bundled companion templates (deterministic draw pool)
├── bones/          # PRNG, rarity weights, stat rolling
├── cli/            # Commander commands (setup, hatch, install, event)
├── i18n/           # Chinese/English localization
├── render/
│   ├── gacha.ts    # 5-phase hatching animation
│   ├── card.ts     # Companion card renderer
│   ├── sprites.ts  # ASCII art registry (24 species × 3 frames)
│   └── compose.ts  # Sprite composition (species + eyes + hat + color)
├── runtime/
│   ├── observer.ts # LLM-powered reaction engine
│   └── sidecar.ts  # tmux pane renderer
├── soul/           # LLM providers (OpenAI-compatible, Anthropic)
├── storage/        # Config + companion persistence (~/.terminal-buddy/)
└── types/          # TypeScript interfaces

showcase/           # Product website (dark theme, glass holographic cards)
tools/              # Gallery builder, image-to-ASCII converter

Development

pnpm install          # install deps
pnpm build            # tsc → dist/
pnpm test             # node --test (59 tests)
pnpm dev              # tsx src/index.ts
pnpm run typecheck    # tsc --noEmit

# test with a specific rarity
rm -rf ~/.terminal-buddy && EVERYBUDDY_USER_ID=t-69 node dist/index.js   # Legendary
rm -rf ~/.terminal-buddy && EVERYBUDDY_USER_ID=t-23 node dist/index.js   # Epic
rm -rf ~/.terminal-buddy && EVERYBUDDY_USER_ID=t-0 node dist/index.js    # Common

License

MIT