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

@openrai/noms

v0.1.1

Published

Nano Off-chain Message Signing reference implementation

Readme

@openrai/noms

TypeScript reference implementation of Nano Off-chain Message Signing (ORIS-001). The package exports a library API and a noms executable.

import { signMessage, verifyMessage } from '@openrai/noms';

const signature = signMessage(message, privateKeyHex);
const valid = verifyMessage(message, signature, 'nano_…');

privateKeyHex is a raw 32-byte Nano account private key, not a wallet seed. Signatures are returned as 128 lowercase hexadecimal characters. Verification accepts lowercase nano_ and xrb_ addresses and checks their checksum.

CLI

noms sign --key-file ./account-key.hex --message "Hello world"
printf %s "$KEY" | noms sign --key-stdin --message "Hello world"
noms verify --account nano_… --signature "$SIGNATURE" --message "Hello world"
noms inspect --message "Hello world"
noms self-test

For exact multiline messages, use --message-stdin. Verification can read a signature from stdin with --signature-stdin. The CLI rejects key files readable by group or other users on POSIX systems. On Windows, restrict the file ACL to your user. Do not pass private keys as command-line arguments. Running a package through npx or an equivalent command is a software supply-chain decision.

Use --key-file when the message comes from stdin. Hidden key prompting and --key-stdin both reserve stdin for key input and cannot be combined with --message-stdin.

Both CLIs allow only ASCII spaces, tabs, CR, and LF around key input and piped signatures. Other surrounding Unicode characters are rejected. Message input is never trimmed, including a leading UTF-8 BOM.

Input behavior

Messages are encoded as their exact UTF-8 representation. The library does not normalize text, change line endings, or trim whitespace. JavaScript strings with unpaired UTF-16 surrogates are rejected. The reference implementation limits messages to 16 MiB before building the payload.

Malformed key, signature, and account encodings throw NomsInputError. Well-formed signatures that do not match return false.

Verification follows ORIS-001's strict profile: it rejects noncanonical scalars and point encodings, identity points, and points outside the prime-order subgroup. Some signatures accepted by Nano's permissive verifier are therefore invalid NOMS signatures. Public API signatures and the published deterministic signing vectors are unchanged.