Visualizing project dependencies

78 views
Skip to first unread message

Justin Mimbs

unread,
Dec 22, 2016, 1:16:32 AM12/22/16
to Elm Discuss
I enjoy looking at dependency graphs, so I wrote a small library that makes diagrams of acyclic digraphs. To put it to use, I made something for exploring package and module dependencies of Elm projects.

To see it, you can play with this example, showing dependencies of knewter/time-tracker. Clicking a module name will highlight its own dependencies and the modules that depend on it (as well as the entire subgraph it's connected to).

There's more info in the repository, including a script you can use to generate a json file from your own project to visualize.

The underlying diagram library is unpublished, as I'm not yet happy with the API. If it's something that seems useful to you too, please let me know. Any feedback is welcome!

Justin

Wouter In t Velt

unread,
Dec 22, 2016, 5:49:46 AM12/22/16
to Elm Discuss
Op donderdag 22 december 2016 07:16:32 UTC+1 schreef Justin Mimbs:
To see it, you can play with this example, showing dependencies of knewter/time-tracker. Clicking a module name will highlight its own dependencies and the modules that depend on it (as well as the entire subgraph it's connected to). 

This is really cool! So it shows which module imports and is imported by which other modules!
Nice!

Hope you will keep the demo (with upload) around. This would be a very useful tool to review my own project/ module/ package structure.

Justin Mimbs

unread,
Dec 22, 2016, 12:14:47 PM12/22/16
to Elm Discuss
Thanks, Wouter! Glad to hear that. I don't plan to take it down (it's hosted on Github). I agree, it gives a good overview of a project's structure, regardless of its folder structure.

Justin
Reply all
Reply to author
Forward
0 new messages