
π Meet Your Ultimate Electron.js Starter Kit!
Welcome to the Electron React Template β the all-in-one, production-ready boilerplate that supercharges your desktop app development. Whether youβre building a simple tool or a complex cross-platform powerhouse, this template packs everything you need to hit the ground running.
π§° Whatβs Inside? Batteries Included!
- Modern Tech Stack: Electron, Vite, React, TypeScript, Mantine, and Sass β all preconfigured.
- React Routing: Out-of-the-box support for multi-page navigation.
- Python Integration: Effortlessly run Python scripts from your Electron app.
- IPC Magic: Robust main/renderer communication with Electron IPC.
- Hot Reload: Instant feedback with blazing-fast Vite HMR.
- Production-Ready: Electron Builder, ESLint, Prettier, and more.
- Clean Structure: Scalable, organized folders for real-world projects.
β‘ Why Choose This Template?
- Zero Setup Hassle: Clone, install, and start coding β no config headaches.
- Cross-Language Power: Integrate Python workflows for ML, automation, or data crunching.
- UI That Pops: Mantine + Sass = beautiful, accessible interfaces.
- Code Quality First: Linting, formatting, and TypeScript for bulletproof code.
- Easy Routing: Built-in React Router for seamless navigation.
ποΈ Project Structure at a Glance
. βββ src/ β βββ app/ # Electron main process & utilities β βββ py-utils/ # Python scripts for integration β βββ ui/ # React frontend (with routing & pages) βββ app-icon.ico βββ electron-builder.json βββ eslint.config.js βββ index.html βββ package.json βββ postcss.config.cjs βββ README.md βββ tsconfig.*.json βββ types.d.ts βββ vite.config.ts
src/app/
: Main process, preload scripts, IPC handlers, and utilities.src/py-utils/
: Python scripts ready to be called from Electron.src/ui/
: React app with pages, routing, and styles.
π¦ Quick Start Guide
- Clone the Repo
git clone <super-secret-repo-url> cd electron-react-template
- Install Dependencies
npm install
- Run in Development
npm run dev
- Build for Production
npm run build
- Lint & Format
npm run lint npm run format
π§βπ» Integrate Python (or Any Language!)
- Drop your Python scripts in
src/py-utils/
. - Use Nodeβs
child_process
or Electron IPC to call them from your app. - Example: Run ML models, automation scripts, or data processing β all from your desktop UI!
π‘ Instantly run Python scripts from your app β Python integration is ready out of the box!
π¬ Communication Made Easy
- IPC Channels: Send messages between main and renderer with prebuilt handlers.
- Preload Scripts: Securely expose APIs to your React frontend.
Start building. Ship faster. Wow your users.
You might also like

The Perfect Next.js Template - A Comprehensive Guide
Discover the ultimate Next.js template that combines best practices, performance optimizations, and developer-friendly features. This guide walks you through setting up a robust Next.js project with TypeScript, MantineUI, and more.

The Perfect Electron.js Template - A Comprehensive Guide
Explore the ultimate Electron.js template designed for building cross-platform desktop applications. This guide covers everything from setup to deployment, ensuring a smooth development experience.