@effectstream/npm-midnight-node
v0.100.18
Published
Downloads and starts the binary for Midnight Node
Downloads
1,410
Readme
@effectstream/npm-midnight-node
NPM wrapper that downloads and runs the
Midnight Node binary. Installs a pinned
version on first invocation and exposes a npm-midnight-node CLI for
the EffectStream orchestrator and templates.
- Pinned Midnight node binary, downloaded on first run.
--devfor a local node;--clean-binaries/--only-cleanto manage the cache.- Consumed by
@effectstream/sync'sMidnightFetcher. - Templates:
evm-midnight-v2,night-bitcoin,zswap-da,zk-cardano.
Install
bun add @effectstream/npm-midnight-node
# or
npm install @effectstream/npm-midnight-nodeStandalone usage
# Start a local Midnight node (downloads the binary on first run)
bunx npm-midnight-node --dev
# Clear the downloaded binary cache
bunx npm-midnight-node --clean-binaries
# Only clean, don't redownload
bunx npm-midnight-node --only-cleanInside EffectStream
The orchestrator's Midnight step starts this binary, plus
@effectstream/npm-midnight-proof-server and
@effectstream/npm-midnight-indexer, then @effectstream/sync's
MidnightFetcher consumes the node's RPC. Templates that target
Midnight:
Links
- Docs: https://effectstream.github.io/docs/packages/binaries/midnight-node
- Source: https://github.com/effectstream/effectstream/tree/main/packages/binaries/midnight-node
- Upstream Midnight: https://midnight.network/
