Electron

•
3
•

Provides development intelligence for AI assistants to accurately generate, audit, and troubleshoot Electron.js applications.

Electron is a development-intelligence layer designed to empower AI assistants to write correct and secure Electron.js code on the first try. It addresses common challenges AI models face with Electron, such as context isolation, preload bridges, Content Security Policy (CSP), and official security recommendations. The tool offers 18 distinct functionalities spanning IPC scaffolding, security auditing, version migration, build error diagnostics, and production hardening, ensuring that AI-generated Electron code adheres to best practices and avoids common pitfalls without needing runtime dependencies.

主要功能

011 GitHub stars
02Generates secure IPC scaffolding including main handlers, typed preload bridges, and contextBridge exposure.
03Diagnoses Electron build errors, pinpointing root causes related to code signing, native modules, and packaging.
04Audits Electron configurations and code against 19 of the 20 official security recommendations.
05Provides version-aware migration assistance, identifying breaking changes and deprecated APIs between major Electron versions.
06Generates production hardening configurations, including `@electron/fuses` and bundler-aware Content Security Policies.

使用案例

01Securely add new IPC channels for features like file pickers to an Electron application.
02Perform a comprehensive security audit of existing Electron main and preload scripts.
03Diagnose and troubleshoot complex Electron build and code signing errors.