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

kaspa-wallet-standard

v0.3.0

Published

A proposed standard for dApp↔wallet interoperability on Kaspa: a provider interface plus an EIP-6963-style discovery handshake so any wallet can announce itself to any dApp. Zero dependencies.

Readme

Kaspa Wallet Standard

A proposed standard for dApp↔wallet interoperability on Kaspa. One tiny, zero-dependency handshake so any dApp can find any wallet — and any wallet can join every dApp — without either side hardcoding the other. Inspired by Ethereum's EIP-6963 and Solana's Wallet Standard.

Status: reference implementation of KIP-12 (draft, under revival). This standard has been folded into KIP-12, which is now the authoritative specification; this package implements it exactly — canonical names only (kaspa:provider announce, bare network ids, chainChanged). SPEC.md tracks the same contract. Versioning policy: SPEC §7.

npm install kaspa-wallet-standard

Why

Today every Kaspa dApp hardcodes each wallet's injected global (window.kasware, window.kastle, …) one at a time, and every new wallet has to lobby every dApp to be added. This package replaces that with a two-event handshake: wallets announce themselves, dApps request announcements. A wallet that ships this appears in every adopting dApp automatically; a dApp that ships this lists every present wallet — including ones that didn't exist when it was built.

Wallet side — announce yourself

import { announceKaspaWallet } from 'kaspa-wallet-standard';

announceKaspaWallet(
  {
    id: 'your-extension-id',            // wallet identifier (KIP-12 `id`)
    name: 'YourWallet',
    icon: 'data:image/svg+xml;base64,…', // data: URI only
    methods: ['kaspa:requestAccounts', 'kaspa:chainId', 'kaspa:signPskt'], // wire methods you serve
    uuid: crypto.randomUUID(),          // fresh per page load
    rdns: 'com.yourwallet',             // STABLE id — enables silent session restore after reload
  },
  provider,                              // your provider object (see below)
);

provider only needs requestAccounts(); everything else (getAccounts, getNetwork/switchNetwork, getPublicKey, signMessage, signPskt, events) is optional and capability-checked by the dApp. See SPEC §3.

If your wallet uses a request(method, params) bridge

Some wallets (e.g. Kastle) expose a single request() bridge instead of discrete methods. Wrap it in a thin object that satisfies the interface — a few lines:

const w = window.yourwallet; // { request(method, params), on, removeListener }
const provider = {
  requestAccounts: () => w.request('kas:connect').then(() => w.request('kas:get_account')).then(a => [a.address]),
  getAccounts:     () => w.request('kas:get_account').then(a => [a.address]).catch(() => []),
  getNetwork:      () => w.request('kas:get_network'),
  switchNetwork:   (id) => w.request('kas:switch_network', id),
  getPublicKey:    () => w.request('kas:get_account').then(a => a.publicKey),
  signMessage:     (m) => w.request('kas:sign_message', m),
  signPskt: ({ txJsonString, options }) => w.request('kas:sign_tx', {
    networkId: /* whatever id YOUR bridge expects — this is the wallet's own dialect */ 'testnet-10',
    txJson: txJsonString,
    scripts: options.signInputs.map(s => ({ inputIndex: s.index, scriptHex: '', signType: 'All' })),
  }),
  on: w.on?.bind(w),
  removeListener: w.removeListener?.bind(w),
};
announceKaspaWallet(info, provider);

No dependency? ~10 lines of raw JS

The package is a convenience, not a requirement. The handshake is small enough to inline:

const detail = Object.freeze({
  info: Object.freeze({ uuid: crypto.randomUUID(), name: 'YourWallet', icon: 'data:…', rdns: 'com.yourwallet' }),
  provider: window.yourwallet,
});
const announce = () => window.dispatchEvent(new CustomEvent('kaspa:provider', { detail }));
window.addEventListener('kaspa:requestProvider', announce);
announce();

dApp side — discover wallets

import { requestKaspaWallets } from 'kaspa-wallet-standard';

const wallets = new Map(); // dedupe by rdns ?? uuid
const unsubscribe = requestKaspaWallets(({ info, provider }) => {
  wallets.set(info.rdns ?? info.uuid, { info, provider });
  renderWalletPicker([...wallets.values()]); // each has info.name, info.icon, and provider
});
// keep the subscription alive for the page lifetime to catch late-injecting wallets

Then on click: const [address] = await provider.requestAccounts();. Capability-check optional methods before using them. requestKaspaWallets already strips any non-data: info.icon for you (a remote URL is a tracking/spoofing vector), so what reaches your callback is safe to render. The announce is not an identity proof, though — any script can announce any name/rdns, so require an explicit user connect before signing and treat silent getAccounts() restore as display-only. See SPEC §8.

Who's using it

  • KRON — native-L1 Kaspa launchpad + DEX. First production adopter; consumes the discovery handshake and ships built-in adapters for KasWare and Kastle behind this provider interface.

Using it in your wallet or dApp? Open a PR to add yourself.

Status & contributing

This package is the reference implementation of KIP-12, the (draft) Kaspa wallet provider and discovery standard — the original draft lives at kaspanet/kips#21 and a revived, consolidated revision is being prepared with the original authors. The bar for ratification: the handshake proven across at least two independently-developed wallets. If you're a wallet or dApp author, review happens on the KIP; implementation issues are welcome here. See SPEC.md for the contract, security model, and versioning policy.

License

MIT