A cross-platform desktop application built with Electron, React 19, and the TanStack ecosystem. This modern stack provides a robust foundation for building performant desktop applications with a beautiful UI.
 
- Cross-Platform: Works on Windows, macOS, and Linux
- Modern UI: Built with React 19, TailwindCSS v4, and Shadcn/UI components
- Type-Safe Routing: Leveraging TanStack Router for file-based routing
- State Management: TanStack Query for efficient data fetching and caching
- Theme Support: Dark/light mode with next-themes
- UI Components: Complete set of accessible UI primitives from Radix UI
- Form Handling: Integrated with React Hook Form and Zod validation
- Electron: Cross-platform desktop framework
- React 19: UI library with TypeScript
- TanStack Router: Type-safe routing with file-based route organization
- TanStack Query: Data fetching and state management
- Shadcn/UI + Radix: Component library with accessible primitives
- TailwindCSS v4: Utility-first styling
- Zod: Schema validation
electron-tanstack-app/
├── src/
│   ├── main/          # Electron main process
│   ├── preload/       # Preload scripts for IPC
│   └── renderer/      # React frontend application
│       └── src/
│           ├── components/  # UI components
│           │   └── ui/      # Shadcn/UI components
│           ├── routes/      # Application routes
│           ├── lib/         # Utilities and helpers
│           ├── hooks/       # Custom React hooks
│           └── assets/      # Application assets
├── resources/         # Application resources
└── ...
# Clone the repository
$ git clone https://github.com/yourusername/electron-tanstack-app.git
$ cd electron-tanstack-app
# Install dependencies
$ npm install# Start the development server with hot reload
$ npm run dev# For Windows
$ npm build:win
# For macOS
$ npm build:mac
# For Linux
$ npm build:linux- UI Component Management: pnpm ui-addto add new Shadcn UI components
- Type Checking: pnpm typecheckto run TypeScript type checking
- Linting: pnpm lintto lint the codebase
- Formatting: pnpm formatto format code with Prettier
Contributions are welcome! Please feel free to submit a Pull Request.