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

vue-kaspa

v0.1.16

Published

Vue 3 composables and Nuxt module for the Kaspa blockchain — powered by WASM

Downloads

192

Readme

vue-kaspa

Vue 3 composables and Nuxt module for the Kaspa blockchain — powered by WASM.

npm license

vue-kaspa wraps @vue-kaspa/kaspa-wasm with Vue 3 reactivity, giving you idiomatic composables to connect, query, track balances, build transactions, and manage keys — with full TypeScript support.

Features

  • useRpc — WebSocket RPC connection, 12 query methods, real-time event subscriptions
  • useKaspaRest — official REST API wrapper for txid lookup, balances, address history, and explorer data
  • useUtxo — real-time UTXO tracking with reactive balance (mature / pending)
  • useTransaction — estimate, build, sign, and submit transactions; UTXO compounding handled automatically
  • useCrypto — BIP-39 mnemonic, BIP-32 HD derivation, message signing, KAS ↔ sompi conversion, network-aware unit formatting
  • useNetwork — network switching (mainnet, testnet-10, testnet-12, simnet, devnet)
  • useWallet — KasWare/Kastle browser wallet integration
  • useBlockListener — raw new-block subscription helper
  • useTransactionListener — confirmed transaction tracking and sender address resolution
  • useVueKaspa — unified facade for the full app workflow
  • Nuxt 3 module — auto-imports, client-only plugin, SSR-safe out of the box
  • Vue DevTools — inspector panel and event timeline

Install

npm install vue-kaspa @vue-kaspa/kaspa-wasm

Quick start

Vue 3

// main.ts
import { createApp } from 'vue'
import { VueKaspa } from 'vue-kaspa'
import App from './App.vue'

createApp(App)
  .use(VueKaspa, { network: 'mainnet' })
  .mount('#app')
<script setup lang="ts">
import { useUtxo, useTransaction, useCrypto } from 'vue-kaspa'

const utxo = useUtxo()
const tx = useTransaction()
const crypto = useCrypto()

await utxo.track(['kaspa:qr...'])

const txIds = await tx.send({
  entries: utxo.entries.value,
  outputs: [{ address: 'kaspa:qdest...', amount: crypto.kaspaToSompi('10') }],
  changeAddress: 'kaspa:qr...',
  priorityFee: 1000n,
  networkId: 'mainnet',
  privateKeys: ['your-private-key-hex'],
})
</script>

Nuxt 3

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['vue-kaspa/nuxt'],
  kaspa: { network: 'mainnet' },
})

All composables are auto-imported — no explicit imports needed in your pages.

Vite configuration (required)

npm install -D vite-plugin-wasm vite-plugin-top-level-await
// vite.config.ts
import wasm from 'vite-plugin-wasm'
import topLevelAwait from 'vite-plugin-top-level-await'

export default defineConfig({
  plugins: [vue(), wasm(), topLevelAwait()],
  server: {
    headers: {
      'Cross-Origin-Embedder-Policy': 'credentialless',
      'Cross-Origin-Opener-Policy': 'same-origin',
    },
  },
  optimizeDeps: { exclude: ['@vue-kaspa/kaspa-wasm'] },
})

Documentation

Full docs at vue-kaspa.vercel.app

Peer dependencies

| Package | Version | |---|---| | vue | >=3.4.0 | | @vue-kaspa/kaspa-wasm | >=1.1.0 | | @nuxt/kit | ^3.0.0 (Nuxt module only) |

License

MIT