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 🙏

© 2024 – Pkg Stats / Ryan Hefner

decode-deps

v1.2.0

Published

Dependency Graph

Downloads

425

Readme

banner

DecodeDeps is a dev-tool that analyzes and visualizes module dependencies in js, jsx, ts, tsx projects. It identifies modules using import and require statements and generates a graph to illustrate these relationships. By providing a visualization of module dependencies, it offers insights for building a more structured codebase.

🚀 Last Update v.1.2.0 (November 13, 2024)

  • Add functionality to distinguish and display external and internal modules
  • Update UI for the side menu

🌟 Key Features

  • For js, jsx, ts and tsx files: Visualizes module dependencies by analyzing import and require statements, providing a graph view.
  • Multiple folders: Make it easy to analyze entire projects or specific subfolders.
  • Detect circular dependencies: Automatically identifies circular dependencies within your modules.
  • Various Node Color: Node colors vary based on module size, offering a quick visual indication.
  • Interactive Graph: Navigate and explore the dependency graph with zoom and pan features, as well as adjustable node sizes and link distances, providing a fully interactive visualization

👀 Preview

Prepare your project.

project

Enter the command.

command

Check the results on port 5001.

result

📥 Installation

npm install decode-deps

or

yarn add decode-deps

💡 How to use

Step 1. Install decode-deps.

Step 2. Run the command, npx decode-deps with input array. You can put folder names that you want to scan. For example, to analyze files within the ./src folder, use:

npx decode-deps '["./src"]'

To explore multiple folders, specify them as follows:

npx decode-deps '["./src", "./dist"]'

Step 3. After running the command, you can see the results at localhost:5001.

🔍 Who Should Use This Library?

  • Refactoring Teams. Easily identify optimization points during routine refactoring.
  • Large Codebase Managers. Efficiently handle complex module dependencies.
  • Junior Developers. Quickly understand the overall code structure.
  • Performance-Critical Project Teams. Optimize build performance with improved bundling.

💬 Contributing

If you'd like to contribute, feel free to submit a pull request or open an issue. Feedback to improve the project is always welcome!

📚 Docs

Find detailed documentation and updates in the Docs.

📝 License

This project is licensed under the MIT License.