BitShares Forum

Main => General Discussion => Topic started by: svk on June 06, 2016, 10:38:44 am

Title: [ANN] Graphenejs-lib : JavaScript crypto + api library
Post by: svk on June 06, 2016, 10:38:44 am
In an attempt to make Bitshares/Graphene development more accessible for JavaScript developers, I've extracted the api and crypto libraries from the graphene-ui repo into a separate package. This package will allow anyone to easily connect to and interact with the Bitshares blockchain through either a public or local API server.

All the transaction creation/signing code used by graphene-ui is included, which means you can easily create a trading bot in node.js for example using this library. That bot would only need access to a private key and an api server, no cli_wallet required. This library should also make it very easy to implement alternative front-ends for Bitshares.

The library is available through NPM using
Code: [Select]
npm install graphenejs-lib.

The open source code is available here, this repo also includes some basic examples:

https://github.com/svk31/graphenejs-lib

I intend to expand on the examples, so if there's anything you'd like to see an example for let me know.
Title: Re: [ANN] Graphenejs-lib : JavaScript crypto + api library
Post by: cgafeng on June 06, 2016, 10:51:50 am
great job +5% +5%
Title: Re: [ANN] Graphenejs-lib : JavaScript crypto + api library
Post by: cube on June 06, 2016, 11:24:45 am
A js lib for graphene. Finally!  Thank you!
Title: Re: [ANN] Graphenejs-lib : JavaScript crypto + api library
Post by: svk on June 14, 2016, 01:00:27 pm
Just a heads-up that I've made several improvements to the library recently.

First of all I've extracted the websocket rpc connection code into a separate library, graphenejs-ws. See this post for more info: https://bitsharestalk.org/index.php/topic,22659.new.html

Secondly, I've taken a page from Steemit's book and added a login class that uses account name + role + password to generate private keys. I've since used this login class to create a new basic wallet template: https://bitsharestalk.org/index.php/topic,22660.0.html