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

@kyc-rip/xmr-bio-sdk

v0.2.0

Published

Client for the xmr.bio identity layer — resolve verified Monero addresses, verify signed resolutions, and register agents.

Readme

@kyc-rip/xmr-bio-sdk

The address book for the Monero machine economy.

Resolve an @handle to a verified Monero address, check the ed25519 signature on the resolution, and register an autonomous agent — in a few lines. Zero runtime deps except @noble/curves. Runs in Node 18+, Bun, Deno, browsers, and Cloudflare Workers.

npm install @kyc-rip/xmr-bio-sdk

Resolve a handle → verified address

import { XmrBioClient } from '@kyc-rip/xmr-bio-sdk';

const bio = new XmrBioClient();                 // → https://api.kyc.rip/v1/bio
const id = await bio.resolve('xbtoshi');        // fetches + verifies the signature

id.address;        // "89fM69NVioz94JQrJFLGPDa8..."
id.display_name;   // "CyberSatoshi 𓆙 - @XBToshi"
id.verified_at;    // ISO timestamp of X-ownership proof
id.proofs;         // [{ type: 'nostr', identifier: 'npub1…' }, …]

resolve() fetches the service signing key from /meta and verifies the ed25519 signature over the payload before returning. For stronger guarantees, pin the key out-of-band:

const id = await bio.resolve('xbtoshi', { trustedKey: '<pinned signing key hex>' });
// or just the address:
const addr = await bio.resolveAddress('xbtoshi');

Verify a resolution yourself

If you fetch /resolve/{handle} directly, verify it with the standalone helper. Always pass a trustedKey you obtained out-of-band — never trust the response's own public_key blindly.

import { verifyResolution } from '@kyc-rip/xmr-bio-sdk';
const identity = verifyResolution(signedResolution, trustedKeyHex); // throws if invalid

Register an autonomous agent

Agents don't own an X account — they prove possession of an ed25519 key. The agent-* namespace can never collide with an X handle (X forbids hyphens).

import { generateAgentKey, registerAgent } from '@kyc-rip/xmr-bio-sdk';

const key = generateAgentKey();                 // persist key.privateKey securely!
await registerAgent({
  handle: 'agent-mybot',
  address: '4YourMoneroAddress...',
  privateKey: key.privateKey,
  displayName: 'My Bot',
});
// → now resolvable at https://xmr.bio/agent-mybot and via bio.resolve('agent-mybot')

OpenAlias

const oa = await bio.openalias('xbtoshi');
// { fqdn: 'xbtoshi.xmr.bio', type: 'TXT', content: 'oa1:xmr recipient_address=…;' }

CLI

The package ships an xmr-bio binary — resolve identities from the terminal or a shell script (no install needed via npx):

npx @kyc-rip/xmr-bio-sdk resolve xbtoshi
npx @kyc-rip/xmr-bio-sdk address xbtoshi           # bare address — pipe it into a wallet
npx @kyc-rip/xmr-bio-sdk openalias xbtoshi
npx @kyc-rip/xmr-bio-sdk meta
npx @kyc-rip/xmr-bio-sdk agent-register agent-mybot 4YourAddr   # prints a fresh key

# scriptable: pay whoever @alice is, verified end-to-end
xmr-wallet transfer "$(npx -y @kyc-rip/xmr-bio-sdk address alice)" 0.1

Flags: --base <url>, --json, --key <hex>.

API

| Method | Returns | | --- | --- | | new XmrBioClient({ baseUrl?, fetch? }) | client | | bio.resolve(handle, { trustedKey? }) | ResolvedIdentity (signature verified) | | bio.resolveAddress(handle) | verified address string | | bio.resolveSigned(handle) | raw { payload, signature, public_key } | | bio.profile(handle) | PublicProfile | | bio.openalias(handle) | OpenAlias TXT record | | bio.meta() / bio.signingKey() | service descriptor / signing key | | verifyResolution(signed, trustedKey) | ResolvedIdentity or throws | | generateAgentKey() | { privateKey, publicKey } | | registerAgent(input) | { success, handle, profile_url } |

Runnable examples in examples/.

License

MIT · Part of the kyc.rip ecosystem.