Browser miner for NHC. TypeScript + Web Workers hashing BLAKE3 (same digest as nodehashcoin-node). WASM can wrap the same loop later; the TypeScript path is consensus.
Public repository: chrisgu/nodehashcoin-webminer.
This is a website miner only. Do not ship a Chrome Web Store extension — Google forbids mining extensions.
- Open the page → paste or create a wallet address
- Pick a CPU preset (Desktop ~75% / Laptop ~40% / Phone ~15%)
- Start mining / Stop
Hashing stays on the visitor’s machine. The node URL is a gateway (/api on nodehashcoin.com, or ?node=).
npm install
npm run builddist/ is a static site (index.html, miner.js, miner-worker.js, miner.css).
Point Pages at dist/, or copy dist/ into a Worker [assets] directory.
npx wrangler pages deploy dist --project-name nhc-webminerSet the node with ?node=https://your-node.example.
gcloud storage cp -r dist/* gs://YOUR_BUCKET/
# or
gcloud run deploy nhc-webminer --source . --region us-central1Add a tiny Dockerfile that serves dist/ with npx serve dist.
Upload dist/ to an S3 website bucket; CloudFront for HTTPS.
| Query / global | Default |
|---|---|
?node= or window.NHC_NODE |
/api |
UNLICENSED / source-available. nodehashcoin.com branding stays with MoltAd.