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 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
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

Related Skills