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

@bg-effects/growing-tree

v1.0.1

Published

Growing tree background effect with recursive fractal branches

Readme

@bg-effects/growing-tree

English | 简体中文

A beautiful Canvas 2D background effect featuring trees that grow from the bottom using recursive fractal branches. Trees progressively grow with smooth animations and sway gently in the wind after completion.

Live Demo


Features

  • 🌱 Progressive Growth - Trees grow from trunk to canopy with recursive branch generation
  • 🎨 Gradient Colors - Smooth color transition from trunk to tips
  • 🍃 Sway Animation - Gentle wind-like motion after growth completes
  • 🎭 Multiple Presets - Spring, Summer, Autumn, Winter, Sakura, Abstract themes
  • ⚙️ Highly Configurable - Control symmetry, branch angles, recursion depth, and more
  • 🌲 Multi-Tree Support - Display 1-5 trees with sync or sequence growth modes

Installation

pnpm add @bg-effects/growing-tree

Basic Usage

<script setup>
import { GrowingTree } from '@bg-effects/growing-tree'
</script>

<template>
  <GrowingTree class="w-full h-screen" />
</template>

Props

Basic Configuration

| Prop | Type | Default | Description | |------|------|---------|-------------| | treeCount | number | 1 | Number of trees (1-5) | | growthSpeed | number | 1.5 | Growth animation speed (0.5-3.0) | | trunkWidth | number | 8 | Trunk thickness in pixels (3-15) | | color1 | string | '#8B4513' | Trunk color (brown) | | color2 | string | '#90EE90' | Tip color (light green) |

Shape Configuration

| Prop | Type | Default | Description | |------|------|---------|-------------| | branchAngle | number | 30 | Branch angle in degrees (15-60) | | lengthDecay | number | 0.7 | Length reduction per level (0.5-0.9) | | maxDepth | number | 9 | Maximum recursion depth (5-12) | | symmetry | number | 0.7 | Symmetry level (0=random, 1=symmetric) | | branchProbability | number | 0.85 | Probability of branching (0.5-1.0) |

Animation Configuration

| Prop | Type | Default | Description | |------|------|---------|-------------| | swayStrength | number | 0.3 | Sway amplitude (0-1) | | swaySpeed | number | 1.0 | Sway speed multiplier (0.5-2) | | growthMode | 'sync' \| 'sequence' | 'sync' | Multi-tree growth mode |

Standard Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | '' | Additional CSS classes | | debug | boolean | false | Enable debug panel | | lang | 'zh-CN' \| 'en' | 'zh-CN' | Language for debug panel | | quality | number | 1.0 | Render quality (0.5-2.0) |

Presets

<template>
  <!-- Spring theme -->
  <GrowingTree
    color1="#6B4423"
    color2="#90EE90"
    :branch-angle="35"
    :length-decay="0.72"
    :max-depth="9"
  />

  <!-- Sakura theme -->
  <GrowingTree
    color1="#4A2511"
    color2="#FFB6C1"
    :tree-count="2"
    :max-depth="10"
  />

  <!-- Abstract theme -->
  <GrowingTree
    color1="#FF00FF"
    color2="#00FFFF"
    :symmetry="1.0"
    :branch-probability="1.0"
  />
</template>

Local Development

# Install dependencies
pnpm install

# Start development server
pnpm dev

License

MIT