axelson
DepViz - A visual tool to understand inter-file dependencies
Hi everyone ![]()
I’ve always wanted a tool to better visually understand inter-file dependencies in Elixir projects to help me reduce compilation dependencies (and hence, reduce recompilation times), but none existed so I wrote my own! As part of my Code BEAM BR talk I’d like to release the tool.
Try it online at: https://depviz.jasonaxelson.com/
Or view the code:
https://github.com/axelson/dep_viz
This is what it looks like when you view a project:
It can highlight dependencies of a given file:
It can also highlight the files that depend on the given file at compile time:
To better understand how to use the tool, watching parts of my Code BEAM BR will likely be helpful:
https://www.codebeambr.com/video/12
Who is it for?
Any elixir developer that wants to better understand (and hopefully reduce!) the inter-file dependencies of their project.
Acknowledgements
I’d like to thank my wife for helping me with the design, along with @rodrigues and members of the Elixir Hawaii community for providing valuable feedback during the initial design and development.
I hope this tool can prove helpful to people!
Most Liked
axelson
My Code BEAM BR talk about DepViz was posted semi-recently. In it I give an overview of DepViz and talk about what causes applications to have lots of compile-time dependencies:
https://www.codebeambr.com/video/12
FYI, the talk is in English ![]()
tomekowal
This looks fantastic!
Did you see the talk by Rafał Studnicki about similar topic? https://www.youtube.com/watch?v=LkGx33Suzsk He does a very similar thing but uses different visualization method.
The idea is that all files are on a big circle sorted by module name. This makes closely connected files appear together (because they share the same prefix MyApp.MyContext…).
This also means that places or files do not change that much when you add new ones.
I wonder if it would be possible to use your tool which has more functionalities but with visualisation method proposed by him?
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex












