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

brainit

v1.0.1

Published

A fun terminal-based mental math game to fight brain rot - solve problems in 60 seconds!

Downloads

217

Readme

🧠 BrainIt

Fight brain rot, one equation at a time. 💪

A terminal-based mental math game for developers who'd rather do quick math than scroll TikTok during their coffee break. Train your brain while your code compiles!

⚡ Quick Start

npm install -g brainit
brainit

That's it! No config, no setup, just pure mental math adrenaline.

🎮 What You Get

  • 60-second sprint - Beat the clock solving real mental math
  • Live countdown - Watch time tick without losing your input
  • 4 operations - Addition, subtraction, multiplication, division
  • Smart questions - No baby math like 2+2 or 5×1
  • High scores - Flex on your past self
  • 2 game modes - Standard (60s) or Long (120s) for masochists

🕹️ Commands

brainit              # 60-second game
brainit long         # 120-second game (hardcore mode)
brainit highscore    # Check your best score

📖 The Rules

Time:

  • Standard: 60 seconds ⏱️
  • Long mode: 120 seconds 🔥

Questions you'll see:

  • Addition: 47 + 68 (range: 12-99)
  • Subtraction: 85 - 39 (range: 25-120)
  • Multiplication: 23 × 8 or 14 × 11 (no easy ones like 4×4)
  • Division: 72 / 9 (clean answers, divisor max 9)

Smart design:

  • ❌ No trivial questions (bye bye 2+2)
  • ⏭️ First 3 questions skip division (warm up first!)
  • 💾 Auto-saves your high score to ~/.brainit-highscore.json

🛠️ Development

git clone https://github.com/yourusername/brainit.git
cd brainit
npm install
npm run dev    # Run with hot reload
npm run build  # Compile TypeScript

🤔 Why This Exists

Your brain is getting soft from all that Stack Overflow copy-pasting. BrainIt brings back the mental math you used before calculators took over your life.

Use it for:

  • 🧠 Quick brain warmup before deep work
  • ☕ Coffee break that's actually productive
  • 🏃 Mental sprints between compile times
  • 💪 Keeping your calculation skills sharp

The hidden benefit: You'll stop reaching for your calculator to figure out how many minutes are in 2.5 hours.

📜 License

MIT - Go wild, build something cool.

🤝 Contributing

Found a bug? Want to add square roots? PRs welcome!


Pro tip: Set alias math='brainit' in your shell and feel like a genius every time you type it. 😎