Grenache is a micro-framework for connecting microservices using Distributed Hash Tables (DHT) for peer-to-peer connections. This package provides WebSocket transport for Node.js. Current stable version is 1.0.0, released with active maintenance. Key differentiators: built-in SSL support, DHT-based service discovery, and optimized performance for microservice communication. Requires Grenache Grape (DHT nodes) to operate. Designed for high-performance P2P RPC with minimal overhead.
npm install grenache-nodejs-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a Grenache RPC server that announces a service via DHT and replies with 'world'.
Start Grenache Grape nodes as described in the README before running your application.
Use a random port or ensure no port conflicts when calling service.listen()
Always call link.start() before peer.init()
Use `const Link = require('grenache-nodejs-link')` (default import)Use a dynamically generated port via `_.random(1000) + 1024` or ensure the port is available
Verify Grape is running on the specified host:port and reachable