๐ฅณ Really simple Electron + Vite + Vue boilerplate.
Last updated Jul 8, 2026
4.9k
Stars
637
Forks
4
Issues
+1
Stars/day
Attention Score
92
Language breakdown
No language data available.
โธ Files
click to expand
README
electron-vite-vue
๐ฅณ Really simple Electron + Vue + Vite boilerplate.
Features
๐ฆ Out of the box ๐ฏ Based on the official template-vue-ts, less invasive ๐ฑ Extensible, really simple directory structure ๐ช Support using Node.js API in Electron-Renderer ๐ฉ Support C/C++ native addons ๐ฅ It's easy to implement multiple windows
Quick Setup
# clone the project
git clone https://github.com/electron-vite/electron-vite-vue.git
enter the project directory
cd electron-vite-vue
install dependency
npm install
develop
npm run dev
Debug

Directory
+ โโโฌ electron
- โ โโโฌ main
- โ โ โโโ index.ts entry of Electron-Main
- โ โโโฌ preload
- โ โโโ index.ts entry of Preload-Scripts
โโโฌ src
โ โโโ main.ts entry of Electron-Renderer
โโโ index.html
โโโ package.json
โโโ vite.config.ts
Security Note
The renderer: {} preset in vite.config.ts is only a Vite adapter that polyfills Electron, Node.js APIs and native modules for the renderer process. It is not the same as enabling Node integration. If you want direct Node.js access in the renderer, enable nodeIntegration in the BrowserWindow webPreferences in the main process and review the security impact carefully.
FAQ
๐ More in this category