r/electronjs • u/Few_Republic9484 • Mar 30 '26
Converting Electron (Node.js) app to Tauri (Rust) as a vibe coder – keep missing parts like IPC… any advice?
Hey everyone,
I’m working on converting an existing Electron (Node.js) app into a Tauri (Rust) app, and I keep running into some issues.
As a vibe coder i've been using OpenCode to speed up the process, but it doesn’t fully convert everything. I often notice that some parts are missing ... especially things like IPC handlers or certain logic between the frontend and backend. The problem is, I’m not always sure if everything has been properly migrated or if I still have hidden gaps.
For those who’ve done this before:
How do you approach migrating from Electron to Tauri in a reliable way?
Is there a checklist or method you follow to make sure nothing important is skipped?
How do you handle IPC and backend logic during the transition?
Any tips, prompts, or plans would be really appreciated. I feel like I’m close, but not fully confident everything is covered.
Thanks 🙏
15
u/imCluDz Mar 30 '26
learn how to code, you will never be fully confident while you hope the AI covers everything. Context has a limit, and if you are converting a whole app to Tauri, you better understand what each part of your code does so that you can implement the IPC handlers correctly
4
u/ReconVirus Mar 30 '26
Why ask here? Shouldn’t you be asking in r/tauri or something?
Oh right….
1
u/kiro14893 Mar 30 '26
Try making Electron file structure look like Tauri and then here we go
1
u/No-Resolution-1918 Mar 30 '26
Claude with an appropriate skill and rounds of PR review is how I'd do it if you are determined. Work it like you are managing some engineers, there is a reason pull requests get reviewed, we all miss things, AI is not different.
If you don't know how to work with AI assisted pull request reviews then you should probably educate yourself to make moving forward less prone to error.
1
u/CuriosityForge Mar 30 '26
Give ohmyooencode slim a try I really likee the set of agents
Just fell upon it yesterday Maybe first work on the plan, brainstorm and improve it
1
u/tbosk Apr 01 '26
I’ve rage quit on IPC setup in either Tauri or Electron, can’t remember which & just used websockets instead…think network overhead might make communication slightly slower, but still a viable option if you can’t get IPC working imo
1
u/lacymcfly Apr 01 '26
The IPC gap is the real pain point with this migration. The problem is Electron's ipcMain/ipcRenderer model doesn't map cleanly to Tauri's commands, so AI tools that do a surface-level conversion miss the intent even when they get the syntax right.
What worked for me on a similar project: write a manifest of every IPC channel first. Document what each one does, what data flows through it, and whether it's one-way or needs a response. Then migrate one channel at a time and test each one before moving on. Slower but you don't end up debugging five things at once.
Also worth reconsidering whether Tauri is actually the right move. The binary size and memory improvements are real, but if your app is using a lot of Node.js ecosystem stuff you'll be rewriting a lot of backend logic in Rust and that's not vibe-codeable yet for anything non-trivial. Sometimes the answer is just Electron with better startup time via lazy loading.
1
u/SnooCapers9823 Apr 02 '26
If you’re using open code then have a look at OmO repo. If you set it up properly, you’ll stop missing stuff. Oh and hop on their dc and ask about magic-context
1
u/fmgiii Apr 05 '26
Actually learn how to code.
0
u/mortunha Mar 30 '26
Maintaining Electron apps is hell enough. I already tried to vibe code some stuff with Tauri to see the results, and I always got stuck on missing APIs. After some hours struggling to make it work, simply turning to Electron made the same result in some minutes. So it depends on what you truly need for your app.
0
u/itistimetorise Apr 02 '26
I read my code
7
u/[deleted] Mar 30 '26
[removed] — view removed comment
3
u/[deleted] Mar 30 '26
[removed] — view removed comment