npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kuiralabs/midnight-engine-rc

v0.1.0

Published

The Midnight CLI's engine for the ledger-9 SDK set (wallet SDK 2.0.0, ledger-v9 1.0.0, midnight-js 5.0.0): everything the CLI does with that SDK set, behind the engine interface

Readme

@kuiralabs/midnight-engine-rc

The Midnight CLI's engine for the ledger-9 SDK set (wallet SDK 2.0.0, ledger-v9 1.0.0, midnight-js 5.0.0, compact-runtime 0.21.0, compact-js 3.0.0, onchain-runtime-v4 4.0.0): everything the CLI packages do with that SDK set (wallets, the ledger, contracts, readers, the account package) behind core's engine interface. It runs mainnet, preprod, preview and a local network (undeployed). The SDK set is still named rc in the engine interface and the package name, from when it was built on the SDK's release candidates. Only an engine imports the SDK; the other packages reach it through the engine your host loads.

Install

npm install @kuiralabs/midnight-cli-core @kuiralabs/midnight-engine-rc

Install with npm 11 or older (npm 12 no longer reads a package's shrinkwrap): this package ships an npm-shrinkwrap.json that pins its SDK set, and npm 11 honours it, so it gets exactly the SDK it was tested with (one copy of each ledger). An install that isn't that tree (bun's installer ignores the shrinkwrap and resolves the packages again) is refused before any SDK module loads, with MIXED_SDK_LAYOUT and the npm command; bun can run what npm installed.

Entry points

| Import | What it holds | |---|---| | @kuiralabs/midnight-engine-rc | createRcEngine(host): the engine, for a host's engineLoader |

Every export and its signature is in api-report.md.

Codes

This package owns no codes of its own. The SDK's errors are read once, here, and given core's codes (PROOF_FAILURE, TX_REJECTED, STALE_UTXO and the rest, in core's README), so a program never matches the SDK's messages.

Loading it

A host loads the engine the first time a call needs one, for every network: its loader is given the SDK set (rc) and the host.

import { homedir } from 'node:os';
import { join } from 'node:path';
import { createHost } from '@kuiralabs/midnight-cli-core';

// The loader imports the engine only when a call first needs it.
const host = createHost({
  paths: { stateRoot: join(homedir(), '.my-app'), home: homedir() },
  engineLoader: async (_set, host) => (await import('@kuiralabs/midnight-engine-rc')).createRcEngine(host),
});

const engine = await host.engines.for('undeployed');
const seed = Buffer.from(process.env.WALLET_SEED, 'hex');
console.log(engine.set, engine.keys.unshieldedAddress(seed, 'undeployed'));

With WALLET_SEED a seed in hex, it prints rc and the wallet's first address on undeployed (mn_addr_undeployed1…). A test in mn runs the block above as it is written.