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

@iexec-nox/nox-hardhat-plugin

v0.2.0

Published

Hardhat 3 plugin that spins up the Nox offchain stack and deploys NoxCompute for local end-to-end tests.

Readme

@iexec-nox/nox-hardhat-plugin

Hardhat 3 plugin that spins up the Nox offchain stack (KMS, ingestor, runner, handle gateway, NATS, S3) with Docker Compose and injects the NoxCompute contract bytecode on the local node, so tests and scripts can exercise the full Nox protocol end-to-end.

Installation

pnpm add -D @iexec-nox/nox-hardhat-plugin

@iexec-nox/nox-protocol-contracts is a required peer dependency: the plugin deploys the exact NoxCompute version your project depends on, so it must be declared as a direct dependency of your own project (not just pulled in transitively). Installing without it fails the first nox.connect() call against an edr-simulated network with a clear error, as soon as the local stack tries to start.

In your hardhat.config.ts:

import { defineConfig } from "hardhat/config";
import hardhatToolboxViemPlugin from "@nomicfoundation/hardhat-toolbox-viem";
import noxPlugin from "@iexec-nox/nox-hardhat-plugin";

export default defineConfig({
  plugins: [hardhatToolboxViemPlugin, noxPlugin],
  solidity: "0.8.29",
  networks: {
    default: {
      type: "edr-simulated",
      chainId: 31337, // nox plugin supports hardhat node default chain id
    },
  },
});

Usage

The plugin provides Nox methods (encryptInput, decrypt and publicDecrypt) for a NetworkConnection.

Enable the plugin in your hardhat.config.ts

import { defineConfig } from "hardhat/config";
import noxPlugin from "@iexec-nox/nox-hardhat-plugin";

export default defineConfig({
  plugins: [noxPlugin],
});

Use Nox in your hardhat scripts

import { network } from "hardhat";
import { nox } from "@iexec-nox/nox-hardhat-plugin";

const connection = await network.getOrCreate();
const { encryptInput, decrypt, publicDecrypt } = await nox.connect(connection);

Using with hardhat default edr-simulated network

The first call to nox.connect with the hardhat default network brings up a local Nox stack attached to the network:

  1. NoxCompute is injected at a predefined address
  2. a RPC relayer is attached to the connection
  3. Nox offchain stack is started via Docker Compose against the RPC relayer

ℹ️ The stack is started once per independant NetworkConnection; use network.getOrCreate() to reuse the existing connection across test suites.

Known limitation: using multiple instances of edr-simulated network in parallel is currently not supported.

Connecting to an existing Nox stack

Instead of the plugin's own local stack, nox.connect() can target a Nox stack that's already running elsewhere (a private testnet, a public network, or just a longer-lived local stack you kept up on purpose). Declare it on the network itself:

export default defineConfig({
  plugins: [noxPlugin],
  networks: {
    existingStack: {
      type: "http",
      url: "https://rpc.example.com",
      nox: {
        noxComputeAddress: "0x...",
        handleGatewayUrl: "https://gateway.example.com",
      },
    },
  },
});

Both fields are required together, and this is purely declarative — the plugin never deploys, discovers, or verifies the stack behind these values; it assumes it already exists and is reachable:

const connection = await network.getOrCreate({ network: "existingStack" });
const { noxComputeAddress, handleGatewayUrl } = await nox.connect(connection);

Only http networks can carry a nox config — edr-simulated networks are re-created fresh on every network.create() call, so there's nothing "already running" for them to point at; they can only use the plugin's own local stack.

The nox runtime API

import { network } from "hardhat";
import { nox } from "@iexec-nox/nox-hardhat-plugin";

const connection = await network.getOrCreate();

const {
  noxComputeAddress,
  handleGatewayUrl,
  encryptInput,
  decrypt,
  publicDecrypt,
} = await nox.connect(connection);

await encryptInput(value, solidityType, applicationContract);
await decrypt(handle);
await publicDecrypt(handle);