#nats #provider #wasmcloud

wasmcloud-provider-messaging-nats

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

4 releases (breaking)

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

#1687 in WebAssembly

Download history 229/week @ 2025-01-20 231/week @ 2025-01-27 514/week @ 2025-02-03 260/week @ 2025-02-10 194/week @ 2025-02-17 70/week @ 2025-02-24 145/week @ 2025-03-03 88/week @ 2025-03-10 108/week @ 2025-03-17 19/week @ 2025-03-24 1/week @ 2025-03-31

130 downloads per month

Apache-2.0

1.5MB
4K 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

~38–53MB
~1M SLoC