reactive-event-cli
raw JSON → 1.0.120 verified Sat May 09 auth: no javascript renamed
CLI tool for generating type-safe Electron IPC bindings. Current stable version 1.0.120 but migrated to reactive-event-cli. Automatically creates typed event handlers and payloads for Electron main/renderer communication, reducing boilerplate and runtime errors. Compared to electron-ipc or typed-ipc, this provides a codegen approach with React integration. Release cadence is irregular; last update was migration-related.
Common errors
error Cannot find module 'electron-reactive-event-cli' ↓
cause Package renamed. Tried to require old package name.
fix
npm uninstall electron-reactive-event-cli && npm install reactive-event-cli
error Unsupported operation: Not implemented ↓
cause Running CLI outside Electron context (e.g., pure Node.js).
fix
Run CLI from within an Electron project where main and renderer processes exist.
Warnings
breaking Package renamed to reactive-event-cli. electron-reactive-event-cli is deprecated and will not receive updates. ↓
fix Install reactive-event-cli instead: npm uninstall electron-reactive-event-cli && npm install reactive-event-cli
deprecated The CLI uses CommonJS internally; ESM imports may not work reliably. ↓
fix Use dynamic import or CJS require if using CommonJS project.
gotcha Codegen output overwrites files without confirmation by default. ↓
fix Use --dry-run flag to preview changes before applying.
gotcha Requires Node.js 14+ and Electron main/renderer processes running. ↓
fix Ensure proper Electron environment before running CLI.
Install
npm install electron-reactive-event-cli yarn add electron-reactive-event-cli pnpm add electron-reactive-event-cli Imports
- runCommand wrong
const { runCommand } = require('electron-reactive-event-cli')correctimport { runCommand } from 'reactive-event-cli' - generateBindings wrong
import { generateBindings } from 'electron-reactive-event-cli'correctimport { generateBindings } from 'reactive-event-cli' - default wrong
import cli from 'electron-reactive-event-cli'correctimport cli from 'reactive-event-cli'
Quickstart
import { runCommand } from 'reactive-event-cli';
const command = 'generate --watch';
runCommand(command).then(() => console.log('Done.'));