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
$ pnpm install
# Start the development server with hot reload
$ pnpm dev
# For Windows
$ pnpm build:win
# For macOS
$ pnpm build:mac
# For Linux
$ pnpm build:linux
- UI Component Management:
pnpm ui-add
to add new Shadcn UI components - Type Checking:
pnpm typecheck
to run TypeScript type checking - Linting:
pnpm lint
to lint the codebase - Formatting:
pnpm format
to format code with Prettier
Contributions are welcome! Please feel free to submit a Pull Request.