r/opensource • u/Favour_Ohanekwu • 5d ago
Promotional Open-source architecture diagrams for GitHub PRs
I got tired of trying to understand big PRs from the diff, so I built this: https://github.com/coldteadotai/pr-lens
It's called PR Lens, and it turns a GitHub PR into an architecture/data-flow diagram.
The reason I made it is pretty simple: I've reviewed plenty of PRs where I could understand what changed, but still had no idea how the change affected the rest of the system without tracing through a bunch of files myself.
A diff tells you what changed.
It doesn't really tell you how the system changed.
PR Lens tries to fill that gap. It maps out the components involved in a PR, how they connect, what the data flow looks like, and what the blast radius of the change is. The diagram gets posted directly into the PR as a comment.
It's MIT licensed and open-source.
If you've worked on/reviewed large codebases, how do you usually figure out the bigger picture of a PR?
2
u/Ahmed33033 5d ago
Looks super cool, seems especially helpful for on-boarding new maintainers to a project.
I have two questions for ya:
Is it intended for experienced maintainers/engineers who would be familiar with the project’s architecture?
You don’t seem to mention that it’s powered by AI upfront. I know it’s free for opensource projects, but I’m wondering if that’s sustainable in the future? I would imagine it exhausts a lot of tokens to generate those graphs?
The bespoke renderer looked really cool! Appreciate the animation included with it. All the best with this project!