Dependency visualization tool

Google recently introduced a new dependency visualization tool - Insights. Currently they support NPM (JS), Go, Maven (Java), Cargo (Rust).


https://deps.dev/

Maybe it would be beneficial for OCaml community/ecosystem join the efforts. Also the OCaml-on-JS part of our community as well.

4 Likes

In the past, I’ve found doing this sort of dependency-graphing to be very useful for figuring out where modularization in a large system needs to be applied. And it’s not very hard to do, based on ocamldep output or other dependency information that already exists.

On a lark, I wrote something that did this for installed findlib packages:

I mention this not to plug the tool, but rather, just to note that it’s really easy, and yeah, people should avail themselves of this more.

1 Like

I like how npmgraph.js.org also lets you select the coloring based on various scorings of each library.

1 Like

My goto command for this is feh =(ocamldep * | ocamldot | dot -Tpng -Gdpi=300) - it’s very useful for both exploring new codebases and doing larger refactoring work.