
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@nats-io/transport-node
Advanced tools
Node.js client for NATS, a lightweight, high-performance cloud native messaging system
A Node.js transport for the NATS messaging system.
This module implements a Node.js native TCP transport for NATS. This library re-exports NATS core library which implements all basic NATS client functionality. This library is compatible with Bun.
npm install @nats-io/transport-node
# or
bun install @nats-io/transport-node
You can then import the connect function to connect using the node transport
like this:
import { connect } from "@nats-io/transport-node";
To use NATS JetStream, NATS KV, NATS Object Store, or the NATS Services functionality you'll need to install the desired modules as described in each of the modules README files.
This module simply exports a
connect() function that
returns a NatsConnection supported by a Nodejs TCP socket. This library
re-exports all the public APIs for the core module. Please
visit the core module for examples on how to use a connection or refer to the
JSDoc documentation.
Our support policy for Nodejs versions follows Nodejs release support. We will support and build node-nats on even-numbered Nodejs versions that are current or in LTS.
FAQs
Node.js client for NATS, a lightweight, high-performance cloud native messaging system
The npm package @nats-io/transport-node receives a total of 102,486 weekly downloads. As such, @nats-io/transport-node popularity was classified as popular.
We found that @nats-io/transport-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.