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

bongocat-react

v1.3.0

Published

A React component that adds an animated BongoCat to your app — reacts to typing and mouse clicks

Readme

bongocat-react

A React component that adds an animated BongoCat overlay to your app. The cat reacts to keyboard typing and mouse clicks in real-time.

Built using BongoCat-mac as reference (MIT licensed).

Install

npm install bongocat-react

Setup

  1. Copy the 5 sprite PNGs into your public directory (e.g. public/bongo-cat/):

    • base.png — cat body
    • left-up.png / left-down.png — left paw states
    • right-up.png / right-down.png — right paw states

    You can find the original sprites in the assets/ folder of this repo.

  2. Add the component:

import { BongoCat } from "bongocat-react";

function App() {
  return (
    <div>
      <BongoCat />
    </div>
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | assetsPath | string | "/bongo-cat" | Base URL path to sprite PNGs | | bottom | number \| string | 16 | CSS bottom offset | | right | number \| string | 16 | CSS right offset | | width | number | 65 | Container width in px | | height | number | 40 | Container height in px | | zIndex | number | 9998 | z-index of the overlay | | pulse | boolean | true | Scale pulse animation on input | | spriteMarginTop | string \| number | "37%" | Margin-top on sprites to ground the cat visually | | clickTooltip | boolean | true | Show a fun tooltip when the cat is clicked | | messages | string[] | Built-in cat messages | Custom tooltip messages | | messageDuration | number | 2000 | How long the tooltip stays visible (ms) | | className | string | "" | Additional CSS class | | style | CSSProperties | — | Additional inline styles |

Click Tooltip

Click on the cat and it'll say something fun! Enabled by default with 13 built-in messages. Customize with your own:

{/* Use built-in messages (default) */}
<BongoCat />

{/* Custom messages */}
<BongoCat messages={["hire me!", "star this repo ⭐", "todo: take over world"]} />

{/* Disable tooltip */}
<BongoCat clickTooltip={false} />

{/* Longer display */}
<BongoCat messageDuration={5000} />

Positioning

By default, the cat sits in the bottom-right corner. Use bottom, right, and style to place it wherever you want:

{/* Bottom-right (default) */}
<BongoCat />

{/* Bottom-left */}
<BongoCat right="auto" style={{ left: 16 }} />

{/* Top-right */}
<BongoCat bottom="auto" style={{ top: 16 }} />

{/* Top-left */}
<BongoCat bottom="auto" right="auto" style={{ top: 16, left: 16 }} />

{/* Centered at bottom */}
<BongoCat right="auto" style={{ left: "50%", transform: "translateX(-50%)" }} />

{/* Custom offset */}
<BongoCat bottom={40} right={40} />

{/* Bigger cat */}
<BongoCat width={130} height={80} />

Privacy

This package does not track, collect, or transmit any data. No analytics, no telemetry, no cookies. It's intentionally kept simple — just a lil kitty reacting to your keystrokes and clicks, entirely client-side.

How it works

  • Listens to keydown/keyup on document and mousedown/mouseup on window (capture phase)
  • Maps physical key positions (event.code) to left/right paw — left-half keyboard keys move the left paw, right-half keys move the right paw
  • Left mouse click → left paw, right click → right paw
  • Click on the cat → random fun tooltip message
  • Handles context menu stealing mouseup events

Credits

  • Built using BongoCat-mac by Valentin Rudloff as reference — the sprite system and paw state machine were adapted from that project (MIT licensed)
  • Original BongoCat meme by @DitzyFlama, cat art by @StrayRogue

License

MIT