GitShow/sindresorhus/electron-better-ipc
sindresorhus

electron-better-ipc

Simplified IPC communication for Electron apps

by sindresorhus
electronelectron-moduleipcipc-messagenodejsnpm-package
Star on GitHubForknpm

JavaScript

743 stars52 forks14 contributorsQuiet · 4y agoSince 2018v2.0.1MIT

Meet the team

See all 14 on GitHub →
sindresorhus
sindresorhus28 contributions
ulken
ulken4 contributions
dusansimic
dusansimic2 contributions
karaggeorge
karaggeorge2 contributions
jackple
jackple2 contributions
BendingBender
BendingBender1 contribution
garrylachman
garrylachman1 contribution
javierron
javierron1 contribution

Languages

View on GitHub →
JavaScript80.8%
TypeScript18.3%
HTML0.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 6 discussions · Last activity 4y ago
See all on GitHub →
Laruxo
`sendToRenderers` acts differently than `callRenderer`OpenIssue

From documentation I expected that these two functions act the same. Only expected difference was sending to specific window and sending to . After digging deeper I found that does not use the same channel formatting as the other method, so it is impossible to handle incoming messages using . I have two possible solutions: 1. Exposing additional function in to handle unchanged channel. 2. Formatting channel in for every window. @sindresorhus which one would you prefer?

Laruxo · 2y ago
1c7
warning: WebContents #1 called ipcRenderer.sendSync() with 'electron-store-get-data' channel without listeners.OpenIssue

package.json command package.json !image

1c7 · 2y ago
Eli-Black-Work
No longer necessary? (superseded by official `handle()` method?)OpenIssue

Just an FYI that nowadays, has a built-in method to do what this package does: See https://www.electronjs.org/docs/latest/api/ipc-main#ipcmainhandlechannel-listener for details 🙂

Eli-Black-Work · 3y ago

Recent fixes

View closed PRs →
MasterGordon
BetterIpcRenderer on method only gets called onceClosedIssue

As the title says the on method of electron-better-ipcs ipcRenderer only gets called once and the original on get called every time a message is sent. This example only logs once with the better ipc one and twice with the vanilla version

MasterGordon · 11mo ago
stefnotch
Make installation command copy-ableMergedPR

I'm definitely not this clumsy, right? !image

stefnotch · 4y ago
johannesjo
Can't resolve 'fs'ClosedIssue

As soon as I use this in my webpack build (via angular cli) for the renderer I get the error above. Leads to:

johannesjo · 5y ago
Structured data for AI agents

Repository: sindresorhus/electron-better-ipc. Description: Simplified IPC communication for Electron apps Stars: 743, Forks: 52. Primary language: JavaScript. Languages: JavaScript (80.8%), TypeScript (18.3%), HTML (0.9%). License: MIT. Topics: electron, electron-module, ipc, ipc-message, nodejs, npm-package. Latest release: v2.0.1 (5y ago). Open PRs: 0, open issues: 6. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, ulken, dusansimic, karaggeorge, jackple, BendingBender, garrylachman, javierron, lukechilds, npezza93 and others.

·@ofershap

Replace github.com with gitshow.dev