#nats #provider #wasmcloud

wasmcloud-provider-messaging-nats

A capability provider that satisfies the 'wasmcloud:messaging' contract using NATS as a backend

4 releases (breaking)

0.27.0 Apr 21, 2025
0.26.0 Mar 20, 2025
0.25.0 Feb 5, 2025
0.24.0 Jan 23, 2025

#1583 in WebAssembly

Download history 313/week @ 2025-01-22 233/week @ 2025-01-29 534/week @ 2025-02-05 208/week @ 2025-02-12 185/week @ 2025-02-19 44/week @ 2025-02-26 173/week @ 2025-03-05 45/week @ 2025-03-12 122/week @ 2025-03-19 2/week @ 2025-03-26 85/week @ 2025-04-16 29/week @ 2025-04-23

115 downloads per month

Apache-2.0

1.5MB
5.5K SLoC

NATS Capability Provider

This capability provider is an implementation of the wasmcloud:messaging contract. It exposes publish, request, and subscribe functionality to components.

To configure this provider, use the following link settings in link definitions:

Property Description
SUBSCRIPTIONS A comma-separated list of subscription topics. If a subscription is a queue subscription, follow the subscription with "|" and the queue group name. For example, the setting SUBSCRIPTIONS=example.actor,example.task|work_queue subscribes to the topic example.actor and the topic example.task in the queue group work_queue.
CLUSTER_URIS NATS connection uri. If not specified, the default is 0.0.0.0:4222
CLIENT_JWT Optional JWT auth token. For JWT authentication, both CLIENT_JWT and CLIENT_SEED must be provided.
CLIENT_SEED Private seed for JWT authentication.

Dependencies

~37–53MB
~1M SLoC