Skip to content

A visual tool to help developers understand Elixir recompilation in their projects

Notifications You must be signed in to change notification settings

nonrational/dep_viz

 
 

Repository files navigation

DepViz

DepViz is a visual tool to understand Elixir recompilation.

It is accessible online at: https://depviz.jasonaxelson.com/

The intent is to help developers rapidly understand what compilation dependencies they have in their project. Then they can take steps to minimize them to reduce the feedback loop between writing code and seeing results.

Helps you answer questions about the Elixir code base:

  • Why when I change file A does it cause 100 files to recompile?
    • Investigate: What files will cause this file to recompile?
    • Investigate: What files does this file cause to recompile?

To better understand how to use DepViz and why recompilation happens check out my Code BEAM BR talk: https://www.codebeambr.com/video/12

Screenshots

Screenshot of Credo Screenshot of Credo while hovering over a node

FAQ

  • Is this usable with other graphs?
    • A: Not really, for example the graph algorithms needs to revisit the starting node if the starting node is itself part of a transitive compile time dependency chain

Running locally

To start the server:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with npm install inside the assets directory
  • Start Phoenix endpoint with mix phx.server

Now visit localhost:4040 from your browser.

About

A visual tool to help developers understand Elixir recompilation in their projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.8%
  • Elixir 27.6%
  • HTML 5.9%
  • CSS 5.8%
  • SCSS 5.3%
  • Dockerfile 0.5%
  • Makefile 0.1%