faved icon indicating copy to clipboard operation
faved copied to clipboard

Desktop Version — Docker-free Windows .exe (Testing Request)

Open megharammm opened this issue 6 months ago • 5 comments

Hey @denho, I built a full Desktop wrapper for Faved that removes Docker entirely and runs as a native Windows .exe installer. Would you be open to testing it before I formally open a Pull Request? I can share the installer or the full source — whichever you prefer.

megharammm avatar May 21 '26 14:05 megharammm

Hey @megharammm, this sounds really interesting. Appreciate you taking the time to build it.

I’d definitely be open to taking a look before a PR. I’d prefer starting with the full source first so I can review how everything is packaged and how the app lifecycle is handled.

A few things I’d especially want to understand is how the backend is managed without Docker, where is the storage location and whether there is a possibility to pair the desktop app with an access from mobile or another device. Also, interesting to learn how the updates are handled.

Feel free to share the code when ready.

denho avatar May 25 '26 11:05 denho

@denho These were some major problems I personally faced and wanted to solve. Honestly the project did not turn out exactly how I had planned — I had bigger feature enhancements in mind but had to stop midway for various reasons.

Here is what I built on top of Faved so far:

  • Fully removed Docker dependency — app runs as a native Windows .exe with Express running as a child process inside Electron
  • All data stored locally in AppData as SQLite — no server, no container needed
  • First time onboarding flow with bulk browser bookmark import — supports Chrome, Firefox and Edge exported HTML files
  • Auto-tagging using offline NLP — suggests relevant tags based on page metadata automatically
  • Monthly self-update button that pulls latest changes directly from this repo
  • Clean installer via electron-builder — double click .exe and it works

One thing I really wanted to build was mobile connectivity, so all your links live in one place across devices. I researched it quite a bit but could not find a clean solution that fit the architecture, so I paused there.

I can share the full raw source with you — you can take it and modify it however you like going forward. Would be really grateful if you could take a look at the code and share your thoughts.

Let me know if you would prefer a fork or a zip file. Either way feel free to reach out at [email protected] and we can continue the conversation from there.

megharammm avatar Jun 02 '26 05:06 megharammm

Thanks for the detailed breakdown. The direction makes sense, especially removing the Docker dependency and keeping everything local. Would love to look at the source, but a few things would help me get oriented first:

  • Since the original app is PHP, did you rewrite the backend logic in Node/Express entirely, or is PHP still somewhere in the chain?
  • How are Electron and Express communicating (localhost HTTP, IPC)?
  • Is the update button doing a git pull under the hood, or downloading a pre-built artifact from releases?

A fork would be ideal so the history stays intact. Thank you

denho avatar Jun 03 '26 18:06 denho

@denho Hey, here you go:

PHP → Node: Full rewrite in Node/Express. No PHP in the chain. Data layer uses better-sqlite3 instead of MySQL.

Electron ↔ Express: Localhost HTTP on port 3131. Express runs as a child process, Electron loads http://localhost:3131/. Native features like the file picker use Electron IPC via contextBridge.

Update button: Currently does a git pull + npm install. Plan to move to electron-updater with GitHub Releases for proper builds.

Fork: https://github.com/megharammm/Faved_D

Thank You, Please let me know after reviewing it. Just wanna know if it was useful or not.

megharammm avatar Jun 09 '26 15:06 megharammm

Thanks for sharing, @megharammm. I looked through the code to understand the architecture and implementation, then built the app and launched it on a virtual Windows machine to test it out.

It worked really well. The only thing I couldn't get working was tag autocomplete — probably because I had to build the frontend from the original repo, since it's missing in your fork. Either way, great job porting the app to Windows desktop.

Regarding the PHP → Node migration: the move makes sense for an Electron desktop app, and it's great to see it's possible and so well executed. That said, I'm not ready to make this switch on the official branch right now. Keeping the app lightweight is a current priority, and PHP still holds resource usage to a minimum (~40MB inside Docker vs ~140MB for the Electron app). Definitely good to have this as an option for the future, though.

Either way, digging through your implementation was really useful. A native desktop build is something I might consider down the line, and your implementation is a great reference to learn from. Thanks again for putting in the work and sharing it here.

denho avatar Jun 11 '26 14:06 denho