@omnitron-dev/titan-discovery 0.4.6 → 0.4.9

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.
Files changed (2) hide show
  1. package/README.md +21 -7
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,19 +1,33 @@
1
1
  # @omnitron-dev/titan-discovery
2
2
 
3
- > Redis-backed service discovery for the Titan framework
3
+ Redis-backed service registration and lookup for Titan applications.
4
4
 
5
- Part of the [Omni](../../README.md) monorepo — Fullstack Type-Safe RPC Framework.
5
+ ## Capabilities
6
6
 
7
- ## Installation
7
+ - Registration, heartbeats and service lookup.
8
+ - Health-aware discovery and optional Netron integration.
9
+ - A dedicated Redis connection or a bridge to an existing Redis module.
8
10
 
9
- ```bash
11
+ ## Quick start
12
+
13
+ ```sh
10
14
  pnpm add @omnitron-dev/titan-discovery
11
15
  ```
12
16
 
13
- ## Overview
17
+ ```ts
18
+ import { DiscoveryModule } from '@omnitron-dev/titan-discovery';
19
+
20
+ export const discovery = DiscoveryModule.forRoot({ redisUrl: 'redis://127.0.0.1:6379' });
21
+ ```
22
+
23
+ Add this dynamic module to the `imports` of an existing Titan application.
24
+
25
+ Use an application-owned Redis endpoint. Omitting standalone Redis settings requires the existing `REDIS_MANAGER` provider. Discovery identifies available services; authentication and authorization remain with the connected transport.
26
+
27
+ ## Documentation
14
28
 
15
- Enables Titan services to register themselves and discover other services in a distributed environment. Uses Redis as the backing store for service registration, heartbeats, and lookup.
29
+ [Public API](src/index.ts) · [Package exports](package.json) · [Omni](../../README.md)
16
30
 
17
31
  ## License
18
32
 
19
- MIT
33
+ [MIT](../../LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnitron-dev/titan-discovery",
3
- "version": "0.4.6",
3
+ "version": "0.4.9",
4
4
  "description": "Service discovery module for Titan framework with Redis-backed registration",
5
5
  "author": "LuxQuant",
6
6
  "license": "MIT",
@@ -18,16 +18,16 @@
18
18
  "lua"
19
19
  ],
20
20
  "dependencies": {
21
- "@omnitron-dev/eventemitter": "0.4.6",
21
+ "@omnitron-dev/eventemitter": "0.4.9",
22
22
  "ioredis": "^6.0.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@omnitron-dev/titan": "0.4.6",
26
- "@omnitron-dev/titan-redis": "0.4.6"
25
+ "@omnitron-dev/titan": "0.4.9",
26
+ "@omnitron-dev/titan-redis": "0.4.9"
27
27
  },
28
28
  "devDependencies": {
29
- "@omnitron-dev/titan": "0.4.6",
30
- "@omnitron-dev/titan-redis": "0.4.6",
29
+ "@omnitron-dev/titan": "0.4.9",
30
+ "@omnitron-dev/titan-redis": "0.4.9",
31
31
  "@types/node": "26.6.6",
32
32
  "reflect-metadata": "^0.2.2",
33
33
  "typescript": "npm:@typescript/typescript6@^6.0.2",
@@ -39,7 +39,7 @@
39
39
  "url": "git+https://github.com/omnitron-dev/omni.git",
40
40
  "directory": "packages/titan-discovery"
41
41
  },
42
- "gitHead": "3a912fa181e97ddd238a28bb355cd7445c1b7364",
42
+ "gitHead": "c6005ff1d0cde480cfa6b0bc346c9b53b2e638bf",
43
43
  "scripts": {
44
44
  "build": "../../scripts/build-package.sh -p ./tsconfig.json",
45
45
  "test": "vitest run",