---
title: "NATS Pub/Sub in Hare"
url: https://daily.dev/posts/nats-pub-sub-in-hare-7uegsnbfl
source_url: https://blainsmith.com/articles/nats-pub-sub-in-hare
type: article
source: "Blain Smith"
published: 2026-05-24T07:43:40.559Z
updated: 2026-05-24T07:44:17.625Z
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# NATS Pub/Sub in Hare

**[Blain Smith](https://daily.dev/sources/blainsmith)** · 3 min read · 0 upvotes · 0 comments

## Summary

hare-nats is a native NATS client library for the Hare programming language, implementing the core NATS client protocol with publish/subscribe, wildcard subject matching, and three authentication methods: token, username/password, and NKey (Ed25519). Built on hare-ev for async I/O and hare-json for protocol message encoding, it uses prioritized write queues to ensure control messages are sent before application data. Future plans include TLS support, JetStream, request/reply, headers, and queue groups.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blainsmith.com/articles/nats-pub-sub-in-hare>

---

[View this post on daily.dev](https://daily.dev/posts/nats-pub-sub-in-hare-7uegsnbfl)
