Skip to content

A tiny, universal client for interacting with TBD's SSI Service

Notifications You must be signed in to change notification settings

polymer-substrate/ssi-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript client for TBD's SSI Service

Introduction

This repository contains a tiny, universal client for interacting with TBD's SSI Service.

Installation

Since this client is still in early stages, we haven't yet published to npm. Until then, we suggest using npm link to use this in your own project. Steps:

# clone this repo somewhere
git clone https://github.com/wrk-corp/ssi-js.git
# install deps
npm install
# transpile typescript and build bundles
npm run build

# cd into your project dir
cd /path/to/your/project
# first creates a global link, and then links the global installation target into your project's node_modules folder.
npm link ../path/to/where/you/cloned/ssi-js

# profit

Usage

Import ssi-js module in your project and initialize it with the url to the SSI service, it defaults to https://localhost:8080.

import SSI from 'ssi-js'

const SSIClient = new SSI()

SSIClient.getHealth().then((data) => {
    console.log(data)
})

SSIClient.getReadiness().then((data) => {
    console.log(data)
})

What's Supported?

About

A tiny, universal client for interacting with TBD's SSI Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published