Readme
π¦ stack-opt
Audit and optimize your JavaScript/TypeScript dependency stack β fast, local, and smart.
stack-opt is a blazing-fast CLI tool written in Rust that scans your package. json and flags:
π Large packages that bloat your bundle
π Stale packages that havenβt been updated in ages
β οΈ Deprecated dependencies that you should avoid
π€ Low-maintenance libraries with a single maintainer
Useful for keeping your stack lean, modern, and production-ready.
π Features
β‘ High-performance Rust-powered analysis
π¦ Analyzes both dependencies and devDependencies
π Pulls live data from the NPM registry
π§ Applies smart heuristics
π Colorful, easy-to-read output
π JSON output for automation/CI use
π Zero tracking, 100% local (no uploads)
π¦ Installation
Install via Cargo:
cargo install stack-opt
Or clone and build locally:
git clone https://github.com/tomc2154/stack-opt.git
cd stack-opt
cargo install -- path .
π Usage
stack-opt -- path ./your-project
π§ CLI Options:
Flag
Description
--path
Path to the project directory (default: . )
--no-dev
Skip devDependencies
--json
Output results in JSON format
--fail-on
Exit with code 1 on warnings or criticals
Example:
stack-opt -- no-dev
stack-opt -- json > audit.json
stack-opt -- fail-on crit
π Sample Output
π¦ Fetching metadata for moment [ dependencies] ...
- [ WARN ] moment: π Large size ( ~ 4248. 4 KB )
== == == == == == == == == == == == == =
π Final Summary:
- - - - - - - - - - - - - - - - - - - - - - - - - - -
π΄ Critical: 1
π Warnings: 9
π΅ Info: 4
β
Clean: 6
π¦ Total: 20
== == == == == == == == == == == == == =
π€ Contributing
Pull requests, issues, and suggestions are always welcome!
If youβve got ideas, open a discussion or issue .
π License
MIT License.
See LICENSE for details.