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

meteor-shower-webcomponent

v1.1.3

Published

Beautiful meteor shower animation as a Web Component. Perfect for backgrounds in landing pages, portfolios, and interactive websites.

Downloads

8

Readme

🌟 Meteor Shower Web Component

Demo del proyecto

A beautiful, lightweight meteor shower animation as a Web Component. Perfect for creating stunning backgrounds in landing pages, portfolios, and interactive websites.

✨ Features

  • 🚀 Zero dependencies - Pure vanilla JavaScript
  • 📦 Lightweight - Less than 15KB minified
  • 🎨 Highly Customizable - Control meteors count, stars count, sizes, colors and black hole
  • 🌈 Custom colors - Personalize gradient background colors
  • 📏 Size control - Adjust stars, meteors and tail sizes independently
  • 🔧 Easy to use - Just one HTML tag
  • 📱 Responsive - Adapts to any container size
  • 🌐 Universal - Works in all modern browsers
  • 🎭 Isolated - Uses Shadow DOM, no style conflicts

🎮 Try it Live

🔗 Interactive Demo

View Live Demo - See all examples and interactive playground

⚡ Quick Try on StackBlitz

Open in StackBlitz

🚀 Installation

Via NPM

npm install meteor-shower-webcomponent
// In your JavaScript file
import 'meteor-shower-webcomponent';

Via CDN

<script src="https://unpkg.com/meteor-shower-webcomponent@latest/dist/meteor-shower.min.js"></script>

📖 Usage

Basic Usage

<meteor-shower></meteor-shower>

High Intensity with Black Hole

<meteor-shower 
  meteors="80" 
  stars="600"
  show_black_hole="true"
>
</meteor-shower>

With Custom Styling

<meteor-shower 
  meteors="15" 
  stars="300"
  style="height: 60vh; border-radius: 15px;">
</meteor-shower>

Fully Customized

<meteor-shower 
  meteors="50" 
  stars="400" 
  show_black_hole="true"
  style="
    --primary: #ff0066;
    --secondary: #0066ff;
    --size-star: 2px;
    --size-meteor: 8px;
    --size-tail-meteor: 150px;
  ">
</meteor-shower>

Using as Background

<div style="position: relative; height: 100vh;">
  <meteor-shower style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></meteor-shower>
  <div style="position: relative; z-index: 1;">
    <h1 style="font-size: 30px; color: blue;">Your content here</h1>
  </div>
</div>

⚙️ Attributes

| Attribute | Type | Default | Description | |-----------|------|---------|-------------| | meteors | Number | 10 | Number of meteors to display | | stars | Number | 300 | Number of background stars | | show_black_hole | Boolean | false | Enable black hole |

🎨 Customization

The component uses CSS custom properties that you can override:

meteor-shower {
  --primary: #2a0919;           /* Primary gradient color */
  --secondary: #030d1b;         /* Secondary gradient color */
  --size-star: 1px;             /* Size of background stars */
  --size-meteor: 5px;           /* Size of meteor heads */
  --size-tail-meteor: 100px;    /* Length of meteor tails */
}

🌐 Browser Support

  • Chrome 54+
  • Firefox 63+
  • Safari 10.1+
  • Edge 79+

📝 Examples

Landing Page Background

<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/meteor-shower-webcomponent@latest/dist/meteor-shower.min.js"></script>
  <style>
    body { margin: 0; font-family: Arial, sans-serif; }
    .hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; }
    .content { position: relative; z-index: 1; text-align: center; color: white; }
  </style>
</head>
<body>
  <div class="hero">
    <meteor-shower meteors="15" stars="400"></meteor-shower>
    <div class="content">
      <h1>Welcome to the Future</h1>
      <p>Experience the magic of meteor showers</p>
    </div>
  </div>
</body>
</html>

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - feel free to use this in your projects!

🐛 Issues

Found a bug? Please open an issue on GitHub.

🌟 Show Your Support

If you like this project, please give it a ⭐ on GitHub!


Made with ❤️ by Ronny García