{"id":23377948,"url":"https://github.com/beyondjs/ipc","last_synced_at":"2026-02-08T10:31:27.191Z","repository":{"id":64126105,"uuid":"572995938","full_name":"beyondjs/ipc","owner":"beyondjs","description":"A robust interprocess communication (IPC) package for Node.js applications. It facilitates seamless communication between parent and child processes, offering features such as two-way messaging, event handling, and cross-process action execution. Ideal for Node.js applications that require efficient and reliable interprocess communication.","archived":false,"fork":false,"pushed_at":"2025-08-12T21:59:14.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-15T10:56:37.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyondjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-01T13:32:24.000Z","updated_at":"2025-07-31T15:46:19.000Z","dependencies_parsed_at":"2024-12-30T14:43:52.355Z","dependency_job_id":"e8d9cc92-907c-4e5a-904c-6bf753901985","html_url":"https://github.com/beyondjs/ipc","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"aaa70d75e6b0c2a4288693abdbb00c1a93941fd5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beyondjs/ipc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondjs","download_url":"https://codeload.github.com/beyondjs/ipc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fipc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29227729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T09:43:19.170Z","status":"ssl_error","status_checked_at":"2026-02-08T09:42:55.556Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T18:33:33.525Z","updated_at":"2026-02-08T10:31:27.175Z","avatar_url":"https://github.com/beyondjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @beyond-js/ipc\n\nA powerful Inter-Process Communication (IPC) library for Node.js applications, facilitating seamless communication\nbetween the main process and child processes.\n\n## Installation\n\n```bash\nnpm install @beyond-js/ipc\n```\n\n## Usage\n\n```javascript\nconst ipc = require('@beyond-js/ipc');\n\n// In the main process\nconst main = ipc;\n\nmain.handle('greet', name =\u003e `Hello, ${name}!`);\n\nmain.register('worker1', childProcess);\n\nmain.events.on('worker1', 'ready', () =\u003e {\n\tconsole.log('Worker 1 is ready');\n});\n\n// In a child process\nconst child = ipc;\n\nchild.exec('main', 'greet', 'John').then(response =\u003e {\n\tconsole.log(response); // Outputs: Hello, John!\n});\n\nchild.events.emit('ready');\n```\n\n## API\n\n### Main Process\n\n-   `handle(action: string, listener: Function)`: Register a handler for an action\n-   `removeHandler(action: string)`: Remove a handler for an action\n-   `register(name: string, fork: ChildProcess)`: Register a child process\n-   `unregister(name: string)`: Unregister a child process\n-   `exec(target: string, action: string, ...params: any[])`: Execute an action on a target process\n-   `events.on(source: string, event: string, listener: Function)`: Listen for events from child processes\n-   `events.emit(event: string, message: any)`: Emit an event to all child processes\n\n### Child Process\n\n-   `exec(target: string, action: string, ...params: any[])`: Execute an action on the main process or another child\n    process\n-   `events.on(source: string, event: string, listener: Function)`: Listen for events from the main process or other\n    child processes\n-   `events.emit(event: string, message: any)`: Emit an event to the main process\n\n## Features\n\n-   Bidirectional communication between main and child processes\n-   Event-based messaging system\n-   Action handling and execution across processes\n-   Error handling and propagation\n-   Automatic cleanup and resource management\n\n## License\n\nMIT © [[BeyondJS](https://beyondjs.com)]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondjs%2Fipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fipc/lists"}