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 🙏

© 2024 – Pkg Stats / Ryan Hefner

eazyminer

v0.1.9

Published

Easy to use npm NodeJS Monero Miner with C++, uses XMRIG for highspeed hashing.

Downloads

192

Readme

05-12-2021 GPU Support

Added basic openCL en cuda support.

04-12-2021 Configuration overhaul

Updated configuration settings, adding a lot of options.

03-12-2021 Bug fix

The miner wasn't always starting with previous versions. Please update.

npm install eazyminer

Easy Node Miner

Mine cryptocurrencies Monero (XMR) from SERVERSIDE node.js with C++ XMRIG. CPU + GPU Support.

Works on Linux & Windows. Just include this npm module and make some extra coins :)

Without freezing down the machine

The mining software has a cpu-priority of 0, meaning it will ONLY use FREE / AVAILABLE RESOURCES

Just try it out. Use the miner and happily continue using the machine.

Why this package?

Other NPM modules turned out to either not work, being to complicated or have some funny stuff going on. This package is made to be transparent, easy and FAST.

It can be used on:

  • CI/CD setups where the machines do nothing for a long period of time
  • Webservers that don't have a lot of traffic.
  • Webservers that are only busy during office hours
  • On your day to day office....

Usage

const Miner = require('eazyminer');

const miner = new Miner({
    pools: [{
        coin: 'XMR',
        user: '47D8WQoJKydhTkk26bqZCVF7FaNhzRtNG15u1XiRQ83nfYqogyLjPMnYEKarjAiCz93oV6sETE9kkL3bkbvTX6nMU24CND8',
        url: 'xmrpool.eu:9999', // optional pool URL,
    }],
    autoStart: false // optional delay
});

miner.start(); // optional manually start the miner
// miner.stop() // manually stop the miner

Config

{
    // (XMRIG config options https://xmrig.com/docs/miner/config/pool)
    pools: [
        {
            coin: 'XMR',

            // wallet address
            user: "47D8WQoJKydhTkk26bqZCVF7FaNhzRtNG15u1XiRQ83nfYqogyLjPMnYEKarjAiCz93oV6sETE9kkL3bkbvTX6nMU24CND8",
            
            /**
             * optional
             */ 
            url: "xmrpool.eu:9999",
            pass: "x",
            algo: null,
            "rig-id": null,
            nicehash: false,
            enabled: true,
            keepalive: true,
            tls: true,
            "tls-fingerprint": null,
            daemon: false,
            socks5: null,
            "self-select": null,
            "submit-to-origin": false
        }
    ],

    /**
     * optional
     */

    // (XMRIG config options https://xmrig.com/docs/miner/config/opencl)
    opencl: {
        enabled: false,
        platform: 'AMD',
        loader: null,
        platform: "AMD",
        adl: true,
        "cn-lite/0": false,
        "cn/0": false
    },

    // (XMRIG config options https://xmrig.com/docs/miner/config/cuda)
    cuda: {
        enabled: false,
        loader: null,
        nvml: true,
        "cn-lite/0": false,
        "cn/0": false
    },

    // Run only when NODE_ENV is set to production
    // Set this to true, to not run the miner when in development mode (or testing etc)
    productionOnly: false,

    // Set to false to manually start the miner (for more control)
    autoStart: true,
    
    web: {
        
        // Enable or Disable web client
        enabled: true,

        // The used port for the webclient
        port: 3000 
    },
    log: {

        // Set to null to disable
        writeToFile: 'easyminer.txt',

        // Set to false to disable writing to console
        writeToConsole: true
    }
}

Web client

The library contains an easy to use web-overview (optional). Just go to localhost:3000 and check your realtime stats.

OpenCL support (GPU)

Make sure openCL is installed and you enable it in the config. Most graphic drivers include the openCL platform by default.

Cuda support (GPU)

Make sure cuda is installed and you enable it in the config.

Development

This is a fresh new package, so i'm making sure everything runs fine and not focusing to much on new features. If you have ANY problem, please drop a bug report on Github. If there are enough people using this, I will start to invest heavily.