$ nuts --price
free
- Free to use in commercial and personal projects
- Source code on GitHub under the BSD 4-Clause license
Real-time NATS in the browser: a Caddy module that streams NATS JetStream messages to browsers over Server-Sent Events.
nuts - real-time NATS in the browser: a Caddy module that streams NATS JetStream messages to browsers over Server-Sent Events
NUTS is a Caddy module that bridges NATS JetStream messages to Server-Sent Events. Browsers subscribe with the standard EventSource API and pick topics with query parameters; one connection can carry many topics.
Messages live in JetStream, so retention, storage and replay stay in NATS. A client that reconnects sends Last-Event-ID and gets what it missed. It is inspired by Mercure and built for teams already running NATS. This site uses it for its live admin panel.
$ nuts --price
$ nuts --sponsor
If NUTS saves you time, you can support its development. It pays for the hours that go into fixes and new releases.
v0.6.1 · release notes ↗
$ xcaddy build --with github.com/ideaconnect/nuts helena(1), whaaack(1), chromis(1), sticker-maker(1), ls ./software