The Problem
Setting up a modern desktop app is a nightmare. You don't just 'install Electron'. You have to manage the IPC layer, figure out how to share types between the frontend and the backend, and keep your build process from falling apart. After wasting 50+ hours on my last three setups, I decided to build a 'Golden Stack' using Nx Monorepo.
The Architecture
- Nx Monorepo: Why? Because it enforces strict boundaries. No more messy imports between your Angular UI and NestJS logic.
- NestJS inside Electron: Most people use simple scripts for the main process. We use NestJS to get Dependency Injection, easy-to-manage modules, and a professional backend structure right inside the desktop shell.
- The IPC Bridge: How we handle communication. Mention that you've automated the routing so the developer can focus on features, not plumbing.
- Database Multi-tenancy: Explain your approach with TypeORM/SQLite and how it's pre-configured for production.
"Show, don't just tell"

This is how a clean SOC (Separation of Concerns) looks in a real-world app.
The Solution
I spent weeks polishing this architecture to make it reusable. If you want to jump straight into coding your business logic instead of fighting with configurations, I’ve made the full boilerplate available.
It’s called White Fox. It includes everything I mentioned above, plus pre-configured CI/CD, native OS features, and lifetime updates.
Check out the White Fox Starter Kit here:
Would love to hear your thoughts on this architecture in the comments! Do you prefer NestJS for Electron or something more lightweight like tRPC?
Top comments (0)