{"id":27716,"library":"electron-reactive-event-cli","title":"reactive-event-cli","description":"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.","status":"renamed","version":"1.0.120","language":"javascript","source_language":"en","source_url":"https://github.com/GageSorrell/SorrellWm","tags":["javascript","CLI","type-safe","IPC","electron","react","typescript"],"install":[{"cmd":"npm install electron-reactive-event-cli","lang":"bash","label":"npm"},{"cmd":"yarn add electron-reactive-event-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add electron-reactive-event-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Renamed package; use reactive-event-cli instead.","wrong":"const { runCommand } = require('electron-reactive-event-cli')","symbol":"runCommand","correct":"import { runCommand } from 'reactive-event-cli'"},{"note":"This function generates type-safe IPC bindings.","wrong":"import { generateBindings } from 'electron-reactive-event-cli'","symbol":"generateBindings","correct":"import { generateBindings } from 'reactive-event-cli'"},{"note":"Default export is the CLI entry point.","wrong":"import cli from 'electron-reactive-event-cli'","symbol":"default","correct":"import cli from 'reactive-event-cli'"}],"quickstart":{"code":"import { runCommand } from 'reactive-event-cli';\n\nconst command = 'generate --watch';\nrunCommand(command).then(() => console.log('Done.'));","lang":"typescript","description":"This shows how to import and run the CLI programmatically to generate code."},"warnings":[{"fix":"Install reactive-event-cli instead: npm uninstall electron-reactive-event-cli && npm install reactive-event-cli","message":"Package renamed to reactive-event-cli. electron-reactive-event-cli is deprecated and will not receive updates.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use dynamic import or CJS require if using CommonJS project.","message":"The CLI uses CommonJS internally; ESM imports may not work reliably.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use --dry-run flag to preview changes before applying.","message":"Codegen output overwrites files without confirmation by default.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure proper Electron environment before running CLI.","message":"Requires Node.js 14+ and Electron main/renderer processes running.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"npm uninstall electron-reactive-event-cli && npm install reactive-event-cli","cause":"Package renamed. Tried to require old package name.","error":"Cannot find module 'electron-reactive-event-cli'"},{"fix":"Run CLI from within an Electron project where main and renderer processes exist.","cause":"Running CLI outside Electron context (e.g., pure Node.js).","error":"Unsupported operation: Not implemented"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}