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

@hypersocial/cli-games

v0.2.4

Published

Terminal games for xterm.js and CLI — snake, 2048, pong, asteroids, tetris, and more

Readme

@hypersocial/cli-games

18 terminal games that run in any xterm.js terminal or directly in your CLI.

Snake, Tetris, 2048, Pong, Asteroids, Space Invaders, Breakout, Frogger, Tron, Minesweeper, Wordle, Hangman, Simon, Runner, Tower, Typing Test, Crack, Chopper.

Originally built as easter eggs for HyperSpaces — the terminal for AI coding agents. Play games while your agents ship code.

Quick Start

# Play now — no install needed
npx @hypersocial/cli-games

# Launch a specific game
npx @hypersocial/cli-games snake

# With a color theme
npx @hypersocial/cli-games tetris --theme green

Install

# Global install
npm install -g @hypersocial/cli-games
cli-games

# Or as a project dependency (for xterm.js integration)
npm install @hypersocial/cli-games

CLI Usage

cli-games                    # Interactive game menu
cli-games <game>             # Launch a game directly
cli-games --theme <theme>    # Set color theme
cli-games --list             # List all games
cli-games --help             # Show help

Available Themes

cyan (default), amber, green, white, hotpink, blood, ice, bladerunner, tron, kawaii, oled, solarized, nord, highcontrast, banana, cream, and their light variants (e.g. cyanLight).

Library Usage (xterm.js)

import { games, setTheme, runGame } from '@hypersocial/cli-games';

// Set the color theme
setTheme('cyan');

// Run a game in an xterm.js Terminal instance
const controller = runGame('snake', terminal);

// Stop the game
controller?.stop();

// Browse all games
for (const game of games) {
  console.log(`${game.id}: ${game.name} - ${game.description}`);
}

Themes

import {
  themes,
  getTheme,
  getAnsiColor,
  getTerminalTheme,
  type PhosphorMode,
} from '@hypersocial/cli-games/themes';

// Get a full xterm.js theme object
const xtermTheme = getTerminalTheme('cyan');
terminal.options.theme = xtermTheme;

Games

| Game | Description | |------|-------------| | Tetris | Stack the blocks | | Snake | Eat and grow | | 2048 | Slide and combine tiles | | Runner | Jump and duck | | Pong | Classic paddle game | | Wordle | Guess the word | | Minesweeper | Clear the mines | | Hangman | Guess the word | | Space Invaders | Defend Earth | | Tower | Build a tower | | Simon | Memory game | | Frogger | Cross the road | | Breakout | Break all the bricks | | Asteroids | Shoot the rocks | | Typing Test | Test your speed | | Tron | Light cycle battle | | Crack | Hack the system | | Chopper | Deliver passengers |

Controls

  • Arrow keys or WASD — Move / navigate
  • Enter — Confirm / select
  • ESC — Pause menu
  • Q — Quit

About

Built by Selcuk Atli at HyperSocial App Studio.

These games are the easter eggs inside HyperSpaces, a terminal built for developers running multiple AI coding agents across multiple projects. Think Discord for your terminals — projects in the dock, branches as channels, agents side by side.

Contributing

Contributions welcome via pull requests. Add a new game, improve an existing one, or fix a bug.

License

AGPL-3.0 — see LICENSE for details.