armory-cli 0.3.3 → 0.3.4
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 +18 -40
- package/package.json +14 -6
package/README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# armory-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Armory x402 SDK — CLI tool to scaffold payment-enabled apps, query networks/tokens, and verify endpoints.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Documentation](https://armory.sh) | [License](LICENSE)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
bun add -g armory-cli
|
|
9
|
-
# or
|
|
10
|
-
npm install -g armory-cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Why Armory?
|
|
14
|
+
|
|
15
|
+
Armory enables HTTP API payments via EIP-3009 `transferWithAuthorization`. Scaffold full payment servers and clients in seconds.
|
|
16
|
+
|
|
13
17
|
## Commands
|
|
14
18
|
|
|
15
19
|
### `armory create <template> [name]`
|
|
@@ -17,19 +21,16 @@ npm install -g armory-cli
|
|
|
17
21
|
Scaffold a new x402 payment-enabled project.
|
|
18
22
|
|
|
19
23
|
**Server Templates:**
|
|
20
|
-
- `bun-server`
|
|
21
|
-
- `express-server`
|
|
22
|
-
- `hono-server`
|
|
23
|
-
- `elysia-server`
|
|
24
|
-
- `next-server`
|
|
24
|
+
- `bun-server` — Bun server with payment middleware
|
|
25
|
+
- `express-server` — Express v5 server
|
|
26
|
+
- `hono-server` — Hono server with extension support
|
|
27
|
+
- `elysia-server` — Elysia/Bun server
|
|
28
|
+
- `next-server` — Next.js middleware
|
|
25
29
|
|
|
26
30
|
**Client Templates:**
|
|
27
|
-
- `viem-client`
|
|
28
|
-
- `ethers-client`
|
|
29
|
-
- `web3-client`
|
|
30
|
-
|
|
31
|
-
**Legacy:**
|
|
32
|
-
- `facilitator` - Payment verification server (deprecated)
|
|
31
|
+
- `viem-client` — Viem x402 client
|
|
32
|
+
- `ethers-client` — Ethers.js v6 client
|
|
33
|
+
- `web3-client` — Web3.js client
|
|
33
34
|
|
|
34
35
|
```bash
|
|
35
36
|
armory create bun-server my-api
|
|
@@ -86,29 +87,6 @@ armory verify https://api.example.com/data
|
|
|
86
87
|
armory inspect https://api.example.com/data
|
|
87
88
|
```
|
|
88
89
|
|
|
89
|
-
## Examples
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# Create a payment server
|
|
93
|
-
armory create bun-server my-payment-api
|
|
94
|
-
cd my-payment-api
|
|
95
|
-
bun install
|
|
96
|
-
bun run dev
|
|
97
|
-
|
|
98
|
-
# In another terminal, create a client
|
|
99
|
-
armory create viem-client my-client
|
|
100
|
-
cd my-client
|
|
101
|
-
bun install
|
|
102
|
-
PRIVATE_KEY=0x... bun run dev
|
|
103
|
-
|
|
104
|
-
# Check available networks and tokens
|
|
105
|
-
armory networks
|
|
106
|
-
armory tokens base
|
|
107
|
-
|
|
108
|
-
# Verify an endpoint
|
|
109
|
-
armory verify http://localhost:3000/api/data
|
|
110
|
-
```
|
|
111
|
-
|
|
112
90
|
## Supported Networks
|
|
113
91
|
|
|
114
92
|
| Network | Chain ID |
|
|
@@ -124,6 +102,6 @@ armory verify http://localhost:3000/api/data
|
|
|
124
102
|
|
|
125
103
|
USDC, EURC, USDT, WBTC, WETH, SKL across supported networks.
|
|
126
104
|
|
|
127
|
-
|
|
105
|
+
## License
|
|
128
106
|
|
|
129
|
-
MIT
|
|
107
|
+
MIT © [Sawyer Cutler](https://github.com/TheGreatAxios/armory)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "armory-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Scaffold x402 payment-enabled apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,14 +16,22 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"x402",
|
|
19
|
-
"
|
|
19
|
+
"ai",
|
|
20
|
+
"agentic commerce",
|
|
21
|
+
"ai agent",
|
|
22
|
+
"stablecoins",
|
|
23
|
+
"eip-3009",
|
|
24
|
+
"skale",
|
|
25
|
+
"base",
|
|
26
|
+
"machine economy",
|
|
20
27
|
"payment",
|
|
21
28
|
"crypto",
|
|
22
29
|
"web3",
|
|
30
|
+
"ethereum",
|
|
31
|
+
"usdc",
|
|
23
32
|
"cli",
|
|
24
33
|
"scaffold",
|
|
25
|
-
"
|
|
26
|
-
"usdc"
|
|
34
|
+
"generator"
|
|
27
35
|
],
|
|
28
36
|
"bin": {
|
|
29
37
|
"armory-cli": "./dist/cli.js"
|
|
@@ -39,8 +47,8 @@
|
|
|
39
47
|
"test": "bun test"
|
|
40
48
|
},
|
|
41
49
|
"dependencies": {
|
|
42
|
-
"@armory-sh/base": "0.2.
|
|
43
|
-
"@armory-sh/extensions": "0.1.
|
|
50
|
+
"@armory-sh/base": "0.2.24",
|
|
51
|
+
"@armory-sh/extensions": "0.1.5",
|
|
44
52
|
"prompts": "2.4.2"
|
|
45
53
|
},
|
|
46
54
|
"devDependencies": {
|