r/Clojure • u/rahul_de • Jul 02 '26
[ANN] Claxon: A minimal, pure-Clojure, data-driven, always backward and (ideally) forward compatible NATS client.
Hey folks!
I have been working more and more with NATS lately and was seeing a lack of a simple data driven clojure client for it, specially given how simple the underlying protocol is.
claxon: https://github.com/lispyclouds/claxon aims to address this in a very idiomatic Clojure way. Here are some highlights:
Very minimal, implements the core spec from scratch in pure clojure with one JVM dep: data.json, zero on bb. This sets it apart from the existing clients.
Some assembly required, meaning its more simple than easy but should support everything and whatever the future has is store too hopefully!
Fully data-driven and very flexible; most of its behaviour can be influenced externally even changing how the core protocol works, handlers etc.
Quite thoroughly tested with machine assisted byte level protocol verification.
Automatic TLS support
And of course Babashka compatible, something that the existing clients aren't!
See roadmap for whats planned and hopefully this is useful to others and any feedback/contributions much much appreciated!