Skip to content

@number10/electron-ipcType-safe IPC APIs from TypeScript contracts

Install the package, define your Electron IPC contracts once, and generate typed main, preload, and renderer code.

What You Get

@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.

Start Here

  • Read Introduction to understand the package in two minutes.
  • Follow Quick Start to generate your first typed IPC call.
  • Use Installation for dependencies, CLI setup, and the scaffold command.
  • Open Overview when you want the full feature map.

The repository contains example apps, but they are only references. The product documented here is the publishable @number10/electron-ipc package.