Post
Topic
Board Mining software (miners)
Topic OP
Open Source cgminer API for Node.js Developers
by
tjwebb
on 17/10/2014, 06:08:24 UTC

node-cgminer-api
https://github.com/hashware/node-cgminer-api

Complete cgminer API implementation for Node.js with multi-version support, integration tests, and a clean Promise-based API.

Key Features:

- Administer any device running cgminer from a Node.js program.
- Supports all versions of cgminer 2.11.0 and newer.
- Automatically detects cgminer version and adapts API to match
- Uses standard Promise interface for handling asynchronous callbacks
- cgminer response objects are automatically validated
- Integration test suite is public on Travis CI: https://travis-ci.org/hashware/node-cgminer-api
- All code is released under the MIT license (permissive, beerware) and hosted on Github
- Github Issue Tracker is open to the public: https://github.com/hashware/node-cgminer-api/issues
- Deployable using npm

https://github.com/hashware/node-cgminer-api
https://www.npmjs.org/package/cgminer-api

The best way to harden and improve a tool like this is to submit it to the scrutiny of the community, so that's what I'm doing. There are some other Javascript-based cgminer APIs, but I believe that this is by far the most comprehensive, well-tested, and standards-compliant, and open cgminer toolkit for Node.js. If you're a developer and want to interface with your miner through Node.js, give it a try. I appreciate any feedback, good or bad. My goal is to make this toolkit as safe and reliable as possible, since I'm using it currently to build a web-based miner management app.