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

cli-pet

v1.0.0

Published

๐Ÿพ A GitHub-powered virtual pet that lives in your terminal. Feed it commits, keep it healthy with green builds!

Readme

๐Ÿพ cli-pet โ€” A GitHub-Powered Virtual Pet for Your Terminal

License: MIT Built with GitHub Copilot CLI

A Tamagotchi-style virtual pet that lives in your terminal and reacts to your real GitHub activity. Feed it commits, keep it healthy with green builds, make it happy with merged PRs, and energize it with coding streaks!

โœจ Features

  • ๐Ÿฑ๐Ÿถ๐Ÿ‰๐Ÿ™ 4 adorable pet species โ€” Cat, Dog, Dragon, and Octocat
  • ๐Ÿ“Š GitHub-powered stats โ€” Your real coding activity drives your pet's health
  • ๐ŸŽฎ Interactive mini-games โ€” Play with your pet in the terminal
  • ๐Ÿง  Smart coding tips โ€” Your pet gives personalized advice based on your habits
  • ๐ŸŽจ Beautiful ASCII art โ€” Expressive pet states with color-coded mood indicators
  • ๐Ÿ’พ Persistent state โ€” Your pet remembers you between sessions

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • GitHub CLI (gh) authenticated, or a GITHUB_TOKEN environment variable

Install

# Clone the repository
git clone https://github.com/YOUR_USERNAME/cli-pet.git
cd cli-pet

# Install dependencies & build
npm install && npm run build

# Link globally (optional)
npm link

Usage

# Adopt your first pet! ๐Ÿ 
cli-pet adopt

# Check on your pet ๐Ÿ‘€
cli-pet status

# Feed your pet with GitHub activity ๐Ÿ•
cli-pet feed

# Play a mini-game ๐ŸŽฎ
cli-pet play

# View detailed GitHub stats ๐Ÿ“Š
cli-pet stats

# Get coding tips from your pet ๐Ÿง 
cli-pet tips

๐Ÿ“– How It Works

Your pet has 4 core stats, each driven by your real GitHub activity:

| Stat | Emoji | Driven By | Effect | |------|-------|-----------|--------| | Hunger | ๐Ÿ• | Your commits | More commits = well-fed pet | | Health | โค๏ธ | CI/CD status | Green builds = healthy pet | | Happiness | ๐Ÿ˜Š | Merged PRs & reviews | Collaboration = happy pet | | Energy | โšก | Coding streaks | Consistent activity = energized pet |

Stats decay over time โ€” if you don't code, your pet gets hungry and sad! Run cli-pet feed regularly to keep your pet happy.

Pet Moods

Your pet's mood changes based on its overall stats:

  • ๐ŸŒŸ Ecstatic โ€” All stats above 85%
  • ๐Ÿ˜Š Happy โ€” Balanced, healthy stats
  • ๐Ÿ˜ข Sad โ€” Low happiness or declining stats
  • ๐Ÿ• Hungry โ€” Haven't committed in a while
  • ๐Ÿค’ Sick โ€” CI builds are failing
  • ๐Ÿ˜ด Sleeping โ€” Low energy, needs activity
  • ๐Ÿ’€ Fainted โ€” Critical stats! Feed immediately!

Leveling Up

Your pet earns XP from your GitHub activity:

  • Each commit = 5 XP
  • Each merged PR = 20 XP
  • Each code review = 10 XP
  • Each streak day = 3 XP

Every 100 XP = 1 level up! ๐ŸŽ‰

๐Ÿ—๏ธ Architecture

src/
โ”œโ”€โ”€ index.ts              # CLI entry point (Commander.js)
โ”œโ”€โ”€ commands/
โ”‚   โ”œโ”€โ”€ adopt.ts           # Interactive pet adoption
โ”‚   โ”œโ”€โ”€ status.ts          # Pet status display
โ”‚   โ”œโ”€โ”€ feed.ts            # GitHub activity โ†’ pet feeding
โ”‚   โ”œโ”€โ”€ play.ts            # Mini-game
โ”‚   โ”œโ”€โ”€ stats.ts           # Detailed GitHub stats
โ”‚   โ””โ”€โ”€ tips.ts            # AI-powered coding tips
โ”œโ”€โ”€ pet/
โ”‚   โ”œโ”€โ”€ engine.ts          # State machine & stat calculations
โ”‚   โ”œโ”€โ”€ types.ts           # TypeScript interfaces
โ”‚   โ””โ”€โ”€ persistence.ts     # Save/load pet state
โ”œโ”€โ”€ github/
โ”‚   โ”œโ”€โ”€ activity.ts        # GitHub API integration
โ”‚   โ””โ”€โ”€ analyzer.ts        # Activity โ†’ stat mapping
โ”œโ”€โ”€ art/
โ”‚   โ”œโ”€โ”€ ascii.ts           # ASCII art for all species & moods
โ”‚   โ”œโ”€โ”€ animations.ts      # Terminal animations
โ”‚   โ””โ”€โ”€ colors.ts          # Color theming
โ””โ”€โ”€ utils/
    โ”œโ”€โ”€ config.ts          # Config management
    โ””โ”€โ”€ display.ts         # Terminal rendering

๐Ÿ› ๏ธ Tech Stack

  • TypeScript โ€” Type-safe codebase
  • Commander.js โ€” CLI argument parsing
  • Octokit โ€” GitHub API client
  • Chalk โ€” Terminal colors
  • Boxen โ€” Terminal boxes
  • Figlet โ€” ASCII text art
  • Ora โ€” Loading spinners
  • Conf โ€” Persistent configuration

๐Ÿค Built with GitHub Copilot CLI

This entire project was built using GitHub Copilot CLI as my AI-powered coding companion. Copilot CLI helped with:

  • ๐Ÿ—๏ธ Architecture design โ€” Planning the project structure and module boundaries
  • ๐Ÿ’ป Code generation โ€” Writing TypeScript code across all modules
  • ๐Ÿ› Debugging โ€” Identifying and fixing issues in real-time
  • ๐Ÿ” Code exploration โ€” Understanding GitHub API responses and library interfaces
  • ๐Ÿ“ Documentation โ€” Generating this README and inline documentation

๐Ÿ“„ License

MIT ยฉ 2026


Made with ๐Ÿ’œ and GitHub Copilot CLI