What problem does it solve?
Electron apps often struggle with insecure IPC, boilerplate wiring between main, renderer, and preload, and maintaining a safe, scalable architecture for cross-platform desktop apps.
Core Features & Use Cases
- Secure IPC communication between the main and renderer processes using a contextBridge-based exposed API (send/invoke on the renderer side).
- Type-safe IPC channels with a shared types.ts that defines request/response contracts for each channel.
- Clear project structure guidance (main/, preload/, renderer/, references/, assets/ as needed) to keep Electron apps maintainable.
- Use cases: building cross-platform desktop apps that exchange user data securely, perform file operations, and coordinate native features across platforms.
Quick Start
- Initialize your project with npm and install electron (and optionally electron-vite for a smoother DX).
- Create preload.ts to expose a secure API via contextBridge, and implement IPC handlers in the main process.
- In the renderer, access window.electron and use invoke/send to communicate with the main process.