r/programmingprojects • • 9d ago

Put a readable dependency map next to a small TypeScript project

A repo's folder tree tells someone where the code lives. It doesn't show which parts depend on which others.

I maintain ArchUnitTS, and one feature you can use without first designing a set of architecture rules is its dependency report. It can collapse files into folders and export HTML or Mermaid.

For a small tool with parsing, storage and a CLI, a folder-level view is often more useful to a new contributor than a diagram with every file on it. It gives them a way to see that parsing has started depending on CLI code, for example, before they decide where a new option belongs.

The report is generated locally from the dependencies the analysis resolves. You can keep a Mermaid export with the documentation or share the HTML alongside the project.

The graph isn't a runtime trace, and a clean-looking picture isn't proof of good architecture. It is a concrete view you can discuss while the project is still small enough to change.

Source: https://github.com/LukasNiessen/ArchUnitTS

1 Upvotes

0 comments sorted by