A fast, elegant CLI to analyze directory size, structure, and file statistics.
Built by Thrylo Labs.
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, ignoresnode_modules, etc.) - ✨ Optional JSON output, export to Markdown, and clipboard copy
Make sure thry is installed first.
npm install -g @thrylolabs/thryInstall dstat.
thry install dstatthry dstat [directory] [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 |
# 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📊 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- TypeScript
commanderfor CLI parsingfs-extra,globby,ignore,chalkclipboardyfor copy featurepretty-bytesfor human-readable sizes
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
MIT © Thrylo Labs