A modern Electron application starter template built with React, TanStack Router, TanStack Query, and Tailwind CSS v4. This project provides a solid foundation for building cross-platform desktop applications with a modern web stack.
- Electron - Cross-platform desktop app framework
- Electron Forge - Complete tooling for Electron development
- Vite - Fast build tool and dev server
- React 19 - Latest React with modern features
- TanStack Router - Type-safe routing with file-based routing
- TanStack Query - Powerful data synchronization for React
- Tailwind CSS v4 - Utility-first CSS framework (no config required)
- shadcn/ui - Beautiful, accessible UI components
- TypeScript - Full type safety
- Node.js (v18 or higher)
- Bun (recommended)
-
Clone the repository
git clone https://github.com/mikekenway/electron-tanstack-starter.git cd electron-tanstack-starter -
Install dependencies
bun install
Start the application in development mode with hot reload:
bun devThis will:
- Start the Electron app
- Enable hot reload for both main and renderer processes
- Open the application window
Package the application:
bun packageCreate distributables:
bun makeThis creates platform-specific installers in the out/ directory:
- Windows:
.exeinstaller - macOS:
.dmgand.zipfiles - Linux:
.deband.rpmpackages
MIT License
Happy coding! 🎉