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

@walidnurudin/react-mini-games

v1.2.0

Published

An open-source React package to import and play mini-games.

Readme

react-mini-games

An open-source React package containing a collection of fun, easy-to-embed mini-games.

Installation

npm install @walidnurudin/react-mini-games

Available Games

This package includes the following fully playable mini-games:

  • TicTacToe - Classic 2-player grid board.
  • Snake - Keyboard controlled food-eating snake survival game.
  • WhackAMole - Fast paced timer game to hit pop-up moles.
  • MemoryMatch - Memory-matching board game with randomized emojis.
  • Game2048 - Slide merger puzzle aiming to reach the 2048 block.
  • RockPaperScissors - Quick choice comparison rounds against AI.
  • SimonSays - Brain-teaser pattern memorization sequences.

Usage

import { 
  TicTacToe, 
  Snake, 
  WhackAMole, 
  MemoryMatch, 
  Game2048, 
  RockPaperScissors, 
  SimonSays 
} from '@walidnurudin/react-mini-games';

function App() {
  const handleScore = (score: number) => {
    console.log(`Game ended! Score/Result: ${score}`);
  };

  return (
    <div>
      <h1>Play Snake</h1>
      <Snake onGameOver={handleScore} />
    </div>
  );
}

🎮 Contributing a New Mini-Game

We love contributions! Follow these steps to add a new mini-game:

  1. Fork this repository and clone it to your local machine.
  2. Create a new directory under src/games/ (e.g., src/games/Snake/).
  3. Build your game component inside that directory:
    • Ensure the component is fully self-contained.
    • Use standard React hook patterns.
    • Export your props interface and your component.
  4. Export your game from the main entry point:
    • In src/index.ts, add:
      export { Snake } from './games/Snake';
      export type { SnakeProps } from './games/Snake';
  5. Run the build command locally to verify that there are no compilation or TypeScript issues:
    npm run build
  6. Submit a Pull Request detailing your game and including a screenshot or GIF of the gameplay.