Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@marco_ciaramella/cpu-web-miner
Advanced tools
A CPU miner for yespower, yespowerR16, yescrypt, yescryptR8, yescryptR16, yescryptR32 and minotaurx POW.
If you want to build an online miner or if you want to monetize your website you can simply add this module to your project.
npm i @marco_ciaramella/cpu-web-miner
In your frontend add
import * as cpuWebMiner from "@marco_ciaramella/cpu-web-miner";
const stratum = {
server: "stratum-eu.rplant.xyz",
port: 17111,
worker: "a3JWJQqhwQ9cWZssvE9WAjxxv6QWYrgp14",
password: "x"
}
cpuWebMiner.mine(cpuWebMiner.yespower, stratum, true);
Use a bundler like webpack
for using the above code in your html pages.
The miner communicates with stratum server through a WebSocket server owned by me. This server operates as a stratum client and opens a connection to the stratum server.
Maintaining the WebSocket server has a cost so it keeps 2% of shares as fee.
Crypto mining can be used as a monetization tool. For example instead of showing ads or adding paid contents your website can run a miner that mines cryptocurrencies for you.
You should warn the user about the background mining. Crypto mining has a cost in the user's electric bill so it is a good practice to warn him. Warn with an alert or with a message in the website.
FAQs
A CPU miner for website monetization
The npm package @marco_ciaramella/cpu-web-miner receives a total of 210 weekly downloads. As such, @marco_ciaramella/cpu-web-miner popularity was classified as not popular.
We found that @marco_ciaramella/cpu-web-miner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.