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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@thrylolabs/dstat

v0.0.2

Published

Directory statistics and structure tool by Thrylo Labs

Readme

📊 dstat — Directory Statistics CLI

A fast, elegant CLI to analyze directory size, structure, and file statistics.
Built by Thrylo Labs.

npm license downloads


🚀 Overview

dstat is a CLI utility that helps you understand what’s taking up space in your project directories. It gives you:

  • 📁 Directory structure (Markdown-ready)
  • 📦 File size stats (total, by extension, by folder)
  • 🧠 Smart ignores (respects .gitignore, ignores node_modules, etc.)
  • ✨ Optional JSON output, export to Markdown, and clipboard copy

📦 Installation

Make sure thry is installed first.

npm install -g @thrylolabs/thry

Install dstat.

thry install dstat

🧑‍💻 Usage

thry dstat [directory] [options]

Options

| Flag | Description | | ---------------------- | ---------------------------------------------- | | -t, --tree | Show directory structure tree | | -d, --depth <n> | Max depth for tree output | | -e, --exclude <list> | Exclude folders (comma-separated) | | -x, --ext | Show stats by file extension | | -i, --include-hidden | Include dotfiles and hidden folders | | -g, --gitignore | Respect .gitignore (default: enabled) | | -j, --json | Output stats in JSON format | | -c, --copy | Copy final report to clipboard | | -o, --output <file> | Export the report to a file (e.g., stats.md) | | -h, --help | Show help message |


🌿 Examples

# Basic stats of current directory
thry dstat .

# Show tree structure with depth of 2
thry dstat . -t -d 2

# Exclude common folders and show extension stats
thry dstat . -e node_modules,.git -x

# Export report to Markdown file
thry dstat . -o report.md

# Copy summary to clipboard
thry dstat . -c

📂 Sample Output

📊 Directory Stats for ./my-project

📁 Total Size: 3.1 MB
📄 Total Files: 182

🔡 Extension Breakdown:
  .js     → 45 files, 700 KB
  .ts     → 80 files, 1.3 MB
  .json   → 12 files, 200 KB

🗂 Tree (Depth 2)
my-project/
├── src/
│   ├── index.ts
│   └── utils.ts
├── public/
│   └── index.html
└── README.md

🛠 Built With

  • TypeScript
  • commander for CLI parsing
  • fs-extra, globby, ignore, chalk
  • clipboardy for copy feature
  • pretty-bytes for human-readable sizes

🧠 About Thrylo Labs

Thrylo Labs builds fast, elegant, developer-first tools that push the boundaries of what's possible in modern computing.

Check out our work: https://github.com/ThryloLabs


📄 License

MIT © Thrylo Labs