macOS
brew install nanomsglocal Homebrew formula metadata
brew
Socket library in C. Version 1.2.2 via Homebrew; verified from local package data.
install
brew install nanomsglocal Homebrew formula metadata
sudo apk add nanomsgAlpine Linux edge package indexes · nanomsg · source: dl-cdn.alpinelinux.org
sudo apt install libnanomsg-devDebian stable package indexes · libnanomsg-dev · source: deb.debian.org
sudo dnf install nanomsgFedora Rawhide package metadata · nanomsg · source: dl.fedoraproject.org
nix profile install nixpkgs#nanomsgnixpkgs package indexes · pkgs/by-name/na/nanomsg/package.nix · source: api.github.com
sudo pacman -S nanomsgArch Linux sync databases · nanomsg · source: geo.mirror.pkgbuild.com
sudo zypper install libnanomsg6openSUSE Tumbleweed package metadata · libnanomsg6 · source: download.opensuse.org
overview
Socket library in C
history
nanomsg is a C socket library for brokerless messaging patterns, described upstream as a way to make networking fast, scalable, and easy to use through common communication patterns such as pair, bus, request/reply, publish/subscribe, pipeline, and survey.
The project grew out of Martin Sustrik's post-ZeroMQ design work. nanomsg's own documentation preserves the historical motivation as a comparison with ZeroMQ by the original author of both projects: MIT licensing, a POSIX-like C API, implementation in C rather than C++, formal protocol/transport APIs, and different threading behavior were central design goals.
The GitHub repository was created on 2012-10-10. Later, Garrett D'Amore's NNG became the successor path: the nanomsg homepage says nanomsg has largely been superseded by NNG, and the documentation calls the C reference implementation sustaining-mode while describing NNG as the modern reimplementation.
nanomsg accumulated a broad binding ecosystem despite later being superseded: the upstream documentation lists bindings or implementations for C, C++, Clojure, D, Erlang, Fortran, Go, Haskell, Java, JavaScript, Lua, .NET, OCaml, Perl, PHP, Python, R, Ruby, Rust, Scheme, Smalltalk, and more.
GitHub API data fetched on 2026-07-01 showed 6,285 stars and 1,034 forks, reflecting historical mindshare. Homebrew's formula JSON generated on 2026-07-01 reported only 382 installs over 365 days and 181 installs-on-request over 365 days, which is consistent with a legacy library that remains packaged but is no longer the main recommendation.
Users link against the C library and use its BSD-socket-like API to build message-oriented communication without a broker. Typical choices are REQREP for service clusters, PUBSUB for fanout, PIPELINE for fan-in/fan-out work distribution, BUS for many-to-many messaging, and IPC/TCP/WebSocket transports depending on deployment.
Package nerds often keep `nanomsg` around for older applications or language bindings that still target libnanomsg. New work should usually evaluate `nng` first because NNG keeps wire compatibility while adding the maintained API and implementation path.
nanomsg matters historically as a clean-room C rethinking of ZeroMQ-style scalability protocols and as the ancestor of NNG. Its Homebrew package is less about trend adoption and more about preserving buildability for software that already chose the nanomsg API or wire protocols.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
nanocat | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/nanomsg/nanomsg
install metadata
| Package key | brew:nanomsg |
|---|---|
| Version | 1.2.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/nanomsg |
| Homepage | https://nanomsg.org/ |
| Repository | https://github.com/nanomsg/nanomsg |
| Upstream docs | https://github.com/nanomsg/nanomsg#readme |
| License | MIT |
| Source archive | https://github.com/nanomsg/nanomsg/archive/refs/tags/1.2.2.tar.gz |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nanomsg |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libnanomsg-dev 1.1.5+dfsg-1.1+b1
nanomsg development files
sudo apt install libnanomsg-devlibnanomsg5 1.1.5+dfsg-1.1+b1
high-performance implementation of scalability libraries
sudo apt install libnanomsg5nanomsg-utils 1.1.5+dfsg-1.1+b1
nanomsg utilities
sudo apt install nanomsg-utilsnanomsg
nix profile install nixpkgs#nanomsglibnanomsg-dev 1.1.5+dfsg-1.1
nanomsg development files
sudo apt install libnanomsg-devlibnanomsg5 1.1.5+dfsg-1.1
high-performance implementation of scalability libraries
sudo apt install libnanomsg5nanomsg-utils 1.1.5+dfsg-1.1
nanomsg utilities
sudo apt install nanomsg-utilsnanomsg 1.2.2-r0
Socket library that provides several common communication patterns
sudo apk add nanomsgnanomsg-dev 1.2.2-r0
Socket library that provides several common communication patterns (development files)
sudo apk add nanomsg-devnanomsg-doc 1.2.2-r0
Socket library that provides several common communication patterns (documentation)
sudo apk add nanomsg-docnanomsg 1.2.2-2.fc44
Socket library that provides several common communication patterns
sudo dnf install nanomsgnanomsg-devel 1.2.2-2.fc44
Development files for nanomsg
sudo dnf install nanomsg-develnanomsg-doc 1.2.2-2.fc44
Documentation for nanomsg
sudo dnf install nanomsg-docnanomsg 1.2.2-1
Simple high-performance implementation of several "scalability protocols"
sudo pacman -S nanomsglibnanomsg6 1.2.2-1.3
Shared library for nanomsg
sudo zypper install libnanomsg6nanomsg-devel 1.2.2-1.3
Header files for nanomsg
sudo zypper install nanomsg-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.