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

fireworks-overlay

v1.0.1

Published

Fireworks animation component

Downloads

176

Readme

Fireworks Overlay

Lightweight React + Three.js fireworks overlay for quiz wins, reward reveals, and confetti-style celebration moments.

Why This Exists

Most celebration effects are either too heavy, too intrusive, or too coupled to a full-screen landing page.

FireworkOverlay is built for the in-between case:

  • quiz result screens that need a satisfying "correct" moment
  • reward or coupon reveals that should feel premium
  • confetti-like success states without blocking the rest of the UI
  • live event overlays, promo pages, and festive product surfaces

One-Line Usage

import { FireworkOverlay } from 'fireworks-overlay'

Install

npm install fireworks-overlay react three

Quick Start

import { FireworkOverlay } from 'fireworks-overlay'

export default function App() {
  return (
    <div
      style={{
        position: 'relative',
        minHeight: '100vh',
        overflow: 'hidden',
        background: '#050816',
      }}
    >
      <FireworkOverlay />

      <main
        style={{
          position: 'relative',
          zIndex: 1,
          display: 'grid',
          placeItems: 'center',
          minHeight: '100vh',
          color: '#fff',
        }}
      >
        <h1>Quiz Complete</h1>
      </main>
    </div>
  )
}

Best Use Cases

Quiz / Correct Answer

Drop it over a result card or final score view to make wins feel immediate and rewarding.

Reward / Coupon / Badge Reveal

Use it when a user unlocks something valuable and you want a stronger "earned" moment than a basic toast.

Confetti Alternative

Choose this when you want something more directional and premium than flat confetti, while still keeping the overlay transparent and non-interactive.

Custom Example

<FireworkOverlay
  spawnIntervalMs={1400}
  burstCountRange={[1, 3]}
  sparkCountRange={[176, 264]}
  coreCountRange={[48, 68]}
  sparkSpread={1.95}
  colors={['#ff6b35', '#ffd166', '#ff4d6d', '#f7b267']}
/>

What You Can Tune

  • spawnIntervalMs: delay between launch clusters
  • burstCountRange: how many fireworks launch together
  • sparkCountRange: outer particle count range
  • coreCountRange: inner flash particle count range
  • sparkSpeedRange: outer particle expansion speed
  • coreSpeedRange: inner particle expansion speed
  • sparkSpread: how wide the outer burst spreads
  • coreSpread: how wide the inner flash spreads
  • colors: firework palette
  • className: wrapper class name
  • style: wrapper inline style
  • zIndex: overlay stacking order

Notes

  • The overlay is transparent and uses pointer-events: none, so your existing UI stays clickable.
  • The package entry already exports from src/index.js, so the package-style import shown above is the intended usage.
  • Place it inside a position: relative container if you want the effect scoped to a specific section.
  • Regenerate the README demo asset with powershell -ExecutionPolicy Bypass -File scripts/generate-demo-gif.ps1.

License

MIT