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

@qntx/kobe

v4.0.0

Published

Multi-chain HD wallet SDK in TypeScript

Readme

@qntx/kobe

Multi-chain HD wallet SDK in TypeScript — the TypeScript twin of the kobe-* Rust crates. Capabilities shared with Rust are tracked in parity.json and tested against the same vectors in vectors/.

Subpaths

The package is subpath-only; there is no root entry.

@qntx/kobe/core

BIP-39 / BIP-32 wallet core:

  • Wallet — holds a normalized English mnemonic and the 64-byte BIP-39 seed in a module-scoped WeakMap. Construct with Wallet.generate(), Wallet.fromMnemonic(phrase, passphrase?), Wallet.fromMnemonicExpanded(phrase, passphrase?) (English 4-letter prefix expansion), or Wallet.fromEntropy(entropy, passphrase?). wordCount, hasPassphrase, mnemonic(), mnemonicBytes(), deriveSecp256k1(path) and dispose() (wipes both buffers; later access throws KobeError("input")). toString() / toJSON() are redacted; secrets live in private state, so util.inspect never shows them. id() returns a stable, non-secret wallet identifier — the first 16 hex chars of SHA-256("kobe/wallet-id/v1" ‖ pubkey), where pubkey is the compressed BIP-32 master public key. Identical across the Rust and TS implementations (vectors/core/wallet-id.json).
  • isValidMnemonic(phrase), expandMnemonic(phrase).
  • Types: KobeError (code: KobeErrorCode), GenerateWalletOptions, WordCount, DerivedSecp256k1Key, DerivedAccount, DerivedPublicKey.

@qntx/kobe/nostr

NIP-06 Nostr derivation:

  • NostrDeriver — new NostrDeriver(wallet), derive(account), deriveAt(path), deriveMany(start, count).
  • NostrAccount — DerivedAccount plus nsec() / npub() (NIP-19); the nsec string is computed on demand, never held.

@qntx/kobe/vault

Versioned envelope encryption and key derivation (the @qntx/kobe twin of the kobe-vault crate):

  • seal(key, plaintext, context, rng?) / open(key, sealed, context) — envelope v1: AES-256-GCM, 12-byte nonce from rng (defaults to crypto.getRandomValues), [0x01] || nonce || ciphertext || tag bytes, and AAD [0x01] || UTF-8(context).
  • derivePasswordKey(password, salt, iterations, pbkdf2?) — PBKDF2-HMAC-SHA256 over UTF-8(NFKC(password)); async because the default is noble pbkdf2Async and Web consumers can inject WebCrypto.
  • derivePrfKey(prfOutput, info) — HKDF-SHA256 over a 32-byte PRF output.
  • passkeyWallet(prfOutput) — a 12-word Wallet from a 32-byte PRF output.
  • VAULT_VERSION (1), PASSWORD_ITERATIONS (600_000).

Runtime requirements

Platform-neutral (Node, browsers, Hermes): the library expects TextEncoder and String.prototype.normalize (NFKD; NFKC for derivePasswordKey) to exist. crypto.getRandomValues is required only by Wallet.generate and seal without a custom rng option.

License

MIT OR Apache-2.0