Home

Awesome

DDatHome nodejs Node CI

This is Node.js Client of Project DD@Home.

Cluster Manager and Protocol: https://github.com/dd-center/Cluster-center

Usage

Thank you for participating DD@Home!

Download executable

https://github.com/dd-center/DDatHome-nodejs/releases/latest

npx

You need to install Node.js at https://nodejs.org/en/download/

npx dd-center/DDatHome-nodejs

Docker

Docker Hub: https://hub.docker.com/r/simon300000/ddathome-nodejs

Pull

docker pull simon300000/ddathome-nodejs

Run

docker run simon300000/ddathome-nodejs

Run in background

docker run -d simon300000/ddathome-nodejs

Clone

You need to install Node.js at https://nodejs.org/en/download/

Install

git clone https://github.com/dd-center/DDatHome-nodejs.git
cd DDatHome-nodejs
npm install

Run

node index.js

Run with pm2

pm2 start ecosystem.config.js 

Settings

Edit Settings by environment variables or by command line arguments.

CLI:

  --url=<URL>        URL to the websocket server.
                     [env: URL] [default: wss://cluster.vtbs.moe]
                     
  --interval=<time>  Interval to pull tasks (ms).
                     [env: INTERVAL] [default: 1280]

  --ws-limit=<limit> Limit of WebSocket connections to live.bilibili.com.
                     [env: LIMIT]

  --uuid=<uuid>      UUID for stats tracking.
                     [env: UUID]
                     
  --anonymous        Do not send platform info to the server.
                     [env: HIDE]
                     
  --nickname=<name>  Use a nickname. [env: NICKNAME]
  --verbose          Be more verbose. [env: VERBOSE]

ENV:

ENVDefaultDocument
URLwss://cluster.vtbs.moeUpstream URL
INTERVAL1280Task interval in ms
LIMITInfinityLive room relay WebSocket connections
UUIDundefinedstats tracking
HIDEfalse *hide all extra information including platform, client version, Node.js runtime version, docker status **
NICKNAMEundefinedA optional nickname to display on statistics board (in progress).
dockerDependsIs Docker environment?
VERBOSEfalse *Verbose log

* giving any value will make it true

** details see source code

Contribution/Other information

The source code of backend (Cluster Manager) is available at https://github.com/dd-center/Cluster-center

Note

1.11.0 use fetch, Node 18, remove DNS cache.

Use 1.10.0 if you need. tag v1.10.0 commit d0b2b7ec55fd393186c33f8deb2b1cf28cba55c7