selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

NATS logo

Self-host NATS

v2.14.9

Messaging system for cloud-native distributed systems

ReleaseOpen SourceApache-2.0
helm upgrade --install nats nats/nats
Updatedlast week
LanguageGo
Setup difficultyModerate
Stars
21 017
Ports
4222 (Client connections), 6222 (Cluster route connections)
Docker
nats

What is NATS?

NATS Server routes messages between publishers and subscribers using subjects as named channels. Designed for distributed systems across cloud, on-premise, edge, and IoT environments. The single binary supports clustering, JetStream persistence, leaf nodes for topology building, MQTT clients, and WebSockets through configuration. Official client libraries exist for Go, JavaScript/TypeScript, Python, Java, Rust, C#, and C, with additional community-maintained implementations.

Should you self-host NATS?

NATS scores 80/100 on selfhost.directory (how scoring works) and ranks #2 of 12 in Message Broker. It has 21 017 GitHub stars, +175 in the last 30 days.

It shipped 18 stable releases in the past year. The latest, v2.14.9, came out on 26 October 2026. New versions land roughly every 7 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Apache Kafka (82/100, 34 194 stars). It scores higher overall, so compare the two before you pick. See NATS vs Apache Kafka side by side.

Features

  • Publish-subscribe messaging

NATS README

NATS Logo

NATS is a simple, secure and performant communications system for digital systems, services and devices. NATS is part of the Cloud Native Computing Foundation (CNCF). NATS has over 40 client language implementations, and its server can run on-premise, in the cloud, at the edge, and even on a Raspberry Pi. NATS can secure and simplify design and operation of modern distributed systems.

How to install NATS

Install NATS with Docker

docker pull nats

See supported tags and respective Dockerfile links on Docker Hub.

Official image maintained by NATS Project

NATS releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How does NATS work?

NATS connects applications and services through publishers, subscribers, subjects, and the NATS Server broker that routes messages.

More in Message Broker

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…