@horizon-republic/nestjs-jetstream 2.5.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,36 @@
1
+ <div align="center">
2
+
1
3
  # @horizon-republic/nestjs-jetstream
2
4
 
3
- Ship reliable microservices with NATS JetStream and NestJS. Events, broadcast, ordered delivery, and RPC — with two lines of config.
5
+ **Ship reliable microservices with NATS JetStream and NestJS.**
6
+ Events, broadcast, ordered delivery, and RPC — with two lines of config.
4
7
 
5
8
  [![npm version](https://img.shields.io/npm/v/@horizon-republic/nestjs-jetstream.svg)](https://www.npmjs.com/package/@horizon-republic/nestjs-jetstream)
6
9
  [![codecov](https://codecov.io/github/HorizonRepublic/nestjs-jetstream/graph/badge.svg?token=40IPSWFMT4)](https://codecov.io/github/HorizonRepublic/nestjs-jetstream)
10
+ [![CI](https://github.com/HorizonRepublic/nestjs-jetstream/actions/workflows/coverage.yml/badge.svg)](https://github.com/HorizonRepublic/nestjs-jetstream/actions)
11
+ [![Documentation](https://img.shields.io/badge/docs-online-brightgreen.svg)](https://horizonrepublic.github.io/nestjs-jetstream/)
12
+
13
+ [![Node.js](https://img.shields.io/node/v/@horizon-republic/nestjs-jetstream.svg)](https://nodejs.org)
14
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org)
7
15
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
- [![Socket Badge](https://badge.socket.dev/npm/package/@horizon-republic/nestjs-jetstream)](https://socket.dev/npm/package/@horizon-republic/nestjs-jetstream)
16
+
17
+ </div>
18
+
19
+ ---
20
+
21
+ ## Why this library?
22
+
23
+ NestJS ships with a NATS transport, but it's fire-and-forget. Messages vanish if no one's listening. This library adds JetStream — so your messages **survive restarts**, **retry on failure**, and **replay for new consumers**.
24
+
25
+ You keep writing `@EventPattern()` and `@MessagePattern()`. The library handles streams, consumers, and subjects automatically.
26
+
27
+ ## What's inside
28
+
29
+ **Delivery modes** — workqueue (one consumer), broadcast (all consumers), ordered (sequential), and dual-mode RPC (Core or JetStream-backed).
30
+
31
+ **Production-ready** — dead letter queue, health checks, graceful shutdown with drain, lifecycle hooks for observability.
32
+
33
+ **Flexible** — pluggable codecs (JSON/MsgPack/Protobuf), per-stream configuration, publisher-only mode for API gateways.
9
34
 
10
35
  ## Quick Start
11
36
 
@@ -44,9 +69,13 @@ export class OrdersController {
44
69
 
45
70
  **[Read the full documentation →](https://horizonrepublic.github.io/nestjs-jetstream/)**
46
71
 
47
- - [Getting Started](https://horizonrepublic.github.io/nestjs-jetstream/docs/getting-started) installation, module setup, first handler
48
- - [Guides](https://horizonrepublic.github.io/nestjs-jetstream/docs/guides/health-checks) — health checks, graceful shutdown, lifecycle hooks
49
- - [API Reference](https://horizonrepublic.github.io/nestjs-jetstream/docs/reference/api/) full TypeDoc-generated API
72
+ | Section | What you'll learn |
73
+ |---------|-------------------|
74
+ | [Getting Started](https://horizonrepublic.github.io/nestjs-jetstream/docs/getting-started/installation) | Installation, module setup, first handler |
75
+ | [Messaging Patterns](https://horizonrepublic.github.io/nestjs-jetstream/docs/patterns/rpc) | RPC, Events, Broadcast, Ordered Events |
76
+ | [Guides](https://horizonrepublic.github.io/nestjs-jetstream/docs/guides/record-builder) | Handler context, DLQ, health checks, performance tuning |
77
+ | [Migration](https://horizonrepublic.github.io/nestjs-jetstream/docs/guides/migration) | From built-in NATS transport or between versions |
78
+ | [API Reference](https://horizonrepublic.github.io/nestjs-jetstream/docs/reference/api/) | Full TypeDoc-generated API |
50
79
 
51
80
  ## Links
52
81