electron-react-starter
v0.1.6
Published
Create modern Electron apps with an interactive CLI
Maintainers
Readme
electron-react-starter
Create modern Electron apps with an interactive CLI - just like Create React App, but for Electron! 🚀
Quick Start
npx electron-react-starter my-electron-app
cd my-electron-app
npm run devInteractive Setup
The CLI will walk you through setting up your project with modern tooling:
✨ Welcome to electron-react-starter!
? What is your project named? my-electron-app
? Would you like to use TypeScript? Yes
? Would you like to use Tailwind CSS? Yes
? Would you like to use React Router? No
? Would you like to use ESLint? Yes
? Would you like to include Mac App Store configuration? Yes
? Would you like to include example components? Yes
? Which package manager would you like to use? npm
Creating my-electron-app...
✅ Created project structure
✅ Copied template files
✅ Installed dependencies
✅ Initialized git repository
Success! Created my-electron-app at /path/to/my-electron-appFeatures
- 🚀 Modern Stack: Electron + React + TypeScript
- 🎨 Styling: Tailwind CSS support
- 📱 Routing: React Router integration
- 📏 Code Quality: ESLint configuration
- 🍎 Mac App Store: Ready for distribution
- ⚡ Fast Setup: Get started in seconds
- 🔧 Flexible: Choose only what you need
Options
--skip-install- Skip installing dependencies--skip-git- Skip initializing git repository--verbose- Print additional logs--template <name>- Use a specific template
Generated Project Structure
my-electron-app/
├── src/
│ ├── main/ # Electron main process
│ ├── renderer/ # React application
│ └── shared/ # Shared utilities
├── build/ # Build assets
├── package.json
├── tsconfig.json # TypeScript config
├── tailwind.config.js # Tailwind config
└── README.mdDevelopment Scripts
npm run dev- Start development with hot reloadnpm run build- Build for productionnpm start- Start Electron appnpm run lint- Lint and fix codenpm run reset- Reset to clean project (removes examples)npm run dist:mas- Build for Mac App Store
Requirements
- Node.js 16.0.0 or higher
- npm 7.0.0 or higher
License
MIT

