Bitcoin Forum
September 19, 2018, 05:59:55 PM *
News: ♦♦ Bitcoin Core users must update to 0.16.3 [Torrent]. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Open Source cgminer API for Node.js Developers  (Read 1194 times)
tjwebb
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
October 17, 2014, 06:08:24 AM
 #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.
1537379995
Hero Member
*
Offline Offline

Posts: 1537379995

View Profile Personal Message (Offline)

Ignore
1537379995
Reply with quote  #2

1537379995
Report to moderator
1537379995
Hero Member
*
Offline Offline

Posts: 1537379995

View Profile Personal Message (Offline)

Ignore
1537379995
Reply with quote  #2

1537379995
Report to moderator
1537379995
Hero Member
*
Offline Offline

Posts: 1537379995

View Profile Personal Message (Offline)

Ignore
1537379995
Reply with quote  #2

1537379995
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
michelem
Legendary
*
Offline Offline

Activity: 995
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 BTC: 1AvF29tTd6w8kvLuTp5QqLFbN6LTQDoGFQ - Try GigaWatt mining Tokens
tjwebb
Newbie
*
Offline Offline

Activity: 15
Merit: 0


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!