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

first-brain-games

v2.1.0

Published

Console mini brain games

Readme

Brain Games

Maintainability

Welcome to the First Brain Games!

A terminal game that consists of different maths tasks.

Requirements

Node.js >= 18.0.0

Installation

npm i -g first-brain-games

Available Games

  1. brain-even
  2. brain-calc
  3. brain-gcd
  4. brain-balance
  5. brain-progression
  6. brain-prime
  7. brain-fibonacci
  8. brain-sqrt
  9. brain-binary

You can call the menu via brain-game or npm start.

To immediately start a specific game without the menu, use its name directly (e.g. brain-even).

Development

make install          # Install dependencies
make lint             # Run ESLint
make start            # Launch main menu
make start-even       # Launch even game
make start-calc       # Launch calc game
make start-gcd        # Launch gcd game
make start-balance    # Launch balance game
make start-progression # Launch progression game
make start-prime      # Launch prime game
make start-fibonacci  # Launch fibonacci game
make start-sqrt       # Launch sqrt game
make start-binary     # Launch binary game
make publish          # Publish to npm

asciicast

Games

  • Even game — You are shown a random number. Answer yes if it is even, no if it is odd.

    brain-even

    asciicast

  • Calc game — Solve a random arithmetic expression using +, -, or *. Type the result.

    brain-calc

    asciicast

  • GCD game — Two numbers are shown. Find their greatest common divisor.

    brain-gcd

    asciicast

  • Balance game — Rearrange the digits of a number so that the difference between the largest and smallest digit is at most 1.

    brain-balance

    asciicast

  • Progression game — An arithmetic sequence is shown with one number replaced by ... Find the missing number.

    brain-progression

    asciicast

  • Prime game — You are shown a number. Answer yes if it is prime, no otherwise. A prime number is greater than 1 and divisible only by 1 and itself.

    brain-prime

    asciicast

  • Fibonacci game — You are shown a number. Answer yes if it belongs to the Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21, ...), no otherwise.

    brain-fibonacci
  • Square root game — You are shown a perfect square. Find its integer square root.

    brain-sqrt
  • Binary game — You are shown a decimal number. Convert it to its binary representation.

    brain-binary