nanonext: Lightweight Toolkit for Messaging, Concurrency and the Web

R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. A toolkit for messaging, concurrency and the web. High-performance socket messaging over in-process, IPC, TCP, WebSocket and secure TLS transports implements 'Scalability Protocols', a standard for common communications patterns including publish/subscribe, request/reply and survey. A threaded concurrency framework with intuitive 'aio' objects that resolve automatically upon completion of asynchronous operations, and synchronisation primitives that allow R to wait on events signalled by concurrent threads. A unified HTTP server hosting REST endpoints, WebSocket connections and streaming on a single port, with a built-in HTTP client.

Version: 1.8.0
Depends: R (≥ 3.6)
Suggests: later, litedown
Enhances: promises
Published: 2026-02-09
DOI: 10.32614/CRAN.package.nanonext
Author: Charlie Gao ORCID iD [aut, cre], Posit Software, PBC ROR ID [cph, fnd], Hibiki AI Limited [cph], R Consortium [fnd]
Maintainer: Charlie Gao <charlie.gao at posit.co>
BugReports: https://github.com/r-lib/nanonext/issues
License: MIT + file LICENSE
URL: https://nanonext.r-lib.org, https://github.com/r-lib/nanonext
NeedsCompilation: yes
SystemRequirements: 'libnng' >= 1.9 and 'libmbedtls' >= 2.5, or 'cmake' to compile NNG and/or Mbed TLS included in package sources
Materials: README, NEWS
In views: HighPerformanceComputing, WebTechnologies
CRAN checks: nanonext results

Documentation:

Reference manual: nanonext.html , nanonext.pdf
Vignettes: nanonext - Quick Reference (source)
nanonext - Messaging and Async I/O (source)
nanonext - Scalability Protocols (source)
nanonext - Configuration and Security (source)
nanonext - Web Toolkit (source)

Downloads:

Package source: nanonext_1.8.0.tar.gz
Windows binaries: r-devel: nanonext_1.7.2.zip, r-release: nanonext_1.7.2.zip, r-oldrel: nanonext_1.7.2.zip
macOS binaries: r-release (arm64): nanonext_1.7.2.tgz, r-oldrel (arm64): nanonext_1.7.2.tgz, r-release (x86_64): nanonext_1.7.2.tgz, r-oldrel (x86_64): nanonext_1.7.2.tgz
Old sources: nanonext archive

Reverse dependencies:

Reverse imports: crew, crew.cluster, mcptools, mirai
Reverse suggests: httr2, later, targets

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nanonext to link to this page.