electron-main-preload-generator

Solid

Generate secure main process and preload script boilerplate with proper context isolation, IPC patterns, and security best practices for Electron applications

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# electron-main-preload-generator Generate secure Electron main process and preload scripts with proper context isolation, secure IPC patterns, and comprehensive security best practices. This skill creates production-ready boilerplate that follows Electron security guidelines. ## Capabilities - Generate secure main process (`main.js`/`main.ts`) with proper window configuration - Create preload scripts with context-isolated IPC bridge - Implement secure IPC patterns with channel whitelisting - Configure Content Security Policy (CSP) headers - Set up secure BrowserWindow options with sandbox enabled - Generate TypeScript type definitions for IPC channels - Implement permission handlers for sensitive APIs ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string", "description": "Path to the Electron project root" }, "language": { "enum": ["javascript", "typescript"], "default": "typescript" }, "features": { "type": "array", "items": { "enum": [ "contextIsolation", "sandbox", "csp", "ipcChannels", "permissionHandler", "protocolHandler", "deepLinking", "autoUpdater", "tray", "multiWindow" ] }, "default": ["contextIsolation", "sandbox", "csp", "ipcChannels"] }, "ipcChannels": { "type": "array", "items": { "type": "object", ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

electron-development

Master Electron desktop app development with secure IPC, contextIsolation, preload scripts, multi-process architecture, electron-builder packaging, code signing, and auto-update.

39,350 Updated today
sickn33
Web & Frontend Featured

electron-development

Master Electron desktop app development with secure IPC, contextIsolation, preload scripts, multi-process architecture, electron-builder packaging, code signing, and auto-update.

27,705 Updated today
davila7
AI & Automation Solid

electron-ipc-security-audit

Analyze Electron IPC implementations for security vulnerabilities including contextIsolation, nodeIntegration, preload scripts, and channel validation

1,160 Updated today
a5c-ai
AI & Automation Listed

electron-security

Security audit for Electron desktop applications including context isolation, nodeIntegration, sandbox config, preload scripts, IPC (ipcMain/ipcRenderer/contextBridge), webview tag risks, deep link handling, auto-updater security, and Electron CVE awareness. Use this skill whenever the user mentions Electron, electron-builder, contextBridge, nodeIntegration, preload.js, BrowserWindow webPreferences, ipcMain, ipcRenderer, electron-updater, or asks "audit my Electron app", "Electron security", "is my preload safe". Trigger when the codebase contains `electron` in package.json or `electron.js`/`main.ts` referenced as entry.

1 Updated 1 weeks ago
hlsitechio
Data & Documents Listed

electron-ipc-bridge

Production IPC engineering for the Electron main/renderer boundary. Invoke when adding, modifying, or reviewing any IPC channel, preload contract, or cross-process data flow. Holds the security and reliability standards of a Claude Code-class desktop engineering team.

1 Updated 2 months ago
euroconic