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

dino-runner-cli

v0.2.4

Published

A fast-paced terminal-based endless runner game inspired by the Chrome dinosaur game! Built with TypeScript and Node.js. Navigate through obstacles, collect points, and see how long you can survive as the difficulty increases!

Readme

🦖 Dino Runner CLI

A fast-paced terminal-based endless runner game inspired by the Chrome dinosaur game! Built with TypeScript and Node.js. Navigate through obstacles, collect points, and see how long you can survive as the difficulty increases!

🎮 Game Preview

___▐____________________g__________y________________⍘ | Score: 15 | Lvl: 2
___▌___________________g__________y________________⍘_ | Score: 15 | Lvl: 2
___▐__________________g__________y________________⍘__ | Score: 15 | Lvl: 2

🚀 Quick Start

Github: https://github.com/Oaxoa/dino-runner-cli NPM: https://www.npmjs.com/package/dino-runner-cli

Play Instantly (Recommended)

npx dino-runner-cli

Or Install Globally

npm install -g dino-runner-cli
dino-runner-cli

🎯 How to Play

  • ↑ (Up Arrow): Jump over ground obstacles (g, y)
  • ↓ (Down Arrow): Duck under overhead obstacles ()
  • Ctrl+C: Quit the game

Game Elements

  • ▌▐: Your character (alternates while running)
  • g, y: Ground obstacles (jump over these)
  • : Overhead obstacles (duck under these)
  • _: Safe ground

Scoring

  • +1 point for each obstacle you successfully avoid
  • Level increases every 64 steps, making the game faster and more challenging
  • Game Over when you hit an obstacle

🛠️ Development

Prerequisites

  • Bun runtime
  • Node.js (for npx distribution)

Local Development

# Install dependencies
bun install

# Run in development mode
bun run index.ts

# Build for distribution
npm run build

# Test the built version locally
npm link
npx dino-runner-cli

🎨 Game Features

  • Endless Runner: Procedurally generated obstacles
  • Progressive Difficulty: Game speed increases with your score
  • Smooth Animation: 50ms frame rate for fluid gameplay
  • Responsive Controls: Instant response to arrow key inputs
  • Score Tracking: Real-time score and level display
  • Cross-Platform: Works on any terminal that supports ANSI escape codes

🏗️ Technical Details

Built with:

  • TypeScript for type-safe game logic
  • Node.js process APIs for terminal control
  • Bun for fast development and building
  • npm for package distribution

The game uses raw terminal input mode to capture arrow keys and renders using ANSI escape sequences for smooth animation.

📦 Publishing

This package is designed to be distributed via npm and run with npx. The build process:

  1. TypeScript source is compiled to JavaScript
  2. Shebang (#!/usr/bin/env node) is added for CLI execution
  3. Package is configured with proper bin entry point

🤝 Contributing

Feel free to submit issues and pull requests! Some ideas for contributions:

📄 License

MIT License - see package.json for details

👨‍💻 Author

Pierluigi Pesenti ([email protected])