npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@elabox/elastos-connectivity-sdk-js

v1.1.9

Published

Elastos JS connectivity SDK to bridge mobile Apps with Elastos wallets

Downloads

5

Readme

Elastos Connectivity Client JS SDK

Installation

npm i --save @elastosfoundation/elastos-connectivity-sdk-js

Angular apps:

Add SDK styles to your main scss file:

@import "~@elastosfoundation/elastos-connectivity-sdk-js/dist/bundle.css";

Usage example

import { connectivity, Hive } from '@elastosfoundation/elastos-connectivity-sdk-js';
import { EssentialsConnector } from '@elastosfoundation/essentials-connector-client-browser';

// If willing to let users use Elastos Essentials to handle operations:
connectivity.registerConnector(new EssentialsConnector());

let dataSync = new Hive.DataSync.HiveDataSync(userVault);

Architecture

This connectivity SDK contains:

  • Access (DIDAccess, HiveAccess ...) entry points to easily request private identity information from third-party apps, such as DID credentials, hive authentication credentials, payment with wallet, executing smart contracts, etc.
  • A mechanism made of connectors, in order to dynamically add custom providers for the access services.
  • By default, only a Local Identity Connector is built-in. This connector is required by all dApps in order to let new users easily join the application while they don't have a decentralized identity yet, but also by app store reviewer teams as app stores usually don't accept applications that force users to depend on a third party wallet application to sign in or do major operations. Local identities provide a built-in DID and hive storage environment for a quick start.
  • Additional connectors such as the Elastos Essentials Connector or any custom connector can be added to let end users use their favorite way to use their identity. By adding the Essentials connector, for instance, end users can pick "Essentials" in the list, and all decentralized operations open the external Elastos Essentials application to request user confirmation. Each application decides which connectors it wants to provide to its users.
  • UI interfaces for Generic prompts and Local identity prompts are also provided with a built-in default implementation that prompts end-users with default popups for convenience. Though, those interfaces can be overridden by the application in order to build a custom UI.

Development

Build for distribution

npm run build

The generated output is in dist/.

Build for development

npm run dev

Runs webpack in watch mode to auto-rebuild the project on every file change.

How to publish to npmjs.com

Publishing account (NPM)

  • Organization: @elastosfoundation
  • Owner: @benjaminpiette

Useful commands

  • npm adduser (once)
  • npm login (once)
  • Increase version number in package.json
  • npm publish --access=public