@effectstream/npm-midnight-node 0.100.14 → 0.100.15

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 +46 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @effectstream/npm-midnight-node
2
+
3
+ NPM wrapper that downloads and runs the
4
+ [Midnight](https://midnight.network/) Node binary. Installs a pinned
5
+ version on first invocation and exposes a `npm-midnight-node` CLI for
6
+ the EffectStream orchestrator and templates.
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ bun add @effectstream/npm-midnight-node
12
+ # or
13
+ npm install @effectstream/npm-midnight-node
14
+ ```
15
+
16
+ ## Standalone usage
17
+
18
+ ```bash
19
+ # Start a local Midnight node (downloads the binary on first run)
20
+ bunx npm-midnight-node --dev
21
+
22
+ # Clear the downloaded binary cache
23
+ bunx npm-midnight-node --clean-binaries
24
+
25
+ # Only clean, don't redownload
26
+ bunx npm-midnight-node --only-clean
27
+ ```
28
+
29
+ ## Inside EffectStream
30
+
31
+ The orchestrator's Midnight step starts this binary, plus
32
+ `@effectstream/npm-midnight-proof-server` and
33
+ `@effectstream/npm-midnight-indexer`, then `@effectstream/sync`'s
34
+ `MidnightFetcher` consumes the node's RPC. Templates that target
35
+ Midnight:
36
+
37
+ - [`templates/evm-midnight/`](https://github.com/PaimaStudios/paima-engine/tree/main/templates/evm-midnight)
38
+ - [`templates/night-bitcoin/`](https://github.com/PaimaStudios/paima-engine/tree/main/templates/night-bitcoin)
39
+ - [`templates/zswap-da/`](https://github.com/PaimaStudios/paima-engine/tree/main/templates/zswap-da)
40
+ - [`templates/zk-cardano/`](https://github.com/PaimaStudios/paima-engine/tree/main/templates/zk-cardano)
41
+
42
+ ## Links
43
+
44
+ - Docs: https://effectstream.github.io/docs/packages/binaries/midnight-node
45
+ - Source: https://github.com/PaimaStudios/paima-engine/tree/main/packages/binaries/midnight-node
46
+ - Upstream Midnight: https://midnight.network/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectstream/npm-midnight-node",
3
- "version": "0.100.14",
3
+ "version": "0.100.15",
4
4
  "description": "Downloads and starts the binary for Midnight Node",
5
5
  "main": "index.js",
6
6
  "scripts": {