cashu-paywall 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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.0 (unreleased)
3
+ ## 0.1.1 (17 Nov 2026)
4
+
5
+ Documentation only, no code changes: install instructions, a link to the live demo and a tidier README.
6
+
7
+ ## 0.1.0 (17 Nov 2026)
4
8
 
5
9
  First release. Tested against `testnut.cashu.space` only. Unaudited.
6
10
 
package/README.md CHANGED
@@ -12,7 +12,11 @@ Charge per call in [Cashu](https://cashu.space) ecash, on Cloudflare Workers and
12
12
 
13
13
  **Why.** NUT-24 defines HTTP 402 for Cashu, but the NUTs README lists no wallet and no mint that implements it (checked 6 Nov 2026), and we know of no other server library for it. MCP servers had no way to take ecash either. This is a server-side NUT-24 implementation, with an MCP adapter on top.
14
14
 
15
- > **Status: 0.1.0, unreleased, unaudited.** Tested only against `testnut.cashu.space`, a test mint whose Lightning is fake. Use a test mint first. Read [docs/security.md](docs/security.md) before you point it at a mint with real sats.
15
+ **Install.** `npm install cashu-paywall`. The MCP adapter also needs `@modelcontextprotocol/sdk` and `zod`.
16
+
17
+ **Live demo.** [cashu-paywall-demo.cclevel.workers.dev](https://cashu-paywall-demo.cclevel.workers.dev) runs the [demo Worker](examples/demo-worker) on testnut, so it takes test sats only. `curl -si "https://cashu-paywall-demo.cclevel.workers.dev/api/nut-fact?nut=24"` shows the 402, [/ecash](https://cashu-paywall-demo.cclevel.workers.dev/ecash) is the top-up page, and from a clone `npm run demo:check -- https://cashu-paywall-demo.cclevel.workers.dev` runs the 14 checks against it.
18
+
19
+ > **Status: 0.1.1 on [npm](https://www.npmjs.com/package/cashu-paywall), unaudited.** Tested only against `testnut.cashu.space`, a test mint whose Lightning is fake. Use a test mint first. Read [docs/security.md](docs/security.md) before you point it at a mint with real sats.
16
20
 
17
21
  ## Try it in 5 minutes
18
22
 
@@ -151,7 +155,7 @@ Threat model, limits and what is not protected: [docs/security.md](docs/security
151
155
 
152
156
  ## Limitations and status
153
157
 
154
- - 0.1.0, unreleased, unaudited. Tested against testnut only (cdk-mintd 0.18.1). Not yet published to npm and not yet deployed anywhere.
158
+ - 0.1.1, unaudited. Tested against testnut only (cdk-mintd 0.18.1). On npm since 17 Nov 2026; the live demo runs on testnut only.
155
159
  - Top-ups, refunds and melts need Workers Paid: a swap takes far more than the Free plan's 10 ms of CPU ([docs/performance.md](docs/performance.md)). Paid calls fit either plan.
156
160
  - `sat` only. One mint per key. Rate limiting needs a Cloudflare Rate Limiting binding.
157
161
  - The excess of an overpaid NUT-24 request stays as credit on a new key (`X-Ecash-Key`). NUT-24 doesn't define change, so plain NUT-24 clients ignore it ([docs/nut-24.md](docs/nut-24.md)).
@@ -168,4 +172,4 @@ Threat model, limits and what is not protected: [docs/security.md](docs/security
168
172
 
169
173
  ## License
170
174
 
171
- MIT. Built with AI assistance (Claude Code). The author directed the work and owns it.
175
+ MIT. See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cashu-paywall",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Charge per call in Cashu ecash: prepaid eck_ keys, NUT-24 HTTP 402 and an MCP adapter for Cloudflare Workers",
5
5
  "license": "MIT",
6
6
  "author": "David Stancel",