fast-vite-nestjs-electron
375
Stars
43
Forks
5
Watchers
3
Open Issues
MIT
许可证
Vue
语言
2021-07-20
创建时间
2026-11-12
最近更新
项目能做什么
结合 Vite、Vue、Electron、NestJS 并采用 Rolldown 构建的极速开发模板。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
<img width="400" src="./logo.png" alt="logo">
</p>
# ⚡Vite + Electron + Nestjs Template
This template is used to build [vite](https://vitejs.dev/) + [electron](https://www.electronjs.org/) + [nestjs](https://nestjs.com/) projects. Build with [Doubleshot](https://github.com/Doubleshotjs/doubleshot), crazy fast!
🎉 [Doubleshot](https://github.com/Doubleshotjs/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 vue version of the template, you can also use:
- [React template](https://github.com/ArcherGu/vite-react-nestjs-electron)
- [Svelte.js template](https://github.com/ArcherGu/vite-svelte-nestjs-electron)
## Introduce
This is a template based on my repo: [fast-vite-electron](https://github.com/ArcherGu/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](https://github.com/archergu/doubleshot/tree/main/packages/plugin-vite#readme) to run/build electron main process or node backend.
<br>
- 🛻 An electron ipc transport for [nestjs](https://nestjs.com/) that provides simple ipc communication.
<br>
- 🪟 An electron module for [nestjs](https://nestjs.com/) to launch electron windows.
<br>
- ⏩ Quick start and build, powered by [tsdown](https://tsdown.dev/) and [electron-builder](https://www.electron.build/) integrated in [@doubleshot/builder](https://github.com/Doubleshotjs/doubleshot/tree/main/packages/builder)
## How to use
- Click the [Use this template](https://github.com/ArcherGu/fast-vite-electron/generate) button (you must be logged in) or just clone this repo.
- In the project folder:
```bash
# 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 for your dependencies to be bundled correctly, you'll need to adjust your `.npmrc` to use any one the following approaches (ref: [#6389](https://github.com/electron-userland/electron-builder/issues/6289#issuecomment-1042620422)):
```
node-linker=hoisted
```
```
public-hoist-pattern=*
```
```
shamefully-hoist=true
```
## Relative
My blog post:
- [极速 DX Vite + Electron + esbuild](https://archergu.me/posts/vite-electron-esbuild)
- [用装饰器给 Electron 提供一个基础 API 框架](https://archergu.me/posts/electron-decorators)
阅读完整原文
项目深度分析 AI 生成
企业级 Electron 商业开发套件 (Pro Kit)
| 产品构想 | 基于该模板打造一套开箱即用的商用桌面端样板间,补充企业必需但耗时的系统能力(如自动更新通道、多租户鉴权、SQLite/TypeORM 本地加密存储、Sentry/日志追踪集成)。 |
| 核心功能 | NestJS 定制本地 SQLite/TypeORM 模块集成、安全凭据存储、自动更新(支持自建更新源与差分更新)、崩溃日志收集与上报、代码签名与多平台打包 CI/CD 模板。 |
| 目标用户 | 需要快速交付商用桌面软件的独立开发者、中小型软件外包团队。 |
| 难度/周期 | 中等 · 3-5周 · 成本:低(主要为个人开发时间及苹果/微软开发者证书费用) |
| 收费模式 | 一次性买断授权(Gumroad/面包多销售模板代码),提供增值更新订阅。 |
| 竞争风险 | 开源基础版功能已覆盖核心链路,商业版定价过高易失去吸引力;竞品(如 Electron-Vite 相关生态)较多。 |
| 依据 | AI推测 |
B/S 转 C/S 架构迁移与桌面端定制技术服务
| 产品构想 | 利用该模板具备的“主进程写 NestJS 可快速拆分/兼容 Web 后端”特性,为已有 NestJS Web 项目的团队提供桌面化迁移咨询与外包开发。 |
| 核心功能 | 代码资产复用评估、主进程 IPC 通道设计、硬件调用适配(打印机/串口/蓝牙)、单机数据库打包与数据同步服务。 |
| 目标用户 | 已有 NestJS/Vue 体系 B/S 系统但客户要求提供离线/本地化客户端的企事业单位与 ISV 厂商。 |
| 难度/周期 | 较高 · 按项目定制(2-8周/单) · 成本:主要为沟通与人力开发成本 |
| 收费模式 | 技术咨询费、项目定制开发服务费、长期技术维保合同。 |
| 竞争风险 | 服务交付难以标准化,客户获取依赖销售网络,规模化扩张困难。 |
| 依据 | 已验证事实 |
Electron 客户端代码加固与安全分发解决方案
| 产品构想 | 结合 tsdown 与 rolldown 构建流,提供针对 Electron 主进程 NestJS 代码与渲染层代码的高级混淆、V8 字节码打包(bytenode 类似能力集成)以及反逆向防护工具包。 |
| 核心功能 | 自动化 V8 字节码转换工具、NestJS 装饰器元数据保留与代码混淆兼容处理、防篡改校验模块、授权 License 离线激活机制。 |
| 目标用户 | 开发商用付费单机软件、内部敏感工具的研发企业。 |
| 难度/周期 | 高 · 6-8周 · 成本:低(主要为开发测试设备) |
| 收费模式 | 按软件席位授权收费或按月/年订阅 SDK 使用权。 |
| 竞争风险 | V8 字节码方案维护成本高(Node/Electron 版本升级易破坏兼容性);NestJS 的反射机制(Reflect.metadata)与深度混淆易产生冲突。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2021-07-20,近 30 天仍在推送 |
| 社区活跃 | Star 375 / Fork 43 / Issue 3(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。