hybrix-jslib

0.8.7 • Public • Published

hybrix-jslib

This library can be used to connect software to leverage the capabilities of the hybrix platform. It serves two purposes: first to facilitate the logistics of interfacing with the hybrixd REST API, secondly to handle all client-side operations securely and privately. This ensures that keys required for transaction never leave the users device and communication over an encrypted channel.

Installation

$ npm install hybrix-jslib

Usage

const Hybrix = require('./hybrix-jslib.js');
const hybrix = new Hybrix.Interface({http:require('http')});
hybrix.sequential(
  [
    'init',                                                       // Initialize hybrix
  ],
  ()=>{console.log('Hello World!');},                             // Define action to execute on successfull completion
  error=>{console.log('Oops, something went wrong: '+error);}     // Define action to exectue when an error is encountered
);

Documentation

Library documentation: https://api.hybrix.io/help/hybrix-jslib.js

REST API reference: https://api.hybrix.io/help/api

/hybrix-jslib/

    Package Sidebar

    Install

    npm i hybrix-jslib

    Homepage

    hybrix.io

    Weekly Downloads

    42

    Version

    0.8.7

    License

    GPL-3.0

    Unpacked Size

    1.79 MB

    Total Files

    4

    Last publish

    Collaborators

    • hybrix-io