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

metaname-client

v0.0.2

Published

A nodejs client for metaname

Readme

metaname

Metaname is an open protocol for linking a paymail to a display name for use in applications on BSV. See metaname.network.

Rather than providing a public API endpoint for getting metanames (which are only 50 bytes in length max), metaname is also a Nodejs package that uses Planaria endpoints to get metanames for your backend. If you aren't using Node, consider using a Google Cloud Function or equivalent service to create your own API.

Protocol Spec

OP_FALSE 
OP_RETURN 
14FLDQhDGmxKCsX79qEtMm36YcdUVyGQm5 
[name] utf-8 encoded, 50 chars max
[paymail] 
[pubkey] 
[signature]

Installation

npm i --save metaname-client

Usage

metaname = require('metaname-client') 
 
var token = 'YOUR PLANARIA API TOKEN'

//gets the *latest* names for a list of paymails.  
metaname.getNames(token, ['[email protected]']).then(names=>console.log(names)) 
 
function process(name){
    console.log(name)
} 
 
function callback(){
    console.log('switched to listen mode')
}

//will call process on all names in the history of the metaname protocol
//when finished crawling, it will start listening for new names using bitsocket
metaname.getAllNames(token, process, callback) 

Name objects are returned in the following format. They have been verified against the signature included in the transaction. However, this library does not check whether the public key is the correct one for the corresponding paymail. The public key is included so you can check yourself.

{
    name: 'Jonathan Aird',
    paymail: '[email protected]',
    publicKey:'032107bc529a107da5ac284bb2a582d8ae559bd5701d80ecb2341c609bb7765c50',
    tx:'4f44f9079a6bebd11b9f9031fa98a9248d20e1723e62e80af673fbb2130d227e'
}