Skip to content

The reference implementation of the IDM Client in JavaScript

License

Notifications You must be signed in to change notification settings

cluster-labs/js-idm-client

This branch is 2 commits ahead of, 1 commit behind ipfs-shipyard/js-idm-client:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

43a946d · Jul 23, 2019

History

24 Commits
Jun 22, 2019
Jul 23, 2019
Jun 8, 2019
Jun 8, 2019
Jun 8, 2019
Jun 8, 2019
Jun 8, 2019
Jun 8, 2019
Jun 8, 2019
Jun 28, 2019
Jun 8, 2019
Jun 15, 2019
Jul 23, 2019
Jul 23, 2019

Repository files navigation

idm-client

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status

The reference implementation of the IDM Client in JavaScript. This library is intended to be used by DApps.

Installation

$ npm install idm-client

This library is written in modern JavaScript and is published in both CommonJS and ES module transpiled variants. If you target older browsers please make sure to transpile accordingly.

Usage

import createIdmClient from 'idm-client';
import { createClientSide } from 'idm-bridge-postmsg';

const app = {
    name: 'My app name',
    iconUrl: 'https://my.app.com/favicon.png',
    homepageUrl: 'https://my.app.com',
};

const idmWalletUrl = 'https://nomios.io';

await (async () => {
    const idmBridge = await createClientSide(idmWalletUrl);
    const idmClient = await createIdmClient(app, bridge);
})();

API

This library is following closely the IDM Wallet Specification.

We will be providing proper API documentation once the both this library and the specification mature.

Tests

$ npm test
$ npm test -- --watch # during development

License

Released under the MIT License.

About

The reference implementation of the IDM Client in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%