Repository

johnyrokita/electron-expose

electron-expose

Generate type-safe Electron IPC bridges from decorated TypeScript functions.

2stars

Open github.com

johnyrokita/electron-expose

electron-expose

Generate type-safe Electron IPC bridges from decorated TypeScript functions. Eliminates manual wiring of ipcMain/ipcRenderer pairs and renderer API types.

Visit project

Show me a random project

First shared
Jun 18, 2026
HN activity
30

Show HN@jskullJun 18, 2026

Show HN: electron-expose – Make Electron IPC boring with TypeScript decorators

I built electron-expose while working on an email client for myself and getting tired of writing the repetitive ipc bits, i tried a few libraries and nothing really clicked so i built my own. It generates the main/preload/types bridge from the functions you explicitly expose with TS decorators. The goal is to just make the repetitive bits easier without any additional schema validators etc, imo those can be done in the function themselves with the library that the user chooses (Zod for example).

Community

Hacker News discussion

Loading the thread…