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

noirnia-cli

v0.1.10

Published

CLI Development Toolkit for Noir

Downloads

5

Readme

noirnia-cli

Getting started

Ensure you have the latest version of bun:

bun upgrade

Install dependencies:

bun install

To run:

bun run main.ts
bun run main.ts
Usage: noirnia [options] [command]

CLI Development Toolkit for Noir

Options:
  -V, --version      output the version number
  -h, --help         display help for command

Commands:
  codegen [options]                   Generate contract interface for a given artifact
  codegen-contract [options] <n>      Generate contract interface for a contract by name
  batch-codegen [options] <dir>       Batch generate contract interfaces for Noir contracts
  build [options]                     Compile Noir contracts and copy target files to output directory
  help [command]                      display help for command

Current version: aztec-nargo 0.87.2

Installation Options

There are multiple ways to install and use noirnia-cli:

1. Local Installation (Recommended)

Install as a dependency in your project:

npm install noirnia-cli

Then add scripts to your package.json:

"scripts": {
  "noirnia": "node node_modules/noirnia-cli/dist/main.js",
  "batch-codegen": "node node_modules/noirnia-cli/dist/main.js batch-codegen",
  "codegen": "node node_modules/noirnia-cli/dist/main.js codegen",
  "build": "node node_modules/noirnia-cli/dist/main.js build"
}

This ensures everyone working on your project uses the same version of the CLI.

2. Using npx

You can use npx to run the tool without installing it:

npx noirnia-cli codegen your-artifact.json

3. Global Installation

Install globally to make the command available system-wide:

npm install -g noirnia-cli

Then you can use it from anywhere:

noirnia-cli codegen your-artifact.json

Generate contract interface

# Using local project scripts
npm run codegen artifacts/webauthn_authenticator-WebauthnModule.json
npm run codegen-contract identity -- --output ./src/generated
npm run batch-codegen ./contracts -- --output ./src/generated

# Or using direct run with bun
bun run main.ts codegen artifacts/webauthn_authenticator-WebauthnModule.json
bun run main.ts codegen-contract identity --output ./src/generated
bun run main.ts batch-codegen ./contracts --output ./src/generated

Using noirnia-codegen

The noirnia-codegen script provides a simplified interface:

# Generate for a specific contract
noirnia-codegen -identity

# Generate for all contracts with a custom output directory
noirnia-codegen -all -output ./src/artifacts

Compile Noir Contracts

The noirnia build command compiles Noir contracts and organizes the compiled artifacts:

# Compile all contracts
noirnia build

# Compile only contracts containing "identity"
noirnia build --contract identity

# Specify output directory for target files
noirnia build --output ./my-artifacts/target

# Enable debug output
noirnia build --debug

You can also use the direct noirnia-build script:

# Compile specific contract
noirnia-build -c identity

# Compile all contracts with custom output
noirnia-build -o ./my-artifacts/target

For more details, see the noirnia-build documentation.

Update Aztec Package Versions

The noirnia bump tool helps you update Aztec package dependencies across your project:

# Update from version 0.85.0-alpha-testnet.2 to 0.86.0-alpha-testnet.1
noirnia bump --oldVersion 0.85.0-alpha-testnet.2 --newVersion 0.86.0-alpha-testnet.1

# Check what would be updated without making changes
noirnia bump --oldVersion 0.85.0-alpha-testnet.2 --newVersion 0.86.0-alpha-testnet.1 --check

# Only update Nargo.toml files
noirnia bump --oldVersion 0.85.0-alpha-testnet.2 --newVersion 0.86.0-alpha-testnet.1 --onlyNargo

# Only update package.json files
noirnia bump --oldVersion 0.85.0-alpha-testnet.2 --newVersion 0.86.0-alpha-testnet.1 --onlyPackages

# Exclude specific packages from the update
noirnia bump --oldVersion 0.85.0-alpha-testnet.2 --newVersion 0.86.0-alpha-testnet.1 --excludePackages @aztec/test-pkg,@aztec/some-other-pkg

For more details, see the noirnia-bump documentation.

Publishing

To publish this package to npm:

# Login to npm
npm login

# Build and publish
npm publish

Troubleshooting

"var: command not found" or syntax errors when running globally installed package

If you see errors like these when running the globally installed binary:

/path/to/node_modules/.bin/noirnia: line 2: var: command not found
/path/to/node_modules/.bin/noirnia: line 3: var: command not found
...
/path/to/node_modules/.bin/noirnia: line 7: syntax error near unexpected token `('

This happens because the JavaScript file is being interpreted as a shell script. To fix this:

  1. Use the node prefix explicitly:

    node $(which noirnia) batch-codegen
  2. Or use npm scripts as shown above (recommended):

    "scripts": {
      "noirnia": "node node_modules/noirnia-cli/dist/main.js",
      "batch-codegen": "node node_modules/noirnia-cli/dist/main.js batch-codegen",
      "codegen": "node node_modules/noirnia-cli/dist/main.js codegen"
    }
  3. Or use npx to ensure proper invocation:

    npx noirnia-cli batch-codegen

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.