What problem does it solve?
This Skill provides a robust foundation for building secure, cross-platform desktop applications using Electron, Vite, React, and TypeScript, addressing common challenges like inter-process communication, authentication, and packaging.
Core Features & Use Cases
- Secure IPC: Implements type-safe communication between main and renderer processes using
contextBridge.
- OAuth Integration: Guides through setting up OAuth flows with custom protocol handlers for secure authentication.
- Native Module Support: Details how to manage native modules like
better-sqlite3 and electron-store, including build and sandbox considerations.
- Packaging: Covers configuration for
electron-builder for macOS, Windows, and Linux.
- Use Case: Developing a desktop application that requires secure user login via OAuth, local data storage, and needs to be packaged for distribution on multiple operating systems.
Quick Start
Follow the project structure and package.json updates outlined in the documentation to initialize a new Electron project.