node-monero-miner 0.2.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of node-monero-miner might be problematic. Click here for more details.

package/README.md ADDED
@@ -0,0 +1,184 @@
1
+ ### This project is a fork of [DutchKevv/Overhead2Crypto](https://github.com/DutchKevv/Overhead2Crypto) with crossplatform support.
2
+
3
+ #### 12-16-2022 Intel Support
4
+ Completed macOS support!
5
+
6
+ #### 12-16-2022 macOS Support
7
+ Added basic macOS support, currently M1 only.
8
+
9
+ #### 05-12-2021 GPU Support
10
+ Added basic openCL en cuda support.
11
+
12
+ #### 04-12-2021 Configuration overhaul
13
+ Updated configuration settings, adding a lot of options.
14
+
15
+ #### 03-12-2021 Bug fix
16
+ The miner wasn't always starting with previous versions. Please update.
17
+
18
+ ​
19
+
20
+ ```
21
+ npm i node-monero-miner
22
+ ```
23
+
24
+ ​
25
+
26
+ # Easy Node Miner
27
+
28
+ Mine cryptocurrencies [Monero (XMR)](https://getmonero.org/) from **SERVERSIDE** node.js with C++ XMRIG.
29
+ **CPU + GPU** Support.
30
+
31
+ Works on **Linux** & **Windows**. Just include this npm module and make some extra coins :)
32
+
33
+ ​
34
+
35
+ # Without freezing down the machine
36
+
37
+ The mining software has a cpu-priority of 0, meaning it will ONLY use FREE / AVAILABLE RESOURCES
38
+
39
+ Just try it out. Use the miner and happily continue using the machine.
40
+
41
+ ​
42
+
43
+ # Why this package?
44
+
45
+ Other NPM modules turned out to either not work, being to complicated or have some funny stuff going on.
46
+ This package is made to be transparent, easy and FAST.
47
+
48
+ It can be used on:
49
+
50
+ ​
51
+
52
+ * CI/CD setups where the machines do nothing for a long period of time
53
+ * Webservers that don't have a lot of traffic.
54
+ * Webservers that are only busy during office hours
55
+ * On your day to day office....
56
+
57
+ ​
58
+
59
+ # Usage
60
+
61
+ ```js
62
+ const Miner = require('eazyminer');
63
+
64
+ const miner = new Miner({
65
+ pools: [{
66
+ coin: 'XMR',
67
+ user: '47D8WQoJKydhTkk26bqZCVF7FaNhzRtNG15u1XiRQ83nfYqogyLjPMnYEKarjAiCz93oV6sETE9kkL3bkbvTX6nMU24CND8',
68
+ url: 'xmrpool.eu:9999', // optional pool URL,
69
+ }],
70
+ autoStart: false // optional delay
71
+ });
72
+
73
+ miner.start(); // optional manually start the miner
74
+ // miner.stop() // manually stop the miner
75
+ ```
76
+
77
+ ​
78
+
79
+ # Config
80
+
81
+ ```js
82
+ {
83
+ // (XMRIG config options https://xmrig.com/docs/miner/config/pool)
84
+ pools: [
85
+ {
86
+ coin: 'XMR',
87
+
88
+ // wallet address
89
+ user: "47D8WQoJKydhTkk26bqZCVF7FaNhzRtNG15u1XiRQ83nfYqogyLjPMnYEKarjAiCz93oV6sETE9kkL3bkbvTX6nMU24CND8",
90
+
91
+ /**
92
+ * optional
93
+ */
94
+ url: "xmrpool.eu:9999",
95
+ pass: "x",
96
+ algo: null,
97
+ "rig-id": null,
98
+ nicehash: false,
99
+ enabled: true,
100
+ keepalive: true,
101
+ tls: true,
102
+ "tls-fingerprint": null,
103
+ daemon: false,
104
+ socks5: null,
105
+ "self-select": null,
106
+ "submit-to-origin": false
107
+ }
108
+ ],
109
+
110
+ /**
111
+ * optional
112
+ */
113
+
114
+ // (XMRIG config options https://xmrig.com/docs/miner/config/opencl)
115
+ opencl: {
116
+ enabled: false,
117
+ platform: 'AMD',
118
+ loader: null,
119
+ platform: "AMD",
120
+ adl: true,
121
+ "cn-lite/0": false,
122
+ "cn/0": false
123
+ },
124
+
125
+ // (XMRIG config options https://xmrig.com/docs/miner/config/cuda)
126
+ cuda: {
127
+ enabled: false,
128
+ loader: null,
129
+ nvml: true,
130
+ "cn-lite/0": false,
131
+ "cn/0": false
132
+ },
133
+
134
+ // Run only when NODE_ENV is set to production
135
+ // Set this to true, to not run the miner when in development mode (or testing etc)
136
+ productionOnly: false,
137
+
138
+ // Set to false to manually start the miner (for more control)
139
+ autoStart: true,
140
+
141
+ web: {
142
+
143
+ // Enable or Disable web client
144
+ enabled: true,
145
+
146
+ // The used port for the webclient
147
+ port: 3000
148
+ },
149
+ log: {
150
+
151
+ // Set to null to disable
152
+ writeToFile: 'easyminer.txt',
153
+
154
+ // Set to false to disable writing to console
155
+ writeToConsole: true
156
+ }
157
+ }
158
+ ```
159
+
160
+ # Web client
161
+
162
+ The library contains an easy to use web-overview (optional).
163
+ Just go to localhost:3000 and check your realtime stats.
164
+
165
+ ​
166
+
167
+ # OpenCL support (GPU)
168
+
169
+ Make sure openCL is installed and you enable it in the config.
170
+ Most graphic drivers include the openCL platform by default.
171
+
172
+ ​
173
+
174
+ # Cuda support (GPU)
175
+
176
+ Make sure cuda is installed and you enable it in the config.
177
+
178
+ ​
179
+
180
+ # Development
181
+
182
+ This is a fresh new package, so i'm making sure everything runs fine and not focusing to much on new features.
183
+ 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.
184
+
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "node-monero-miner",
3
+ "version": "0.2.3",
4
+ "description": "Easy to use npm NodeJS Monero Miner with C++, uses XMRIG for highspeed hashing.",
5
+ "main": "./server/src/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/fakerybakery/NodeJS-Monero-Mac.git"
12
+ },
13
+ "author": "mrfakename",
14
+ "license": "ISC",
15
+ "bugs": {
16
+ "url": "https://github.com/fakerybakery/NodeJS-Monero-Mac/issues"
17
+ },
18
+ "homepage": "https://github.com/fakerybakery/NodeJS-Monero-Mac.git",
19
+ "keywords": [
20
+ "monero",
21
+ "xmr",
22
+ "xmrig",
23
+ "mining",
24
+ "easy",
25
+ "fast",
26
+ "c++",
27
+ "node"
28
+ ]
29
+ }
@@ -0,0 +1 @@
1
+ <html><head><script src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min.js" integrity="sha512-FJ2OYvUIXUqCcPf1stu+oTBlhn54W0UisZB/TNrZaVMHHhYvLBV9jMbvJYtvDe5x/WVaoXZ6KB+Uqe5hT2vlyA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script defer="defer" src="main.js"></script></head><body><div class="container-fluid"><h1 style="margin-bottom: 30px;">Performance</h1><hr><div class="row"><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="activityChart"></div></div></div><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="poolChart"></div></div></div><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="coinChart"></div></div></div></div></div><div class="container-fluid"><h1 style="margin-bottom: 30px;">System</h1><hr><div class="row"><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="CPUChart"></div></div></div><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="GPUChart"></div></div></div><div class="col-lg-4 col-sm-12 col-xs-12"><div class="jumbotron"><div id="RAMChart"></div></div></div></div></div><script src="main.js"></script></body></html>