Looking for a gem to create a packwerk graph visualization in mermaid js with clickable navigation in github markdown

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Message originally sent by slack user U7213XMGS3H

I feel like there should be a gem that makes a packwerk graph visualization in mermaid js. There are 2 reasons this would be awesome

  1. Mermaid can be rendered in github markdown
  2. Mermaid supports links. I’m imagining a clickable navigation to my readme

Might be a nice addition to https://github.com/rubyatscale/visualize_packwerk :raised_hands: !

Message originally sent by slack user U70I61FD0VD

funny enough, my team built an internal tool that does exactly that. Unfortunately we kind of stalled in few ways:

  1. legal - we haven’t open sourced anything yet, so it was an uphill battle that didn’t take priority
  2. we use gitlab, and last I checked the mermaid linking doesn’t work there so much of the utility was lost.

Message originally sent by slack user U70I61FD0VD

our tool generates a readme (or if one exists, it replaces a magic comment) for each pack with the pack graph as well as ERDs. I’ll try to reignite the open source discussions in a bit

Message originally sent by slack user U7213XMGS3H

<@U70I61FD0VD> i’d install the shit out of that, please open source if you can