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

git-pet

v1.0.0

Published

A Tamagotchi-style terminal pet whose mood reflects your repo health ๐Ÿ•

Readme

git-pet

A Tamagotchi-style terminal pet whose mood reflects your git repository health!

git-pet is an adorable animated dog that lives in your terminal. Its mood and health are tied to your coding habits - frequent commits, clean working trees, and good practices make your buddy happy!

Features

  • Adorable ASCII Art Dog - Cute animated pet with wagging tail, blinking eyes, and expressive moods
  • Dynamic Animations - Watch your pet walk around, sniff, scratch, roll over, chase their tail, and more!
  • 5 Evolution Levels - Watch your puppy grow from a tiny ball of fluff to a Legendary Doge with a crown!
  • Smart Dog Tricks - Your pet performs real git commands as tricks (fetch, status, branch, log, and more!)
  • Repository Health Tracking - Monitors commit frequency, working tree cleanliness, and more
  • Visual Heatmap - GitHub-style contribution heatmap showing your last 4 weeks of activity
  • Focus Mode - Built-in Pomodoro timer to help you stay productive
  • Smart Commits - AI-assisted commit message suggestions
  • Achievements System - Unlock achievements for coding milestones
  • XP & Leveling System - Earn XP through good coding habits and watch your pet evolve
  • Persistent State - Your pet remembers you between sessions!

Installation

# Run directly with npx (no install needed!)
npx git-pet

# Or install globally
npm install -g git-pet
git-pet

Quick Start

  1. Navigate to any git repository
  2. Run npx git-pet
  3. Name your new pet companion
  4. Watch them react to your repository's health!

Controls

| Key | Action | |-----|--------| | F | Feed - Scan for TODOs, FIXMEs, and console.logs | | P | Play - Smart dog tricks (git commands) | | L | Level - View detailed level, HP & XP info | | S | Stats - Stats dashboard with heatmap | | C | Commit - Smart commit message generator | | T | Timer - Focus/Pomodoro mode | | A | Awards - View achievements | | R | Refresh - Re-scan repository health | | H | Help - Show help screen | | E | Exit - Save and exit | | X | Reset - Reset game (delete pet) |

Smart Dog Tricks

Your pet can perform real git commands as tricks! Press P to see available tricks:

| Trick | Command | Unlock Level | |-------|---------|--------------| | Fetch | git fetch --all | Level 1 | | Sniff | git status --short | Level 1 | | Roll Over | git branch -a | Level 2 | | Bury Bone | git stash list | Level 2 | | Sit & Show | git log --oneline -10 | Level 2 | | Point | git diff --stat | Level 3 | | Howl | git remote -v | Level 3 | | Pack Call | git shortlog -sn | Level 4 | | Play Dead | Your recent commits | Level 4 | | Shake | git remote prune origin --dry-run | Level 5 |

Evolution Levels

| Level | XP Required | Name | Special | |-------|-------------|------|---------| | 1 | 0 | Puppy | Small and extra cute! | | 2 | 100 | Young Dog | Unlocks more tricks | | 3 | 300 | Adult Dog | Gets spotted coat | | 4 | 600 | Cool Dog | Gets sunglasses! | | 5 | 1000 | Legendary Doge | Crown and sparkles! |

Dynamic Animations

Your pet has a variety of idle animations based on their mood:

Happy/Playful:

  • Walking left and right
  • Sniffing the ground
  • Scratching behind ear
  • Stretching
  • Rolling on back
  • Chasing tail
  • Looking around

Sad/Sick:

  • Whimpering
  • Head down
  • Slow walking
  • Occasional tears

Stats Dashboard

Press S to see the combined stats screen with:

  • Pet Progress - Level, HP bar, XP bar, days together
  • Git Heatmap - Visual 4-week commit activity grid
  • Git Stats - Total commits, today's commits, streak info
  • Activity - Total feeds, plays, and scans

The heatmap shows your commit intensity:

  • โ–‘ (gray) - No commits
  • โ–’ (green) - 1 commit
  • โ–“ (bright green) - 2-3 commits
  • โ–ˆ (bold green) - 4+ commits

Focus Mode

Press T to start a focus session:

  • Choose duration: 15, 25, 45, or 60 minutes
  • Your pet cheers you on while you work
  • Earn bonus XP for commits made during focus
  • Press Space to pause/resume
  • Press X to end early

How Health is Calculated

GitBuddy monitors several aspects of your repository:

  • Commit Frequency (30%) - How often you commit (10+/week = great!)
  • Commit Streak (15%) - Consecutive days with commits
  • Working Tree (20%) - Clean tree = happy dog
  • Test Files (15%) - Having tests shows you care!
  • README (5%) - Documentation matters
  • Recent Activity (15%) - When was your last commit?

Mood States

Your buddy's mood changes based on repository health:

  • Excited (90-100 HP) - Bouncy, sparkles, maximum tail wags
  • Happy (70-89 HP) - Wagging tail, big smile
  • Neutral (50-69 HP) - Calm, small smile
  • Sad (25-49 HP) - Droopy ears, tears
  • Sick (0-24 HP) - Shivering, needs help!
  • Sleeping - After 60 seconds of inactivity (zzz...)

Tips for a Happy Pet

  • Commit frequently (aim for at least 1 commit per day)
  • Keep your working tree clean
  • Add test files to your project
  • Include a README.md
  • Address TODOs and FIXMEs
  • Remove console.log statements from production code
  • Use focus mode to stay productive!

Requirements

  • Node.js 18 or higher
  • A git repository
  • A terminal that supports Unicode and colors

Screenshots

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  Buddy                                        โ”‚
โ”‚  Mood: Happy            XP: 150/300           โ”‚
โ”‚                                               โ”‚
โ”‚  HP  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  85/100             โ”‚
โ”‚  XP  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  150/300            โ”‚
โ”‚                                               โ”‚
โ”‚              โˆง๏ผฟโˆง                              โ”‚
โ”‚             (โ—•แดฅโ—•)                             โ”‚
โ”‚            โ•ญโ”€โˆชโ”€โˆชโ”€โ•ฎ                            โ”‚
โ”‚            โ”‚ โ–’โ–’โ–’ โ”‚โˆผ                           โ”‚
โ”‚            โ•ฐโ”€โ”€โ”€โ”€โ”€โ•ฏ                            โ”‚
โ”‚             โ”‚โ”‚ โ”‚โ”‚                             โ”‚
โ”‚                                               โ”‚
โ”‚  ๐Ÿ’ฌ "*happy bark* Your repo looks great!"    โ”‚
โ”‚                                               โ”‚
โ”‚  โœ“ Commits this week    12 commits           โ”‚
โ”‚  โœ“ Working tree         clean                โ”‚
โ”‚  โœ“ Tests                found                โ”‚
โ”‚  โœ“ README               present              โ”‚
โ”‚                                               โ”‚
โ”‚     [F]eed [S]tats [H]elp [E]xit             โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

License

MIT


Give your terminal a friend!