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

react-ramadan-lights

v1.0.1

Published

A performance-optimized, canvas-based React component for floating Ramadan-themed particles (moons, stars, lanterns)

Readme

react-ramadan-lights

A beautiful, lightweight, and customizable React component that adds falling Ramadan-themed objects (lanterns, moons, stars) to your web applications. Similar to react-snowfall but specially designed for Ramadan!

Features

  • 🌙 Multiple Particle Types: Render moons, stars, and traditional lanterns (fanous).
  • High Performance: Uses HTML5 Canvas for smooth 60fps rendering without DOM bloat.
  • 🎨 Highly Customizable: Control size, speed, color, density, opacity, and glow.
  • 📱 Responsive: Automatically resizes and adapts to the container or window screen.
  • 💻 TypeScript Ready: Written entirely in TypeScript with full type definitions.
  • 🚫 Zero Dependencies: Built with pure React and Canvas. No external animation libraries.

Installation

npm install react-ramadan-lights
# or
yarn add react-ramadan-lights
# or
pnpm add react-ramadan-lights

Basic Usage

To use react-ramadan-lights, simply import the component and render it inside a relatively positioned container (or let it fill the whole screen by setting fillContainer={false}).

import React from 'react';
import { RamadanLights } from 'react-ramadan-lights';

const App = () => {
  return (
    <div style={{ position: 'relative', width: '100vw', height: '100vh', background: '#121212' }}>
      {/* 
        This will render falling moons, stars, and lanterns over the parent container.
      */}
      <RamadanLights />
      
      <div style={{ position: 'relative', zIndex: 10, color: '#fff', textAlign: 'center', paddingTop: '20vh' }}>
        <h1>Ramadan Kareem</h1>
      </div>
    </div>
  );
};

export default App;

Advanced Customization

You can control exactly how the particles look and behave using props.

<RamadanLights
  particleCount={60}
  speed={1.2}
  size={25}
  colors={["#FFD700", "#FFF5CC", "#E5A93C"]} // Gold and warm yellow tones
  types={["moon", "star", "lantern"]}
  opacity={0.8}
  glow={true}
  fillContainer={true}
/>

Props

| Prop | Type | Default | Description | |---|---|---|---| | particleCount | number | 50 | Number of particles to render | | speed | number | 1.0 | Speed multiplier for the falling animation | | size | number | 20 | Base maximum size of the particles (in pixels) | | colors | string[] | ['#FFD700', ...] | Array of hex/rgba colors applied randomly to particles | | types | ParticleType[] | ['moon', 'star', 'lantern'] | Allowed types of particles | | opacity | number | 0.8 | Base opacity of the particles (0 to 1) | | glow | boolean | true | Whether particles emit a glowing shadow effect | | fillContainer | boolean | true | If true, positions absolute to filling the parent. If false, positions fixed to the screen. |

License

MIT