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

@hyperbitjs/message

v3.0.1

Published

![Hyperbit Message Banner](https://github.com/hyperbit-dev/message/raw/master/media/repo-banner.png)

Readme

@hyperbitjs/message

Hyperbit Message Banner

Hyperbit - Message

JavaScript functions for signing and verifying messages.

Installation

npm install @hyperbitjs/message

Usage

Sign a message using a private key

import { rvn } from '@hyperbitjs/chains';
import { sign } from '@hyperbitjs/message';

// Wallet Import Format (WIF) format
const privateKey =
  '963523425d5de8ad42320df7ec9ba0e7f15783914da16e0aff93df20c7b668fb';
const message = 'This is an example of a signed message.';

const signature = sign({ message, privateKey, network: rvn.mainnet });
// Expected Result: IIHJVUBhHEnGXun89PyIyoua265DKhACWFxG3LRAJTz+S03huR+vIaWhgJPYDoxAlS/EFN7nqydAfP6n+UBDvdY=

Sign a message using a private key WIF

import { rvn } from '@hyperbitjs/chains';
import { sign } from '@hyperbitjs/message';

// Wallet Import Format (WIF) format
const privateKeyWIF = 'T85xhCTbfJnMW4a8qB4ubAFVgshrDdU9jcDmrSgNntTp6YSrub7M';
const message = 'This is an example of a signed message.';

const signature = sign({ message, privateKeyWIF, network: rvn.mainnet });
// Expected Result: IIHJVUBhHEnGXun89PyIyoua265DKhACWFxG3LRAJTz+S03huR+vIaWhgJPYDoxAlS/EFN7nqydAfP6n+UBDvdY=

Verify a message

import { verify } from '@hyperbitjs/message';

const address = '<public_address_of_private_key_wif>';
const message = 'This is an example of a signed message.';
const signature = '<generated_signature_from_sign>';

const isValid = verify({ address, message, signature });

Full Example

import { Mnemonic } from '@hyperbitjs/mnemonic';
import { sign, verify } from '@hyperbitjs/message';
import { ltc } from '@hyperbitjs/chains';

const mnemonic = new Mnemonic({ network: ltc.main });
const addresses = mnemonic.generateAddresses();

const { address, privateKey } = addresses[0].external;
const network = ltc.main;
const message = 'This is an example of a signed message.';

const signature = sign({
  privateKey,
  message,
  network,
});

const isValid = verify({
  message,
  address,
  signature,
  network,
});

console.log('isValid', isValid);
// Expected Output: true

License

MIT License

Overview

This project lives at message and is part of the broader multi-project workspace. Description: No description provided yet.

Purpose

  • Deliver the core capability owned by this project.
  • Provide stable commands and interfaces for other apps/packages in the workspace.
  • Keep implementation details localized so changes stay maintainable.

Architecture Notes

  • Type: Project
  • Package manager metadata source: package.json
  • Runtime entry hints: dist/index.cjs

Setup

  1. Install dependencies from this directory:
npm install
  1. Run key scripts as needed (see script table below).

NPM Scripts

| Script | Command | |---|---| | build | vite build | | type-check | tsc --noEmit | | lint | eslint . --max-warnings 0 | | lint:fix | eslint . --fix && prettier --write . | | format | prettier --write . | | format:check | prettier --check . | | test | vitest --run | | test:watch | vitest | | validate | npm run type-check && npm run lint && npm run test | | prepublishOnly | npm run build && npm run validate |

Dependencies

Production

  • @hyperbitjs/chains: file:../chains
  • @hyperbitjs/coinkey: *
  • bitcoinjs-message: *
  • ecpair: *
  • tiny-secp256k1: *

Development

  • @types/node: ^20.10.0
  • @typescript-eslint/eslint-plugin: ^7.0.0
  • @typescript-eslint/parser: ^7.0.0
  • eslint: ^8.56.0
  • prettier: ^3.3.3
  • typescript: ^5.3.3
  • vite: ^5.4.21
  • vitest: ^1.6.1

Configuration

  • Primary config source: package.json
  • No .env.example detected in this directory.
  • Add project-specific operational notes to MEMORY_BANK.md.

Development Workflow

  1. Make changes in focused modules.
  2. Run the smallest relevant script/test first.
  3. Run full validation scripts before merging.
  4. Update this README and memory bank whenever behavior/contracts change.

Testing and Validation

  • Prefer script-driven checks from the table above (for example: test, build, lint).
  • If this project has no tests yet, add smoke checks and document them in MEMORY_BANK.md.

LLM Context

When using an LLM coding assistant in this folder, always include:

  • Exact target file paths and expected behavior changes.
  • Validation command(s) run after edits.
  • Runtime/config assumptions (.env, API keys, ports, external services).

Memory Bank

See MEMORY_BANK.md for operational context, commands, and troubleshooting notes.