0.1.0 • Public • Published


npm version Build Status Coverage Status Dependency Status

A peer-2-peer service discovery and communication framework built on top of nanomsg


Finding services is hard when you have to wire up everything by yourself, which is why I wrote this framework on top of nanomsg to make connecting services with each other easier. Rather than having to specify specific addresses when connecting to other services using nanomsg, we only use service names to hook them up. This works by using a discovery service on top of nanomsg that knows what services are available a the cluster. The discovery itself can be done through various means, such as broadcasts, lists of IPs or a discovery implementation written for AWS. Using the service is very simple while leaving you with access to most basic functions given by nanomsg.

What is nanomsg

Here's the description taken off of the official web page: nanomsg is a socket library that provides several common communication patterns. It aims to make the networking layer fast, scalable, and easy to use.


  • support for all socket types (Req, Rep, Sub, Pub, Push, Pull, Surveyor, Respondent, Pair, Bus)
  • Discovery using AWS, TCP broadcast, unicast or local file
  • Automatically connect/disconnect when services appear/disappear
  • Highly event driven, which allows you to react to service or node changes in addition to the available API
  • No need to use tcp addresses or ports for your services, the framework will assign them for you


A detailed documentation will come, until then check out the examples in the test directory.

Package Sidebar


npm i netz

Weekly Downloads






Last publish


  • mallocator