A modern Electron application starter template with React 19, TypeScript, and Vite for fast development and building.
- ⚛️ React 19 - Latest React with modern features
- 🔷 TypeScript - Type-safe development
- ⚡ Vite - Lightning-fast development server and build tool
- 🖥️ Electron - Cross-platform desktop application framework
- 📦 Electron Builder - Application packaging and distribution
- Node.js (version 16 or higher)
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/bit-programmer/electron-starter-pack.git cd electron-starter-pack -
Install dependencies
npm install
npm run dev:react- Start the React development server with Vitenpm run dev:electron- Start the Electron applicationnpm run build- Build the React application for productionnpm run transpile:electron- Transpile TypeScript files for Electron
electron-starter-pack/
├── src/
│ ├── electron/ # Electron main process files
│ │ └── tsconfig.json # TypeScript config for Electron
│ ├── ui/ # React Code
├── dist-electron/ # Compiled Electron files
├── dist-react/ # Built React application
├── package.json
└── README.md
Build and package for specific platforms with one command:
-
macOS (ARM64)
npm run dist:mac
-
Windows (x64)
npm run dist:win
-
Linux (x64)
npm run dist:linux
These distribution scripts automatically handle the complete build pipeline: TypeScript compilation, React build, and electron-builder packaging.
- The React development server runs on Vite, providing hot module replacement for fast development
- Electron main process files are located in
src/electron/ - Make sure to transpile Electron TypeScript files when making changes to the main process
- Frontend: React 19 + TypeScript
- Build Tool: Vite 6.2.0
- Desktop Framework: Electron 38.1.0
- Packaging: Electron Builder
- Fork the repository
- Create a feature branch
- Make your changes
- Commit your changes
- Push to the branch
- Create a Pull Request
If you encounter any issues or have questions, please create an issue in the repository.