Skip to content

This is small package to download and bootstrap lbryio/lbry-sdk releases in nodejs

License

Notifications You must be signed in to change notification settings

adventurerlog/lbry-sdk-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version npm downloads

Lbry SDK NodeJS

This is small package to download and bootstrap lbryio/lbry-sdk releases in nodejs.

Original code was taken and adapted from lbryio/electron-starter and lbryio/lbry-redux.

How this should work?

# 1.
npm install lbry-sdk-node --save
# After the install an additional script runs that downloads the lbry-sdk (0.93.0)

Example Usage:

const { Lbry } = require('lbry-sdk-node/lbry');
const { launchSDK } = require('lbry-sdk-node/start');

const statusCheck = () => Lbry.status().then(status => {
    console.log(`isRunning ${status.is_running}`)
    console.log(status);
})
const searchClaims = () => Lbry.claim_list().then(claims => {
    console.log(claims);
})

launchSDK().then(isSDKRunning => {
    console.log(`after launch ${isSDKRunning}`);
    statusCheck();
    searchClaims();
}).catch(error => {
    console.error(error);
})

About

This is small package to download and bootstrap lbryio/lbry-sdk releases in nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published