Skip to content

Install the tools

One command installs everything you need for your language: the ndsr runtime (prebuilt), the hivec compiler where it is a binary, and necter-init, which creates a starter project. It runs on macOS (Apple Silicon and Intel) and Linux (x86_64 and aarch64), needs no sudo, and verifies every download against the release’s SHA256SUMS.

Terminal window
curl -fsSL https://necter.network/install.sh | sh -s -- rust

Installs ndsr, hivec-rs and the hivec dispatcher. Needs cargo, rustup and the wasm32-unknown-unknown target (prerequisites).

Then create and run your first module:

Terminal window
necter-init rust my_module && cd my_module
hivec build # -> dist/my_module.hbc
ndsr run dist/my_module.hbc addNumbers --input '{"a":2,"b":3}'

The quickstart walks through the same steps and goes on to deploy the module to the testnet.

Everything goes under ~/.necter (change it with --dir). Binaries go to ~/.necter/bin:

File Installed with What it is
ndsr every SDK component, validator The NDSR runtime (Necter Distributed State Runtime): runs .hbc modules locally and runs nodes
hivec-rs rust The Rust SDK’s compiler CLI
hivec-go go The Go SDK’s compiler CLI
hivec rust, go A small dispatcher: runs hivec-rs in a project with a Cargo.toml, hivec-go in one with a go.mod
necter-init every SDK component necter-init <rust|go|typescript|javascript|python> <dir> copies a starter template from ~/.necter/share/hivekit/templates and uses the directory name as the module name
necter-miner miner The command-line miner

The validator component also writes three files to ~/.necter/share/validator: ndsr.env.example (an example configuration), ndsr.service (a systemd unit) and network.necter.ndsr.plist (a launchd agent). It starts nothing. See Run a validator node.

TypeScript, JavaScript and Python have no global hivec: the SDK is a per-project package (an npm dev dependency, or a wheel in a virtual environment) and its hivec runs as npx hivec or from the activated virtual environment.

If ~/.necter/bin is not on your PATH, the installer prints the line for your shell:

Terminal window
echo 'export PATH="$HOME/.necter/bin:$PATH"' >> ~/.zshrc && export PATH="$HOME/.necter/bin:$PATH"

The installer checks these and warns about anything missing; it does not fail and does not install them.

Component Needs
rust cargo and rustup (rustup.rs), plus the wasm32-unknown-unknown target: rustup target add wasm32-unknown-unknown
go Go 1.21+ (go.dev/dl) and TinyGo (tested with 0.42.0; install guide). Set $TINYGO to a tinygo binary that is not on your PATH
typescript, javascript Node.js 18+ and npm
python Python 3.10+. The installer looks for python3.14 down to python3.10, then python3, and prints which one to use for the virtual environment
miner, desktop, validator nothing beyond curl

Install Rust with rustup:

Terminal window
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-unknown-unknown

Install TinyGo on macOS with Homebrew:

Terminal window
brew tap tinygo-org/tools && brew install tinygo
Terminal window
curl -fsSL https://necter.network/install.sh | sh -s -- [options] <component>...
Option Effect
--dir DIR Install under DIR instead of ~/.necter (binaries go to DIR/bin)
--version Print the installer and release versions and the versions of the installed tools
--uninstall Remove everything the installer put under the install directory
--help Show the usage

Components: rust, go, typescript, javascript, python, miner, desktop (macOS: downloads, verifies and opens the Necter Miner disk image, saved to ~/Downloads), validator, and all (= rust go typescript javascript python miner). Give several at once, for example sh -s -- rust python.

Re-running the installer is safe: what is already installed is skipped. It detects macOS on arm64 or x86_64 (it prefers arm64 under Rosetta) and Linux on x86_64 or aarch64 (static binaries). Other systems are refused; on Windows, use WSL.

All binaries are attached to the public HiveKit v1.0.0 release (Apache-2.0). To install ndsr by hand, download the archive for your platform and SHA256SUMS, verify, extract and put the binary on your PATH:

Terminal window
curl -fsSLO https://github.com/Necter-Network/hivekit/releases/download/v1.0.0/ndsr-1.0.0-aarch64-apple-darwin.tar.gz
curl -fsSLO https://github.com/Necter-Network/hivekit/releases/download/v1.0.0/SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing # Linux: sha256sum -c SHA256SUMS --ignore-missing
tar -xzf ndsr-1.0.0-aarch64-apple-darwin.tar.gz
mkdir -p ~/.necter/bin
install -m 0755 ndsr-1.0.0-aarch64-apple-darwin/ndsr ~/.necter/bin/ndsr

Release assets:

Asset Contents
ndsr-1.0.0-<target>.tar.gz the ndsr runtime
hivec-rs-1.0.0-<target>.tar.gz the Rust hivec
hivec-go-1.0.0-<target>.tar.gz the Go hivec
necter-hivekit-1.0.0.tgz npm package @necter/hivekit (TypeScript and JavaScript SDK)
necter-hivejs-1.0.0.tgz npm package @necter/hivejs (client for calling deployed modules)
necter_hivekit-1.0.0-py3-none-any.whl, necter_hivekit-1.0.0.tar.gz Python distribution necter-hivekit (import name hivekit)
hivekit-templates-1.0.0.tar.gz the starter templates used by necter-init
install.sh, SHA256SUMS the installer and the checksums of every asset

<target> is one of aarch64-apple-darwin, x86_64-apple-darwin, x86_64-unknown-linux-musl or aarch64-unknown-linux-musl. Each archive unpacks to a directory <name>-1.0.0-<target>/ holding the binary.

The miner is released separately, in necter-releases: necter-miner-1.0.1-<target>.tar.gz for the same four targets, the macOS desktop app and the Android app.

The SDKs are referenced from GitHub, not from package registries. Publishing to crates.io, npm and PyPI is planned.

Cargo.toml
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
hivekit = { git = "https://github.com/Necter-Network/hivekit", tag = "v1.0.0" }
serde = { version = "1", features = ["derive"] }

To build the Rust hivec from source instead of using the prebuilt one:

Terminal window
cargo install --git https://github.com/Necter-Network/hivekit --tag v1.0.0 hivekit --bin hivec

@necter/hivejs is a dependency-free client for browsers and Node:

Terminal window
npm install https://github.com/Necter-Network/hivekit/releases/download/v1.0.0/necter-hivejs-1.0.0.tgz
import { Hive } from '@necter/hivejs'

Usage: Upload and call a module.

Terminal window
ndsr --version # ndsr 1.0.0
hivec --version # hivec 1.0.0 (Rust) or hivec-go/1.0.0 (Go)
necter-miner --version
curl -fsSL https://necter.network/install.sh | sh -s -- --version

Every hivec finds ndsr through $NDSR_BIN, then ndsr on your PATH.

To upgrade, re-run the one-liner: a newer installer installs the newer release.

To uninstall:

Terminal window
curl -fsSL https://necter.network/install.sh | sh -s -- --uninstall

This removes only what the installer put in place. Miner data (keys, wallet, configuration) and node data directories are left untouched.

Problem Fix
command not found: ndsr (or hivec, necter-init, necter-miner) ~/.necter/bin is not on your PATH; add it with the line for your shell and open a new terminal
Rust build fails because the wasm32-unknown-unknown target is missing rustup target add wasm32-unknown-unknown
Go: tinygo not found Install TinyGo (install guide) or set $TINYGO to its binary
Python: the venv or pip install fails, or the installer says your python3 is too old Use a Python 3.10+ interpreter for the venv, for example python3.12 -m venv .venv
"error": "out of gas" from ndsr run on a JavaScript or Python module ndsr run defaults to 1,000,000 gas; these engines need more, so pass --gas 10000000 (JavaScript) or --gas 50000000 (Python)
unsupported OS The installer supports macOS and Linux. On Windows, run it inside WSL
checksum mismatch for … The download was corrupted or interrupted: re-run the installer. If it keeps failing, do not use the file and report it on the HiveKit repository
hivec run cannot find ndsr Put ndsr on your PATH or set NDSR_BIN=/path/to/ndsr