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

ghost-amt

v1.0.0

Published

๐Ÿ‘ป ghost-amt is a powerful and interactive CLI tool to detect and remove unused, bloated, or duplicate npm dependencies in your Node.js projects.

Readme

๐Ÿ‘ป ghost-amt

Find and clean up unused npm dependencies in your Node.js projects โ€” quickly and safely.

npm version Downloads License


๐Ÿš€ Features

  • ๐Ÿ”Ž Detects unused dependencies and devDependencies in your project
  • โš ๏ธ Warns about large packages (>1MB) that might bloat your app
  • ๐Ÿค– Interactive CLI with colorful output and emojis
  • ๐Ÿงน Prompt to uninstall unused packages with confirmation
  • ๐Ÿ•’ Fast, zero-config scanning powered by depcheck
  • ๐Ÿ’ป Works with JavaScript and TypeScript projects

๐Ÿ“ฆ Installation

Install globally to use anywhere:

npm install -g ghost-amt

Or run without installing:

npx ghost-amt

๐Ÿง™โ€โ™‚๏ธ Usage

Run ghost-amt inside your project root folder:

ghost-amt

Youโ€™ll see an output like this:

๐Ÿ‘ป Welcome to ghost-amt - Find and clean up unused npm dependencies

๐Ÿ” Scanning project for unused dependencies...
โœ… Project scan completed!

๐Ÿ“Š Scan Results Summary:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Type               โ”‚ Package Name                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Unused Dependency  โ”‚ lodash                        โ”‚
โ”‚ Unused DevDependency โ”‚ jest                        โ”‚
โ”‚ Large Package (>1MB) โ”‚ puppeteer                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿงฎ Total: 2 unused packages, 1 large package

? Do you want to remove all 2 unused packages? (y/N)

โš™๏ธ How It Works

  1. Static code analysis: Scans your codebase to detect which dependencies are actually imported or required.
  2. Package size detection: Checks installed package sizes to identify potentially heavy dependencies.
  3. Interactive removal: Prompts you to safely uninstall unused packages with your confirmation.

โ— Limitations

  • May miss dynamic imports or requires (e.g., require(variable)).
  • Does not modify your source code; only cleans package.json and node_modules.
  • Some build tools or scripts may cause false positives.

๐Ÿ“– Advanced Usage

Run in CI mode (non-interactive)

ghost-amt --ci

Generate report without uninstall prompt

ghost-amt --report-only

๐Ÿค Contributing

Contributions are very welcome!

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m "Add feature")
  4. Push to your branch (git push origin feature-name)
  5. Open a Pull Request

๐Ÿ“ License

MIT ยฉ Abdullah Al Mubin


๐Ÿ‘ค Author

Abdullah Al Mubin