Author

Topic: Open Source cgminer API for Node.js Developers (Read 1298 times)

newbie
Activity: 16
Merit: 1
October 17, 2014, 11:45:19 AM
#3
Awesome. I think we're building some similar stuff, let me know if you'd like to collaborate. Make sure to file issues if you run into them. I'm actively maintaining this project, so I'll make sure to fix them as soon as possible.
legendary
Activity: 1015
Merit: 1000
uuuuh! This sounds great! I was looking for something like this to rewrite my Minera project in Node. I have no excuses now Wink
Thanks
newbie
Activity: 16
Merit: 1

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.
Jump to: