This is Node.js Client of Project DD@Home.
Cluster Manager and Protocol: https://github.com/dd-center/Cluster-center
Thank you for participating DD@Home!
https://github.com/dd-center/DDatHome-nodejs/releases/latest
You need to install Node.js at https://nodejs.org/en/download/
npx dd-center/DDatHome-nodejs
Docker Hub: https://hub.docker.com/r/simon300000/ddathome-nodejs
docker pull simon300000/ddathome-nodejs
docker run simon300000/ddathome-nodejs
docker run -d simon300000/ddathome-nodejs
You need to install Node.js at https://nodejs.org/en/download/
git clone https://github.com/dd-center/DDatHome-nodejs.git
cd DDatHome-nodejs
npm install
node index.js
pm2 start ecosystem.config.js
Edit Settings by environment variables or by command line arguments.
--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 | Default | Document |
---|---|---|
URL | wss://cluster.vtbs.moe |
Upstream URL |
INTERVAL | 1280 |
Task interval in ms |
LIMIT | Infinity |
Live room relay WebSocket connections |
UUID | undefined |
stats tracking |
HIDE | false * |
hide all extra information including platform, client version, Node.js runtime version, docker status ** |
NICKNAME | undefined |
A optional nickname to display on statistics board (in progress). |
docker | Depends | Is Docker environment? |
VERBOSE | false * |
Verbose log |
* giving any value will make it true
** details see source code
The source code of backend (Cluster Manager) is available at https://github.com/dd-center/Cluster-center
1.11.0 use fetch
, Node 18, remove DNS cache.
Use 1.10.0 if you need. tag v1.10.0
commit d0b2b7ec55fd393186c33f8deb2b1cf28cba55c7