Wire safe inter-process communication
electron-main-renderer-ipcskillsetup L2★0
Sheshiyer/skill-clusters ↗What it does
Wire safe IPC between main and renderer via contextBridge
Best for
Exposing main-process capability to the UI without punching through the security boundary
Inputs
- · Channel definitions
- · type signatures
- · validation rules
Outputs
- · Preload bridge code
- · main IPC handlers
Requires
- · Electron
Preconditions
- · contextIsolation: true, nodeIntegration: false, sandbox: true
Failure modes
- · Exposing raw ipcRenderer to page
- · Missing input validation in main
- · Using @electron/remote
Trust signals
- · Never leaks ipcRenderer/Node/process
- · Minimal typed surface
- · Validates every IPC argument in main