One npm package
@number10/electron-ipc ships the generator CLI, TypeScript types, handler helpers, validation adapters, window tools, and inspector runtime.
Install the package, define your Electron IPC contracts once, and generate typed main, preload, and renderer code.
@number10/electron-ipc is for Electron developers who want IPC code that behaves like the rest of a strict TypeScript application. You define contracts as TypeScript types, run electron-ipc-generate, and use generated APIs instead of manually wiring ipcMain, ipcRenderer, and contextBridge channel strings.
The result is a small generated boundary between main, preload, and renderer code: typed method names, typed payloads, typed handler signatures, and compile-time errors when a contract changes.
The repository contains example apps, but they are only references. The product documented here is the publishable @number10/electron-ipc package.