Back to browse
GitHub Repository

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

1 starsTypeScript

electron-expose – Make Electron IPC boring with TypeScript decorators

by jskull·Jun 18, 2026·2 points·0 comments

AI Analysis

MidShip ItSolve My Problem

Decorators drive IPC code gen for Electron when tRPC feels too heavy.

Strengths
  • Decorator syntax keeps exposure definitions directly next to actual function implementation logic.
  • CLI automates main, preload, and type bridge generation without manual syncing steps.
  • Interactive init command handles config and tsconfig flags for quick project onboarding.
Weaknesses
  • Only six commits suggests early stage without proven long-term maintenance support yet.
  • Requires TypeScript experimental decorators flag, adding build configuration friction for some users.
Target Audience

Electron developers building TypeScript desktop apps

Similar To

tRPC · electron-rpc · open-rpc

Post Description

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

Similar Projects

Developer Tools●●Solid

Python UI-Me – Turn functions into web forms with one decorator

Drop @ui_enabled on a function and you get an instant Flask-backed web form with inputs inferred from type hints, a sidebar for global variables, and a searchable collapsible JSON result viewer. It's a deliberate tiny alternative to Streamlit/Gradio — no React or npm, just vanilla HTML/JS with grouping and theming; excellent for converting one-off scripts into a control panel, but expect limited auth, validation, and scaling features.

Niche GemShip It
tusharnaik
104mo ago