Bitcoin Forum
June 22, 2024, 11:22:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Open Source cgminer API for Node.js Developers  (Read 1287 times)
tjwebb (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
October 17, 2014, 06:08:24 AM
Last edit: October 17, 2014, 06:23:05 AM by tjwebb
 #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.
michelem
Legendary
*
Offline Offline

Activity: 1015
Merit: 1000



View Profile WWW
October 17, 2014, 12:54:19 PM
 #2

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

Get Minera. Your next bitcoin mining dashboard. Donations are welcome
tjwebb (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
October 17, 2014, 04:45:19 PM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!