DEV Community

Cover image for # πŸ”— nodeBond – Local IPC Bridge for Node.js (no TCP, no dependencies)
Pavel
Pavel

Posted on

# πŸ”— nodeBond – Local IPC Bridge for Node.js (no TCP, no dependencies)

Tired of using HTTP, WebSockets, or message queues just to make two local Node.js apps talk to each other?

Meet nodeBond β€” a lightweight, dependency-free IPC bridge that lets your Node.js apps exchange messages locally, fast and easily.


βœ… Why nodeBond?

  • Zero dependencies β€” built on Node.js net
  • Fully local: no ports, no servers
  • Bi-directional messaging with .dual()
  • CLI-ready: npx nodebond send appX '{"hello": "world"}'
  • Cross-platform (Windows named pipes, Unix domain sockets)
  • Debug mode via NODEBOND_DEBUG=1
  • MIT licensed & open-source

πŸ“† Install

npm install nodebond
Enter fullscreen mode Exit fullscreen mode

⚑ Quick Example

appA.js

const bond = require('nodebond').dual('appA', 'appB');
bond.sendTo('appB', { msg: 'Hi from A' });
Enter fullscreen mode Exit fullscreen mode

appB.js

const bond = require('nodebond').dual('appB', 'appA');
bond.on('data', msg => console.log('[appB]', msg));
Enter fullscreen mode Exit fullscreen mode

πŸ”— Try the CLI:

npx nodebond send appA '{"ping": "from CLI"}'
Enter fullscreen mode Exit fullscreen mode

Check it out on GitHub:
πŸ‘‰ github.com/Xzdes/nodeBond

Star it if you like it, or use it in your next CLI, automation tool, or desktop process bridge.

Top comments (1)

Collapse
 
xzdes profile image
Pavel

Hello! thank you for following the posts, this post is not relevant, I have significantly changed this npm package! but if you need the old version, it's still alive, but on npm version 2.1.0, and if the new version is not so easy, but I tried to make it as friendly as possible)