There are quite a few scaffold choices for Electron.
Official options include:
If the application is not very complex, an official starter can be enough to get moving quickly.
There are also open-source scaffolds such as:
These can generate a working template quickly, then you fill in your own business logic.
My own view is:
electron-vue are convenient early on, but not always ideal for long-term enterprise-scale expansionIf you want to build your own project scaffold, that is also worthwhile. It helps you understand Electron's build process, learn through actual pitfalls, and gain deeper control over the architecture.
That is why my own scaffold choice is to build an Electron project structure from scratch with:
There are several ways to make HTTP requests in Electron.
axios or fetchnetPros
Cons
You can wrap all requests around net or another single tool, call it directly in the main process, and let the renderer go through bridge methods.
Pros
Cons
Axios supports both Node and browser environments, so the request layer can feel very natural to frontend developers.
Pros
Cons
webSecurity, which Electron does not recommend from a security perspectiveElectron security reference:
https://www.electronjs.org/docs/latest/tutorial/security
Each option has trade-offs, so the right choice depends on the project.
Electron also has many local data storage options:
Here is a useful comparison reference:
https://www.npmtrends.com/electron-store-vs-lokijs-vs-lowdb-vs-nedb-vs-realm
After comparing the options, I prefer lowdb. One practical reason is that it supports synchronous access, which helps avoid race conditions when later logic depends on local data being written already.
Logging is extremely important in Electron development. It helps uncover issues that are difficult to locate from surface UI behavior alone.
Two common choices are:
Trend comparison:
https://npmtrends.com/electron-log-vs-express-winston-vs-log4js-vs-logging
From direct usage experience:
log4js-node exposes a richer APIelectron-log is simpler, but its log file path can be less convenient to controllog4js-node gives you more flexibility over file destinations and log structureSo my recommendation is log4js-node.
For collecting system information from Node, I recommend:
Why:
Three common Electron packaging tools:
From both ecosystem usage and actual experience, electron-builder remains a strong choice. It integrates packaging, updating, signing, and distribution into one larger solution.
That is the packaging tool I chose in practice.
Technology selection matters a lot when starting an Electron project. The comparisons above are not absolute rules, but they help narrow down a practical stack.
Once the core stack is chosen, the next step is to build a project structure that fits your own needs and development habits.