electronBuild Electron desktop apps with secure architecture and common pitfall avoidance.
Install via ClawdBot CLI:
clawdbot install ivangdavila/electronRequires:
nodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromisecontextIsolation: true is mandatory — separates preload context from renderereval() or new Function() in renderer — defeats all security boundariescontextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerablewebPreferences locked after window creation — can't enable nodeIntegration latershow: false then ready-to-show — prevents white flash, looks more nativeelectron-rebuild after every Electron upgrade — version mismatch = runtime crashapp.setAppUserModelId() — silent failure without itfile:// protocol — use custom protocol (app://) or local server--universal flag — ships both Intel and ARMwin.destroy() explicitly when donebackgroundThrottling: false if timers matter when minimized--inspect flag, connect via chrome://inspectwebContents.openDevTools() or keyboard shortcutelectron-log for persistent logs — console.log vanishes on restartGenerated Mar 1, 2026
Building secure internal tools for large organizations where data protection is critical. Electron allows creating cross-platform desktop applications that can integrate with existing enterprise systems while maintaining strict security protocols against XSS and IPC vulnerabilities.
Developing desktop applications for designers, video editors, or audio engineers who need native-like performance. Electron enables creating rich UI applications that can leverage web technologies while managing memory effectively and avoiding blocking operations that would freeze creative workflows.
Creating productivity tools that need to run consistently on Windows, macOS, and Linux. Electron's security architecture helps prevent common vulnerabilities while the packaging system allows for proper code signing and auto-update mechanisms across different operating systems.
Building interactive learning applications that run offline on student computers. Electron's file protocol handling and security boundaries ensure safe execution of educational content while the performance guidelines help maintain responsive interfaces during resource-intensive activities.
Developing desktop applications for financial analysts that display real-time market data. Electron's context isolation and IPC validation prevent security breaches while the window management and memory guidelines ensure stable performance during extended usage with multiple data views.
Offering a desktop application as part of a software-as-a-service subscription. The Electron app provides better performance and offline capabilities compared to web-only versions, with proper code signing enabling auto-updates that deliver new features seamlessly to paying customers.
Selling licensed desktop applications to businesses with volume pricing. Electron's cross-platform capabilities reduce development costs while the security architecture meets enterprise compliance requirements. Native module management ensures stability across different corporate IT environments.
Providing a free basic version with premium features unlocked through in-app purchases. Electron's packaging system allows creating trial versions while the performance optimization ensures good user experience that encourages upgrades. Platform-specific features enable proper notification systems for engagement.
💬 Integration Tip
Always use electron-rebuild for native modules and implement proper IPC validation before integrating with backend services to prevent security vulnerabilities.
Full Windows desktop control. Mouse, keyboard, screenshots - interact with any Windows application like a human.
Control Android devices via ADB with support for UI layout analysis (uiautomator) and visual feedback (screencap). Use when you need to interact with Android apps, perform UI automation, take screenshots, or run complex ADB command sequences.
Build, test, and ship iOS apps with Swift, Xcode, and App Store best practices.
Control macOS GUI apps visually — take screenshots, click, scroll, type. Use when the user asks to interact with any Mac desktop application's graphical interface.
Best practices and example-driven guidance for building SwiftUI views and components. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens, or needing component-specific patterns and examples.
Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs.