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

npm-christmas-tree

v1.1.1

Published

A hyper-realistic, terminal-based Christmas tree experience for developers.

Downloads

353

Readme

🎄 npm install christmas-tree

License Version Deploy

A hyper-realistic, terminal-based Christmas experience for developers. Simulates a package installation that compiles into a 3D "Matrix Code" tree with physics-based snow and global usage stats.

🔗 Live Demo

🚀 Usage

Option 1: Run with npx (Instant Experience)

No installation required. Just run this command to open the experience in your browser:

npx npm-christmas-tree

Option 2: Use as a Library (Programmatic)

You can include the Christmas Tree experience in your own web projects.

npm install npm-christmas-tree

Basic Usage

import { ChristmasTreeApp } from 'npm-christmas-tree';
import 'npm-christmas-tree/dist/assets/index.css';

const app = new ChristmasTreeApp({
  treeCanvasId: 'my-canvas',
  snowOptions: {
    type: 'tree',        // 'circle' (default) or 'tree'
    color: '#ffffff',    // Snow color
    minSize: 1,          // Minimum flake size
    maxSize: 5,          // Maximum flake size
    count: 200           // Number of flakes
  }
});
app.start();

Full Example:

Check out the example/index.html for a complete implementation with a landing page and custom triggers.

✨ Features

  • Terminal Simulation - Realistic typing animation with logs fetched from npm registry
  • 3D Matrix Tree - Rotating tree rendered with binary code characters
  • Twinkling Lights - Colorful Christmas ornaments (red, gold, blue, pink, white)
  • Physics Snow - Lightweight particle engine for realistic snowfall
  • CRT Aesthetics - Scanlines, screen flicker, and chromatic aberration effects
  • Global Stats - Real-time visitor counter via Firebase Firestore
  • Viral Sharing - Native Web Share API integration
  • Mobile Responsive - Optimized for all screen sizes

📸 Preview

The app simulates npm install christmas-tree and reveals a beautiful animated Christmas tree!

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • Firebase project with Firestore enabled

Installation

# Clone the repository
git clone https://github.com/seochan99/npm-christmas-tree.git
cd npm-christmas-tree

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your Firebase config

# Run development server
npm run dev

Firebase Setup

  1. Create a project at Firebase Console
  2. Enable Firestore Database (start in test mode)
  3. Go to Project Settings > Your Apps > Add Web App
  4. Copy the config values to your .env file

Firestore Rules

For the global counter to work, update your Firestore rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

Deploy

# Build for production
npm run build

# Deploy to Firebase Hosting
firebase deploy --only hosting

🛠️ Tech Stack

  • Vite - Build tool
  • Vanilla JavaScript - No frameworks, pure JS
  • HTML5 Canvas - 3D rendering
  • Firebase - Firestore + Analytics + Hosting
  • CSS3 - Animations & effects

📁 Project Structure

├── index.html       # Entry point
├── main.js          # App orchestration
├── terminal.js      # Typing animation & npm simulation
├── tree.js          # 3D Matrix tree rendering
├── snow.js          # Particle snow system
├── firebase.js      # Firebase integration
├── style.css        # All styles & effects
└── firestore.rules  # Database security rules

🤝 Contributing

Contributions are welcome! Feel free to:

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

👤 Author

Seochan

📄 License

MIT License - feel free to use this for your own Christmas greeting!


Made with ❤️ and ☕ | Merry Christmas! 🎄