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

@rednebula100/grove

v1.0.2

Published

A beautiful, modern alternative to the tree command

Readme

grove 🌲

A beautiful, modern alternative to the tree command

npm version License: MIT Node.js

grove/
├── 📁 bin
│   └── 🟨 grove.js 4.3K
├── 📁 src
│   ├── 🟨 git.js   777B
│   ├── 🟨 heatmap.js 1.6K
│   ├── 🟨 icons.js 3.3K
│   ├── 🟨 render.js 3.2K
│   └── 🟨 tree.js  3.8K
├── 📝 CLAUDE.md    2.3K
├── 📋 package-lock.json 8.3K
└── 📋 package.json 314B

── Stats ──────────────────────────
  Files:       9
  Directories: 2
  Total size:  27.8K

  Largest files:
       8.3K  package-lock.json
       4.3K  grove.js
       3.8K  tree.js
────────────────────────────────────

Features

  • 🎨 File-type color icons — 20+ extensions each with their own color and emoji (or Nerd Font icon)
  • 🙈 Auto .gitignore support — ignored paths are filtered automatically in any git repo
  • 📦 node_modules / .git excluded by default — no more noise; opt-in with --node-modules
  • 🔥 File size heatmap (--size) — instantly spot the heaviest files across 5 color tiers
  • 🧠 Git commit heatmap (--heat) — see which files change most often, powered by git log
  • 📊 Stats summary (--stats) — total file count, directory count, size, top-3 largest and most-changed files
  • 🗂️ JSON output (--json) — pipe structured tree data into other tools or scripts
  • Zero config — works out of the box with npx, no setup required

Install & Usage

Run instantly with npx (no install needed)

npx @rednebula100/grove
npx @rednebula100/grove src --size --stats

Install globally

npm install -g @rednebula100/grove
grove
grove --help

Basic examples

# Current directory
grove

# Specific path, limited depth
grove src -d 3

# Show file sizes with heatmap
grove --size

# Show git commit frequency heatmap + stats
grove --heat --stats

# Combine everything
grove --size --heat --stats

# Only directories
grove -D

# Include hidden files
grove -a

# Exclude build artifacts
grove --ignore "dist" --ignore "*.log"

# Output as JSON
grove --json | jq '.[] | .name'

All Options

| Flag | Alias | Description | |------|-------|-------------| | --depth <n> | -d | Limit traversal depth | | --all | -a | Show hidden files and directories (dotfiles) | | --dirs-only | -D | Show directories only | | --size | -s | Show file sizes with 5-tier color heatmap | | --heat | -H | Show git commit frequency with color heatmap | | --json | -j | Output the tree as JSON | | --stats | | Print a summary block at the end | | --ignore <glob> | | Exclude paths matching a glob (repeatable) | | --node-modules | | Include node_modules and .git (excluded by default) | | --help | -h | Show help |

Heatmap color tiers

Both --size and --heat use the same 5-tier relative scale — percentile rank across all files in the tree:

| Tier | Range | Color | |------|-------|-------| | 1 | 0–20% | default | | 2 | 20–40% | dim green | | 3 | 40–60% | yellow | | 4 | 60–80% | red | | 5 | 80–100% | bg red |


grove vs tree

| Feature | tree | grove | |---------|--------|---------| | Basic directory tree | ✅ | ✅ | | Depth limit | ✅ | ✅ | | Directories only | ✅ | ✅ | | Show hidden files | ✅ | ✅ | | .gitignore auto-filtering | ❌ | ✅ | | node_modules excluded by default | ❌ | ✅ | | File-type color icons | ❌ | ✅ | | File size display | ❌ | ✅ | | File size heatmap | ❌ | ✅ | | Git commit frequency heatmap | ❌ | ✅ | | Stats summary (top files) | ❌ | ✅ | | JSON output | ❌ | ✅ | | npx zero-install | ❌ | ✅ |


License

MIT