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

@onekeyfe/kaspa-wasm

v1.0.3-alpha.1

Published

KASPA WASM bindings

Readme

@onekeyfe/kaspa-wasm

OneKey's repackaging of the official Kaspa WASM32 SDK (web target), adapted so it loads across all OneKey platforms — including React Native, where the stock package cannot load.

Where the binary comes from (NOT built from this repo)

The wasm binary and JS glue are not compiled from this repository's Rust source. They are taken from the official kaspanet/rusty-kaspa GitHub Release:

  • Releases: https://github.com/kaspanet/rusty-kaspa/releases
  • Asset: kaspa-wasm32-sdk-v<tag>.zip → use the optimized web/kaspa/ folder

Current binary: kaspa v2.0.1 (post-Crescendo — binds the transaction payload into the signing hash and ships the wRPC RpcClient). The embedded build path is /home/runner/..., i.e. kaspanet's own CI build.

⚠️ Do NOT take this from npm. The upstream npm package kaspa-wasm32-sdk is stale (stuck at 0.15.2) — that is why older @onekeyfe/kaspa-wasm builds were a pre-payload 0.15.2 binary. Always take the prebuilt from the GitHub Release assets.

What OneKey changes, and why

The stock package loads the wasm via fetch(new URL('kaspa_bg.wasm', import.meta.url)), which fails in React Native (no import.meta.url asset resolution, can't fetch a local .wasm) and in some bundlers. OneKey rewrites the loader so the wasm is embedded and require()d, never fetched:

  1. rename kaspa_bg.wasmkaspa_bg.wasm.bin (so bundlers don't emit it as an asset)
  2. add kaspa_bg.wasm.js — the wasm inlined as base64, exported via require()
  3. patch kaspa.js __wbg_load to instantiate from that inline base64 (the fetch / instantiateStreaming path is disabled)

Updating to a newer kaspa release

  1. Download kaspa-wasm32-sdk-v<tag>.zip from the kaspanet release.
  2. From the zip's web/kaspa/, repackage into this folder:
    • copy kaspa.js, kaspa.d.ts, kaspa_bg.wasm.d.ts, LICENSE
    • cp kaspa_bg.wasm kaspa_bg.wasm.bin
    • regenerate kaspa_bg.wasm.js = module.exports = () => Buffer.from("<base64 of .bin>", "base64")
    • re-apply the three kaspa.js patches above
  3. Bump version in package.json.
  4. Do the same for ../npm-node from the zip's nodejs/kaspa/ (node loads the raw .wasm via fs, so it needs no inline patch — just copy the files).
  5. Commit, then trigger the publish-npm-package GitHub Action (workflow_dispatch).