DiffLens: Language Aware Diffs on GitHub Pull Requests
Hi HN! We were frustrated with text diffs on GitHub PRs, so we made DiffLens (https://github.com/marketplace/difflens) to produce language aware diffs on PRs. DiffLens constructs an Abstract Syntax Tree for each file, and uses that semantic information to intelligently diff changes. Checkout the demo on our website (https://www.difflensapp.com/difflensDemo2_849ca26f9ee09faa084cbdcdc90b6f90f8ce8495). If you review code, especially TypeScript, JavaScript or CSS, give DiffLens a try, it's free!
We're looking for feedback from developers. If you share our frustrations with reviewing code changes, we'd love to talk to you. Most developers already have a favourite diff tool installed locally but there exists very little for reviewing code changes online, so we worked on DiffLens slowly over a number of years. We use it to review our own code changes, and we love it. We'd really appreciate thoughts and insights about the idea and its execution from developers and will answer any questions that come up. Thanks for reading!
4 comments
[ 3.3 ms ] story [ 17.8 ms ] threadAbout the project: It was difficult to understand what it is doing looking at the 3 screenshots in the page. After a few hops I reached the demo https://www.difflensapp.com/difflensDemo2_849ca26f9ee09faa08... that is easier to understand.
It would be interesting to be able to append a github compare / pr / tree-ish link to see the diff via difflens, so maybe something like:
https://www.difflensapp.com/github.com/rails/rails/commit/7d...
would render that diff via diff lens. just an idea to get more people testing.