๐Ÿš€ Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more โ†’
Sign In

cli-pet

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-pet

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

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
ย 
Created
Source

๐Ÿพ 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:

StatEmojiDriven ByEffect
Hunger๐Ÿ•Your commitsMore commits = well-fed pet
Healthโค๏ธCI/CD statusGreen builds = healthy pet
Happiness๐Ÿ˜ŠMerged PRs & reviewsCollaboration = happy pet
EnergyโšกCoding streaksConsistent 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

Keywords

cli

FAQs

Package last updated on 15 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts