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

pong-cli

v1.1.0

Published

A faithful CLI recreation of the classic 1972 Atari Pong arcade game with real-time terminal rendering

Readme

The 1972 Atari classic, right in your terminal. 🏓

npm version license node

"Avoid missing ball for high score."

🚀 Quick Start

npx pong-cli

One command. No install. Just play.

Want it installed? Run npm install -g pong-cli then just type pong.

🕹️ What Is This?

A faithful recreation of Pong — the game that started it all in 1972. Black and white. Two paddles. One ball. Pure arcade action, running at 30 FPS in your terminal.

✨ Features

  • 🤖 1-Player — Battle the CPU on Easy, Normal, or Hard
  • 👥 2-Player — Grab a friend, share a keyboard
  • 🏓 Real Physics — Angle changes based on where the ball hits your paddle
  • Speed Ramp — The ball gets faster with every volley
  • 🔊 Sound Effects — Terminal beeps for hits and scores (disable with --no-sound)
  • 🏆 First to 11 — Or set your own target with --score
  • Monochrome — Black-and-white aesthetic, faithful to the original CRT
  • 🖥️ 30 FPS — Smooth real-time terminal rendering

🎮 Controls

| | Player 1 | Player 2 | |---|---|---| | Move Up | W | | | Move Down | S | |

| Key | Action | |---|---| | Space / P | Pause | | Enter | Select | | Esc | Quit |

💡 In 1-Player mode, both W/S and arrow keys control your paddle.

⚙️ Options

| Flag | Description | Default | |---|---|---| | --score <n> | Winning score (1–99) | 11 | | --difficulty <level> | easy · normal · hard | normal | | --no-sound | Disable beep sounds | — | | --help | Show help | — | | --version | Show version | — |

# Hard mode, first to 21
npx pong-cli --difficulty hard --score 21

💡 Pro Tips

🏓 Aim with your paddle — hitting the ball near the edge creates a steep angle. Center hits go straight.

Stay sharp — ball speed increases with every rally and resets after each point.

🤖 Hard mode is no joke — the CPU predicts where the ball will land.

🛠️ Development

git clone https://github.com/engelde/pong-cli.git
cd pong-cli
npm install

| Command | Description | |---|---| | npm start | Run the game | | npm test | Run tests | | npm run lint | Lint with Biome | | npm run format | Format with Biome |

Husky runs linting + tests on pre-commit and enforces Conventional Commits. CI runs on Node 18 / 20 / 22. Releases via release-please.

📜 Credits

Inspired by the original Pong arcade game by Atari, Inc. (1972), designed and built by Allan Alcorn. Pong was the first commercially successful video game and launched the arcade era.

📄 License

MIT