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

oiia

v1.0.0

Published

A React component that renders animated cats with sound all over the screen

Readme

OiiaJS

A fun React component that renders animated cats with sound effects floating all over the screen. Perfect for adding some feline chaos to your React application as an easter egg or celebration effect!

OiiaJS Demo

Installation

npm install oiiajs
# or
yarn add oiiajs

Usage

Basic Usage

import React from 'react';
import { CatInvasion } from 'oiiajs';

function App() {
  return (
    <div className="App">
      <h1>My Awesome App</h1>
      {/* Add the cat invasion component */}
      <CatInvasion />
      
      {/* Your other content */}
    </div>
  );
}

export default App;

Customization

You can customize the cat invasion with various props:

import React, { useRef } from 'react';
import { CatInvasion } from 'oiiajs';

function App() {
  const catInvasionRef = useRef();
  
  const handleToggleCats = () => {
    // Access methods via ref
    catInvasionRef.current.toggle();
  };
  
  const handleAddMoreCats = () => {
    // Add 50 more cats
    catInvasionRef.current.addCats(50);
  };
  
  return (
    <div className="App">
      <h1>My Awesome App</h1>
      
      <button onClick={handleToggleCats}>Toggle Cats</button>
      <button onClick={handleAddMoreCats}>Add More Cats!</button>
      
      <CatInvasion 
        count={128} // Number of cats (default: 256)
        minSize={64} // Minimum cat size in pixels (default: 64)
        maxSize={300} // Maximum cat size in pixels (default: 600)
        autoStart={true} // Start automatically (default: true)
        playSound={true} // Play the "oiia" sound (default: true)
        enableBackgroundEffect={true} // Enable strobing gradient background (default: true)
        backgroundAnimationSpeed={10} // Speed of background animation (default: 10)
        defaultAnimationState="random" // Default animation state (default: "random")
        maxCats={512} // Maximum number of cats (default: 512)
        customImages={[
          // Optional: provide your own cat images
          'https://example.com/cat1.jpg',
          'https://example.com/cat2.jpg',
        ]}
        ref={catInvasionRef}
      />
    </div>
  );
}

export default App;

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | count | number | 256 | Initial number of cats to display | | minSize | number | 64 | Minimum size of cats in pixels | | maxSize | number | 600 | Maximum size of cats in pixels | | autoStart | boolean | true | Whether to start the invasion automatically | | customImages | string[] | [] | Array of custom image URLs to use instead of default cats | | playSound | boolean | true | Whether to play the "oiia" sound | | enableBackgroundEffect | boolean | true | Whether to enable the strobing gradient background effect | | backgroundAnimationSpeed | number | 10 | Speed of the background animation (1-20) | | defaultAnimationState | string | "random" | Default animation state for cats | | maxCats | number | 512 | Maximum number of cats allowed |

Animation States

The following animation states are available:

  • "floating" - Cats float around the screen
  • "stationary" - Cats stay in place
  • "spinning" - Cats spin around
  • "scaling" - Cats grow and shrink
  • "scaleFloat" - Cats float and scale
  • "pulse" - Cats pulse in and out
  • "bounce" - Cats bounce up and down while scaling
  • "wobble" - Cats wobble and rotate while scaling
  • "flip" - Cats flip around the Y-axis with 3D perspective
  • "random" - Randomly selects one of the above animations for each cat

Methods

The following methods are available via ref:

  • start() - Start the cat invasion
  • stop() - Stop the cat invasion
  • toggle() - Toggle the cat invasion on/off
  • addCats(count) - Add more cats to the invasion (default: 50)
  • isActive - Boolean indicating if the invasion is active

License

MIT