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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-confetti-boom

v2.0.1

Published

A customizable React confetti explosion component for celebrations and special events

Readme

React Confetti Boom 🎉 - Celebrate With Style!

🚀 Bring Joy and Celebration to Your React App! Dive into a world of vibrant animations with React Confetti Boom, the ultimate confetti component for React developers.

NPM NPM Downloads License Size

| boom | fall | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |

🌈 Why React Confetti Boom?

React Confetti Boom offers a lightweight, flexible, and easy-to-use solution to add a touch of celebration to your application. Whether it's celebrating a user achievement, a special event, or adding fun interactions, our confetti animation component will bring your React application to life.

🎨 Key Features

  • Two Animation Modes: Choose between 'boom' for an explosive celebration or 'fall' for a gentle rain of joy.
  • Highly Customizable: Control every aspect of the confetti, from count to colors, to perfectly match your app's theme.
  • Performance Optimized: Designed for efficiency, it adds a magical touch without compromising your app's performance.

💻 Quick Start

npm install react-confetti-boom

🛠 How to Use

Just a few lines to create an unforgettable moment:

import Confetti from 'react-confetti-boom';

function MyApp() {
  return <Confetti />;
}

🌍 Live Demo

Experience the magic firsthand and customize the confetti to your liking: Live Demo

🔧 Props Guide

Fine-tune the celebration with our comprehensive props:

  • mode: 'boom' or 'fall' - the style of your celebration.
  • colors: Array of hex values to paint your confetti.
  • particleCount: How much confetti to burst into the scene.

| Name | Type | Default | Description | | ---------------------- | ---------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------- | | mode | 'boom' | 'fall' | 'boom' | Mode for confetti animation. 'boom' for explosion-like, 'fall' for rain-like effect | | x | number | 0.5 | Horizontal starting position of confetti as a ratio of canvas width (0 to 1) | | y | number | 0.5 | Vertical starting position of confetti as a ratio of canvas height (0 to 1) | | particleCount | number | 30 | Number of confetti particles to generate | | deg | number | 270 | Initial angle (in degrees) at which particles are emitted | | shapeSize | number | 12 | Size of confetti particles | | spreadDeg | number | 30 | Angle (in degrees) that particles can deviate from the initial angle (deg) | | effectInterval | number | 3000 | Interval (in ms) between consecutive confetti bursts | | effectCount | number | 1 | Number of confetti bursts to render | | colors | string[] | ['#ff577f', '#ff884b', '#ffd384', '#fff9b0'] | Array of colors for confetti particles, in hex format | | launchSpeed | number | 1 | Initial speed at which particles are launched | | fadeOutHeight | number | 0.8 | Height ratio (0 to 1) where particles completely disappear in 'fall' mode (added in v1.1.0) | | opacityDeltaMultiplier | number | 1 | Multiplier for particle opacity fade speed in 'boom' mode (added in v2.0.0) |

🎉 Example Usage

<Confetti mode="boom" particleCount={50} colors={['#ff577f', '#ff884b']} />

Celebrate achievements with a burst of color!

⭐ Support React Confetti Boom

Loving React Confetti Boom? Here's how you can help us make the project even better!

  • Give it a star: If you find React Confetti Boom useful, consider giving it a star on GitHub. Your star is more than just a kudos—it's a huge boost of motivation for us, and it helps more developers discover our project.
  • Spread the word: Share React Confetti Boom with your friends and colleagues. The more, the merrier!
  • Join the community: Feedback, ideas, or looking to contribute? Join us on GitHub and let's make React Confetti Boom even more awesome together.

Let's celebrate coding, one confetti burst at a time! 🎉

📜 License

Proudly open-sourced under the MIT License.