r/reactjs • • Oct 06 '26

Show /r/reactjs I built a tool that renders every React component a PR touches, so you can visually see the UI for your code diffs.

Just wanted to share this cool tool I'm still building.

With AI writing more and more of our code, you can't really see what's changing just by reading code diffs on GitHub. So I built an AI tool that takes your PR or commit, detects which UI components changed, and renders each one with a before and after, so you can easily see what was done.

Let me know what you guys think, I'm open to suggestions, would be awesome.

https://github.com/Andrew2142/PRVision

0 Upvotes

10 comments sorted by

5

u/stellar-- Oct 06 '26

is this only compatible with an anthropic account??

-2

u/Few-Hunt-2424 Oct 06 '26

For now its only anthropic apis, I will add more soon.

0

u/stellar-- Oct 06 '26

Love this, can’t wait to try out

0

u/[deleted] Oct 06 '26

[deleted] — view deleted comment

-1

u/Few-Hunt-2424 Oct 06 '26

For now its just static states, eventually I want to have intractable states, so you can do testing within the app.

6

u/code_beer_repeat Oct 06 '26

And at that point you would build......,,storybook

1

u/vanit Oct 06 '26

Well bro built a poor man's Chromatic already 🤷‍♂️

1

u/Few-Hunt-2424 Oct 07 '26

The main thing is you don't need to write any stories with this. From what I understand, with Chromatic you have to add stories to every component you want to see changes for. This app auto detects every change across all the components and then builds out the screenshots.

But anyway, I'll have to try Chromatic to see if it's better, because then my app could be null and void.

1

u/vanit Oct 07 '26

I couldn't tell from your app, but the big selling point of Chromatic is to detect incidental changes, even through inherited CSS, so you can't just look at the diff or imports.