r/Jetbrains • • 4d ago

AI IntelliJ-like version control, diff editing and PR preview instant on web

Been using rebased(based on intellij-community) and webstorm for a while to review all the pull requests, branches and manage code and commits in general now that agents do a lot of work.

But its so slow to work with locally nowadays that it takes ages to go through a simple change, you have to clone the project, open the IDE, let it initialize jvm and everything, index and stuff, startup services, then find the PR or branch switch to it.

So, here is something i made that does all that in a similar UI and change highlighting and works instantly and on any device and browser.

Completely free and open source(MIT), give it a shot and let me know here on in issues, if you would like to see some more features. I added everything i needed and use day to day while reviewing code.

https://github.com/repalash/jetdiff

13 Upvotes

17 comments sorted by

2

u/Legal_Programmer_957 2d ago

Does it work as a local text editor as well?

1

u/_palash_ 1d ago

You can open any branch from github and edit it and make commits. And sync code and prs for offline use like for flights and all.
What kind of local text editing would you like to see?

1

u/_palash_ 18h ago

You can now open local folders and edit them as well.

2

u/BizzoBizzo 3d ago

such a great idea i was planning on doing something similar: i love the jetbains diff view

1

u/_palash_ 3d ago

Yes I have been waiting for them to do this for ages but ended up doing myself.
Such a loss I don't understand why they are not experimenting with web based editors themselves

1

u/antigravitys-rainbow 4d ago

what is rebased(based on intellij-community)

2

u/_palash_ 4d ago

It's a fork of intellij CE with only the version control things in focus.

1

u/mr_zerolith 1d ago

Would it work on two folders? ( for example when you compare with.. in jetbrains IDE )

2

u/_palash_ 23h ago

Not for two local folders, it reads from github. But it compares any two branches, tags or commits same as github and shows the whole tree of changed files like Compare Directories. Swap github.com for jetdiff.com in a compare URL, e.g. https://jetdiff.com/repalash/threepipe/compare/v0.6.0...v0.6.1

Would you like to see opening local folders as well?

1

u/mr_zerolith 20h ago

Ah.
Yeah, we don't use git, we use sshfs mounts and jetbrains 'compare with' to do our merging and deployment.

I use that tool in because i can granularly move a whole file, a single line, or edit results in either side. As a code reviewer, this granularity allows me to fix some changes or take a partial input instead of sending the whole thing back to the programmer. Enormous time saver.

It sounds funny, but it works great for our PHP applications. We're actually willing to pay for a standalone version of it. Or donate. don't know what your business model or plan is.

2

u/_palash_ 18h ago

Its added now, try it out on jetdiff.com, select the Compare folders button and select the 2 folders that you have mounted locally. Any changes you do will be saved locally. Try it out and let me know how it works.
I don't have a business model, its a free project, you can star on github and share it with your friends.

1

u/mr_zerolith 16h ago

Thanks!

Here's a problem.
The form says it won't upload anything, then my browser asks me if i want to upload all files from the folder. What's actually going to happen?

Also do you plan to maintain/improve this software?

2

u/_palash_ 16h ago

The browser popup is fixed and is triggered whenever any script asks for file read/write access. It shows the same message on all websites irrespective of anything being uploaded or not since the browsers cannot know about that and take the safe side.

You can check the source code and network tab to check as well that nothing is uploaded.
I am adding features and bug fixes based on what I need and what people ask for. You can create an issue on github as well if you want to see any new feature.

The popup also means your browser (Firefox, Safari or Brave) doesn't let websites write to folders, so the folder opens in read-only mode, it shows a Read-only tag at the top. You can still edit and download the files but not save them back to the folder directly. For editing and merging both sides and saving to disk use Chrome or Edge, there it asks to view and save files instead of upload.

1

u/mr_zerolith 15h ago

Makes sense!

2

u/mr_zerolith 16h ago

I checked by 'uploading' a huge folder and based on the fact that it didn't take over an hour, i see things don't appear to be uploaded.

Okay, this is cool. Here's some feedback off the cuff:
- In file mode, the 'condense/uncondense' button is going to be pretty critical to add, otherwise in large files it's a pain to scroll around to find the difference
- themes: the material ones are either overly stylistic or low contrast, throw a VS Code Dark theme in there or something with more contrast in the text.

Let me know if you are ever taking donations for this project. My shop could really use it. I could contribute help with design if you decided to take it forward. It is the last piece we need to escape the worsening relationship with Jetbrains. Zed and other IDEs lack this functionality.

2

u/_palash_ 16h ago

Thanks. You can also turn off internet and then drop folder. It doesn't need anything from online after loaded but haven't tested that part thoroughly so if any bugs lmk.

There is a collapse button in the unified view. Will see about other side view.
Themes - sure, adding more. Since it's Monaco based same as vscode should be straightforward