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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pet-me-js

v1.0.2

Published

A Tamagotchi-style virtual pet for your terminal. TypeScript, evolutions, mini-games, random events, inventory, multiple pets, achievements — zero runtime deps.

Downloads

16

Readme

pet-me-js 🐣 - Virtual Terminal Pet (TypeScript)

A tiny Tamagotchi-style virtual pet that lives right in your terminal.
Built with TypeScript, featuring adorable ASCII art, evolutions, random events, mini-games, inventory, achievements, and more — all with zero runtime dependencies.

✨ Badges (replace with real ones in your repo):

  • 📦 npm: pet-me-js
  • 📄 license: MIT
  • 🟦 language: TypeScript

🌟 Features

  • 🐣 Evolutions: egg → baby → teen → adult (age & care based)
  • 😀 ASCII moods: art changes with happiness, hunger, and sickness
  • 🎲 Random events: find items, mood boosts, occasional sickness
  • Mini-game: Rock–Paper–Scissors to boost happiness
  • 🍎 Inventory: food, toys, meds
  • 🐕 Multiple pets: hatch, list, switch, rename, release
  • 🏆 Achievements: 7-day survivor, month keeper, perfect diet, etc.
  • Zero deps: fast install, portable CLI

🚀 Install

Try instantly (no install): npx pet-me-js help

Or install globally: npm i -g pet-me-js pet-me help

Note: Package name is pet-me-js; CLI command is pet-me.


🕹️ Command Reference

Use pet-me help (or -h / --help) anytime to see this menu.

pet-me status                 Show pet status
pet-me feed [food|toys]       Feed your pet (default: food)
pet-me play [rock|paper|scissors]
                              Play mini-game (RPS)
pet-me medicate               Use medicine if sick
pet-me hatch [--name NAME]    Hatch a new pet and switch to it
pet-me list                   List all pets
pet-me switch <id|name>       Switch current pet
pet-me rename <name>          Rename current pet
pet-me release [<id|name>]    Release a pet (default: current)
pet-me log [N]                Show last N events (default 20)
pet-me config [key value]     View or set config; keys:
                                hungerRatePerHour, happinessDecayPerHour,
                                healthDecayPerHour, randomEventHourlyChance,
                                notifications
pet-me reset                  Clear ALL data (fresh start)
pet-me help                   Show help
pet-me version                Show version

📖 Examples

npx pet-me-js hatch --name Luna
npx pet-me-js play rock
npx pet-me-js feed
npx pet-me-js medicate
npx pet-me-js list
npx pet-me-js switch <id>
npx pet-me-js config hungerRatePerHour 3

💾 Data & Storage

Your pet’s state is stored in a single JSON file (pets, config, log).

  • 🐧 Linux: ~/.config/pet-me-js/state.json
  • 🍏 macOS: ~/Library/Application Support/pet-me-js/state.json
  • 🪟 Windows: %APPDATA%/pet-me-js/state.json

(Future optional build: stored in browser localStorage)


⚙️ Config (tune difficulty)

  • hungerRatePerHour (number)
  • happinessDecayPerHour (number)
  • healthDecayPerHour (number)
  • randomEventHourlyChance (0–1)
  • notifications (boolean; reserved for future desktop alerts)

Example: pet-me config hungerRatePerHour 3 pet-me config randomEventHourlyChance 0.15


👩‍💻 Development

git clone https://github.com/JAYDIPSINH27/pet-me-js
cd pet-me-js
npm i
npm run build
node dist/bin/pet-me.js help

Project Structure

src/ types.ts - Domain types utils.ts - Colors, time, clamps, progress bars ascii.ts - ASCII sprites by stage & mood achievements.ts - Badge logic minigames.ts - Rock–Paper–Scissors storage.ts - Local storage (browser) or file (Node) state.ts - Constructors, load/save, current pet selection engine.ts - Pure simulation (evolve, events, tickOne) actions.ts - User-facing operations + printing help.ts - Central help text for CLI bin/ pet-me.ts - CLI dispatcher (supports help & version)


🔑 Keywords

pet, virtual-pet, tamagotchi, game, fun, cli, node, javascript, typescript


📦 Versioning & Publishing

We follow SemVer. To publish: npm version 1.0.1 npm publish --access public


🛣️ Roadmap

  • 🌐 Browser bundle (UMD/ESM)
  • 🔔 Desktop notifications
  • 🎮 Additional mini-games
  • 🧩 Plugin API
  • 🌍 Localization

📜 License

MIT © Jaydipsinh Padhiyar