Use with your AI agent
- Install — run
npx skills add Kali-Decoder/Midnight-skills --skill midnight-version-matrixfor this skill, ornpx skills add Kali-Decoder/Midnight-skillsfor all - Prompt — copy the example prompt and paste it into Cursor, Claude Code, or Codex
- Build — the agent loads this skill and scaffolds your Midnight work
Version Compatibility Matrix
Agent picks this when: Pick package versions that work together, or upgrade safely
The pinned, tested Midnight version set (toolchain, language, runtime, ledger, Midnight.js, Wallet SDK, images) with exact install commands. Generated from references/versions.json.
Good for
- Pinned toolchain, language version, packages, and Docker images as one tested set.
- Exact install commands, package scopes, and removed packages. Live copy at /api/versions.
Preview in agent
Suggested promptsPick package versions that work together, or upgrade safely. Use the "midnight-version-matrix" skill from MIDSKILLS. Follow Compact smart-contract best practices, wire wallet flows where needed, and explain each step as you implement. Target Midnight Preprod unless I specify otherwise.
Loaded skill midnight-version-matrix
What the skill guides the agent to do:
- Pinned toolchain, language version, packages, and Docker images as one tested set.
- Exact install commands, package scopes, and removed packages. Live copy at /api/versions.
Illustrative — based on the skill's description, not recorded agent output.
Try it without installing: npx skills use Kali-Decoder/Midnight-skills@midnight-version-matrix
What changed in v1.0.16
All registry changesNew skill — first published in v1.0.16 (not in v1.0.14).
On this page · 7 sections
Midnight Version Matrix (Ledger 9)
Midnight packages only work as a tested set. Install the whole set below together, with exact versions. Never @latest.
Ledger 9.1 set (support matrix patch of 17 Nov 2026). Verified against npm on 21 Nov 2026. Cross-check docs.midnight.network/relnotes/support-matrix before pinning.
Workflow
- Get the live set first.
GET https://midskills.sevryn.xyz/api/versionsreturns this same data as JSON (shape ofversions.json). If it answers and differs from this page, the live set wins: this page is the copy from the last skills release. - Pick packages from the tables: browser dApps need Browser / shared; Node scripts, CLIs, and tests add Node only.
- Install with
--save-exactusing the commands below; set the toolchain withcompact update. - Run
midnight-doctorto confirm the project matches. - If this set and the support matrix disagree, the support matrix wins. Report the drift.
Toolchain and images
| Component | Pinned |
|---|---|
Compact devtools (compact --version) | 0.5.1 |
Compact toolchain (compact compile --version) | 0.36.1 |
Language version (pragma language_version) | 0.28.0 |
| Proof server image | midnightntwrk/proof-server:9.0.2 |
| Indexer image | midnightntwrk/indexer-standalone:4.4.101 |
| Node image | midnightntwrk/midnight-node:2.1.101 |
compact update 0.36.1
docker run -p 6300:6300 midnightntwrk/proof-server:9.0.2 midnight-proof-server -v
pragma language_version >= 0.28.0;
Package scopes
Midnight.js, Wallet SDK, ledger-v9, DApp Connector and testkit publish under @midnightntwrk. compact-runtime, compact-js and platform-js are still published only under @midnight-ntwrk (compiler output imports @midnight-ntwrk/compact-runtime). midnight-js-network-id has no 5.x release: setNetworkId was removed, pass networkId in config instead.
Browser / shared packages
| Package | Version | Scope |
|---|---|---|
@midnight-ntwrk/compact-runtime | 0.21.0 | @midnight-ntwrk |
@midnight-ntwrk/compact-js | 3.0.2 | @midnight-ntwrk |
@midnightntwrk/ledger-v9 | 1.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-contracts | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-types | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-utils | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-indexer-public-data-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-fetch-zk-config-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-level-private-state-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-dapp-connector-proof-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/dapp-connector-api | 4.1.0 | @midnightntwrk |
@midnightntwrk/wallet-sdk-prover-client | 2.0.1 | @midnightntwrk |
@midnightntwrk/zkir-v2 | 2.2.0 | @midnightntwrk |
Tested alongside: next ^15.0.0, react ^19.0.0, react-dom ^19.0.0.
npm install --save-exact \
@midnight-ntwrk/[email protected] \
@midnight-ntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected]
Node only (wallets, CLIs, tests)
| Package | Version | Scope |
|---|---|---|
@midnightntwrk/midnight-js-http-client-proof-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-node-zk-config-provider | 5.0.2 | @midnightntwrk |
@midnightntwrk/wallet-sdk | 2.0.1 | @midnightntwrk |
@midnightntwrk/wallet-sdk-facade | 5.0.1 | @midnightntwrk |
@midnightntwrk/wallet-sdk-shielded | 4.0.1 | @midnightntwrk |
@midnightntwrk/wallet-sdk-unshielded-wallet | 4.0.1 | @midnightntwrk |
@midnightntwrk/wallet-sdk-dust-wallet | 5.1.0 | @midnightntwrk |
@midnightntwrk/wallet-sdk-hd | 4.0.0 | @midnightntwrk |
@midnightntwrk/wallet-sdk-address-format | 4.0.1 | @midnightntwrk |
@midnightntwrk/wallet-sdk-abstractions | 3.0.0 | @midnightntwrk |
@midnightntwrk/testkit-js | 5.0.2 | @midnightntwrk |
@midnightntwrk/midnight-js-compact | 5.0.2 | @midnightntwrk |
npm install --save-exact \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected] \
@midnightntwrk/[email protected]
Removed — do not install
| Package | Why / replacement |
|---|---|
@midnight-ntwrk/midnight-js-network-id | setNetworkId removed in Midnight.js 5; networkId lives in providers.config / wallet configuration |
@midnight-ntwrk/ledger-v8 | replaced by @midnightntwrk/ledger-v9; mainnet no longer decodes Ledger 8 transactions |
@midnight-ntwrk/wallet-api | superseded by the Wallet SDK 2.x facade |
@midnight-ntwrk/zswap | superseded by ledger-v9 / Wallet SDK 2.x |
@midnightntwrk/midnight-js-ledger | never published; ledger types come from @midnightntwrk/ledger-v9 |
Related skills
| Task | Skill |
|---|---|
| Check a project against this set | midnight-doctor/ |
| Decode a version-mismatch error | midnight-common-errors/ |
| Upgrade procedure and version traps | testing/ |
Related skills
Midnight Environment Setup
Automatically prepare a Midnight dev environment — Compact, PATH, Docker, proof server, and VS Code extension. Run before building or deploying.
Why Midnight
What Midnight is, why it exists, and how it works — public/private state, selective disclosure, and ZK proofs.
ZK vs FHE vs MPC
Compare ZK, FHE, and MPC for privacy-focused DApps — tradeoffs, platforms, and why Midnight uses zk-SNARKs.
Compact
The Compact smart contract language for Midnight Network. TypeScript-like DSL that compiles to ZK circuits.