Skip to main content

@effectstream/npm-midnight-node

Package: @effectstream/npm-midnight-node · Source

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.

Install

bun add @effectstream/npm-midnight-node
# or
npm install @effectstream/npm-midnight-node

Standalone 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-clean

Inside 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: