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

minesweeper-tui

v0.1.2

Published

A Vim-friendly Minesweeper TUI.

Readme

Minesweeper TUI

npm version License: MIT Bun Releases

A Vim-friendly Minesweeper game playable directly in your terminal. Built with React Ink.

cover

About

This is my second TUI-based project built with React and Ink.

It is a terminal port of my original Minesweeper Svelte. While I reused most of the core helper functions and logic from the original version, the entire UI has been completely rewritten for the terminal using React and Ink.

I hope you have fun playing it!

Gameplay

gameplay

  • open on an unrevealed square: To open the square. If it's a mine, the game is over! If it's not a mine, it will reveal a number indicating how many mines are adjacent to it (in the 8 surrounding squares).

  • flag on an unrevealed square: To place a flag on the square. This marks it as a suspected mine. flag again to remove the flag.

  • open on revealed square: If the number of flags matches the number on the cell, this opens all remaining unflagged adjacent squares.

open-adjacent

  • flag on revealed square: Automatically flags all remaining unrevealed adjacent squares if they must contain mines.

flag-adjacent

Installation

Download pre-built binaries for your platform from the Releases page.

Homebrew (MacOS and Linux)

brew tap Pansther/minesweeper
brew install minesweeper

Node

npm i -g minesweeper-tui
npx minesweeper-tui
yarn global add minesweeper-tui
bun install -g minesweeper-tui

From Source

To start the minesweeper-tui application directly from the source code, make sure you have Bun (version 1.x or higher) installed.

  1. Install dependencies:

    bun install
  2. Run the application:

    bun start

Keybindings

minesweeper-tui supports common Vim-like keybindings for efficient navigation and interaction within the application. This includes familiar keys like j, k for vertical movement, h, l for horizontal focus changes, and g, G for quick jumps to the top or bottom.

  • Navigation:

    • ←/h: Move left
    • ↓/j: Move down
    • ↑/k: Move up
    • →/l: Move right
    • 0: Go to start of row
    • $: Go to end of row
    • g: Go to top
    • G: Go to bottom
    • M: Go to center
  • Gameplay:

    • space: Open cell
    • f: Flag cell
    • backspace: Hint
  • Game Management:

    • </>: Cycle theme
    • r: Restart game
    • ?: Toggle visibility of key instructions
    • Q: Exit game

Configuration

minesweeper-tui stores your notes in ~/.minesweeper.

Troubleshooting

Color Issues

If the colors in minesweeper-tui appear dull or incorrect, your terminal might not be identifying itself as a True Color terminal. You can fix this by adding the following to your shell configuration (.zshrc or .bashrc):

export COLORTERM=truecolor

License

This project is licensed under the MIT License - see the LICENSE file for details.