Bitcoin Forum
April 19, 2024, 10:22:55 AM *
News: Latest Bitcoin Core release: 26.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.
1713522175
Hero Member
*
Offline Offline

Posts: 1713522175

View Profile Personal Message (Offline)

Ignore
1713522175
Reply with quote  #2

1713522175
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713522175
Hero Member
*
Offline Offline

Posts: 1713522175

View Profile Personal Message (Offline)

Ignore
1713522175
Reply with quote  #2

1713522175
Report to moderator
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!