© 2026 Gage Sorrell. Released under the MIT license.
Type-safe Electron IPC functions, including modern React hooks.
- Events as types ("event declarations")
- Effortless transition for
main(justimport { ipcMain } from "reactive-event") - Typed React hooks with simple setup (as little as one line in your
preload)- Also supports
<Suspense>and transitions!
- Also supports
- Register your types with almost no boilerplate, or write no boilerplate with
reactive-event-clior the VS Code extension
Simply add reactive-event as a normal dependency,
npm install reactive-eventRecommended. Consider installing the CLI utility, reactive-event-cli to write the boilerplate for you,
npx init reactive-eventThis will install the CLI, and launch the interactive setup wizard.
Note
See the CLI introduction article to learn more about using the CLI.
Tip
VS Code users can use the Reactive Event extension, which runs the CLI for you automatically when needed.
The documentation is available here. It features articles, guides, examples (including a sample project), and a thorough reference.
| Package | Version |
|---|---|
| NodeJS | >=24 |
npm |
>=11 |
To extend reactive-event, simply clone the repo and install dependencies,
git clone https://github.com/GageSorrell/ReactiveEvent
cd ReactiveEvent
npm installIt is recommended to use the included sample project for prototyping,
cd Sample # From the root of the project
npm install
npm run startand simply override the reactive-event dependency with your local copy.
- SorrellWm: The tiling window manager for everyone. (The original motivation of this package!)
This repository is a read-only mirror. Development takes place in the SorrellWm monorepo.