Electron Base Starter

•
245
•

Builds secure, modern desktop applications using Electron 33, Vite, React, and TypeScript with type-safe IPC and production-ready packaging.

This skill provides a comprehensive foundation for developing cross-platform desktop applications, ensuring best practices for security and performance from day one. It guides developers through setting up a modern dual-process architecture, implementing type-safe Inter-Process Communication (IPC) via contextBridge, and handling complex flows like OAuth with custom protocol handlers. By automating the configuration of native modules and electron-builder, it prevents common pitfalls like NODE_MODULE_VERSION mismatches and sandbox conflicts, making it an essential tool for developers transitioning web apps to the desktop.

主要功能

01OAuth integration with custom protocol handlers and CSRF state validation
02Pre-configured Electron 33, Vite, and React dual-entry architecture
03245 GitHub stars
04Type-safe IPC communication via contextBridge and TypeScript global declarations
05Native module compatibility management for better-sqlite3 and electron-store
06Production packaging and code signing setup with electron-builder

使用场景

01Developing desktop apps that require local database persistence with native modules like SQLite
02Implementing complex authentication flows using OAuth 2.0 within a desktop environment
03Building a secure, cross-platform desktop version of an existing React web application