⚡Vite + Svelte.js + Electron + Nestjs Template
April 12, 2026 · View on GitHub
⚡Vite + Svelte.js + Electron + Nestjs Template
This template is used to build vite + electron + nestjs projects. Build with Doubleshot, crazy fast!
🎉 Doubleshot is a whole new set of tools to help you quickly build and start a node backend or electron main process.
This is a Svelte.js version of the template, you can also use:
Introduce
This is a template based on my repo: fast-vite-electron. In the main process, I integrated nestjs. In the main process, you can build your code just as you would write a nestjs backend. Desktop clients built from this template can quickly split the electron when you need to switch to B/S.
Features
-
🔨 vite-plugin-doubleshot to run/build electron main process or node backend.
-
🛻 An electron ipc transport for nestjs that provides simple ipc communication.
-
🪟 An electron module for nestjs to launch electron windows.
-
⏩ Quick start and build, powered by tsdown and electron-builder integrated in @doubleshot/builder
How to use
-
Click the Use this template button (you must be logged in) or just clone this repo.
-
In the project folder:
# install dependencies pnpm install # run in developer mode pnpm dev # build pnpm build
Note for PNPM
This project requires pnpm as the package manager. In order to use with pnpm, you'll need to adjust your .npmrc to use any one the following approaches in order for your dependencies to be bundled correctly (ref: #6389):
node-linker=hoisted
public-hoist-pattern=*
shamefully-hoist=true
Relative
My blog post: