@vinaystwt/xmpp-router 0.1.0 → 0.1.1

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 +44 -0
  2. package/package.json +7 -4
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @vinaystwt/xmpp-router
2
+
3
+ xMPP Router is the route-scoring engine behind payment selection in xMPP.
4
+
5
+ It evaluates request shape, projected usage, pricing hints, reusable sessions, and policy constraints to choose between:
6
+
7
+ - `x402`
8
+ - `mpp-charge`
9
+ - `mpp-session-open`
10
+ - `mpp-session-reuse`
11
+
12
+ ## Position In The Package Family
13
+
14
+ Most builders should start with:
15
+
16
+ - `@vinaystwt/xmpp-core`
17
+ - `@vinaystwt/xmpp-mcp`
18
+
19
+ Use `@vinaystwt/xmpp-router` directly only if you want route scoring or workflow estimation without the rest of the xMPP gateway stack.
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ npm install @vinaystwt/xmpp-router
25
+ ```
26
+
27
+ ## Best For
28
+
29
+ - route previews
30
+ - workflow estimation
31
+ - custom pricing and capability inspection
32
+
33
+ ## Related Packages
34
+
35
+ - `@vinaystwt/xmpp-core`
36
+ - `@vinaystwt/xmpp-payment-adapters`
37
+ - `@vinaystwt/xmpp-types`
38
+
39
+ ## Docs
40
+
41
+ - repo:
42
+ - https://github.com/Vinaystwt/xMPP
43
+ - route algorithm:
44
+ - https://github.com/Vinaystwt/xMPP/blob/main/docs/router-algorithm.md
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@vinaystwt/xmpp-router",
3
- "version": "0.1.0",
4
- "description": "Cost-aware route scoring and workflow estimation across x402, MPP charge, and MPP session flows.",
3
+ "version": "0.1.1",
4
+ "description": "Advanced xMPP route-scoring package for x402, MPP charge, and MPP session planning.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/router/src/index.js",
8
8
  "types": "dist/router/src/index.d.ts",
9
9
  "files": [
10
10
  "dist",
11
+ "README.md",
11
12
  "LICENSE"
12
13
  ],
13
14
  "sideEffects": false,
@@ -25,7 +26,9 @@
25
26
  "router",
26
27
  "stellar",
27
28
  "x402",
28
- "mpp"
29
+ "mpp",
30
+ "economics",
31
+ "planning"
29
32
  ],
30
33
  "exports": {
31
34
  ".": {
@@ -45,6 +48,6 @@
45
48
  "test": "vitest run"
46
49
  },
47
50
  "dependencies": {
48
- "@vinaystwt/xmpp-types": "0.1.0"
51
+ "@vinaystwt/xmpp-types": "0.1.1"
49
52
  }
50
53
  }