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

ng-snowfall

v1.0.4

Published

Beautiful interactive snowfall component for Angular with mouse wind effect

Readme

ng-snowfall

Beautiful interactive snowfall component for Angular with mouse wind effect. Snowflakes react to mouse movement creating a realistic wind effect.

Features

  • ❄️ Beautiful animated snowfall
  • 🖱️ Interactive mouse wind effect - snowflakes react to cursor movement
  • 🏔️ Snow accumulation at the bottom with natural drifts
  • ⚡ Optimized performance with no memory leaks
  • 🎨 Fully configurable

Installation

npm install ng-snowfall

Usage

1. Import the module

import { SnowfallModule } from 'ng-snowfall';

@NgModule({
  imports: [
    SnowfallModule
  ]
})
export class AppModule { }

2. Add component to your template

<ng-snowfall></ng-snowfall>

3. Configure (optional)

<ng-snowfall [config]="snowfallConfig"></ng-snowfall>
snowfallConfig = {
  maxSnowflakes: 400,           // Maximum number of snowflakes (default: 400)
  accumulationRate: 0.6,        // Snow accumulation speed (default: 0.6)
  maxAccumulationHeight: 150,   // Maximum snow height in pixels (default: 150)
  mouseInfluenceRadius: 250,    // Mouse wind effect radius (default: 250)
  windForce: 20,                // Wind force strength (default: 20)
  windDecay: 0.85,              // Wind decay rate (default: 0.85)
  windInertia: 0.15,            // Wind inertia (default: 0.15)
  windFriction: 0.92            // Wind friction (default: 0.92)
};

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | maxSnowflakes | number | 400 | Maximum number of snowflakes on screen | | accumulationRate | number | 0.6 | Speed of snow accumulation at the bottom | | maxAccumulationHeight | number | 150 | Maximum height of accumulated snow in pixels | | mouseInfluenceRadius | number | 250 | Radius of mouse wind effect in pixels | | windForce | number | 20 | Strength of wind effect | | windDecay | number | 0.85 | How fast wind decays when mouse stops (0-1) | | windInertia | number | 0.15 | Wind inertia - delay in snowflake reaction (0-1) | | windFriction | number | 0.92 | Friction applied to snowflake wind velocity (0-1) |

Examples

Basic usage

<ng-snowfall></ng-snowfall>

Custom configuration

import { Component } from '@angular/core';
import { SnowfallConfig } from 'ng-snowfall';

@Component({
  selector: 'app-root',
  template: '<ng-snowfall [config]="config"></ng-snowfall>'
})
export class AppComponent {
  config: SnowfallConfig = {
    maxSnowflakes: 300,
    accumulationRate: 0.4,
    windForce: 15
  };
}

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Requirements

  • Angular 16+ or 17+ or 18+

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.