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
β‘ Quick Example
appA.js
const bond = require('nodebond').dual('appA', 'appB');
bond.sendTo('appB', { msg: 'Hi from A' });
appB.js
const bond = require('nodebond').dual('appB', 'appA');
bond.on('data', msg => console.log('[appB]', msg));
π Try the CLI:
npx nodebond send appA '{"ping": "from CLI"}'
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)
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)