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.

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.
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.
npm install electron-reactive-event-cli
yarn add electron-reactive-event-cli
pnpm add electron-reactive-event-cli

This shows how to import and run the CLI programmatically to generate code.

import { runCommand } from 'reactive-event-cli';

const command = 'generate --watch';
runCommand(command).then(() => console.log('Done.'));