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

@kiltprotocol/dip-sdk

v0.0.1-rc.1

Published

An SDK to help integration of the KILT Decentralized Identity Provider (DIP) protocol using KILT as an Identity Provider.

Downloads

3

Readme

Lint and Test

KILT DIP

A cross-chain DID feature that allows KILT DID owners to DID-authorize extrinsics on other parachains and relaychains without bridging their full DID state.

More documentation is coming!

Installation

NPM:

npm install @kiltprotocol/dip-sdk

YARN:

yarn add @kiltprotocol/dip-sdk

End-to-end testing

The end-to-end testing use a Zombienet-based setup with a Kubernetes provider. Hence, a Kubernetes cluster, e.g., minikube must be installed on the machine where the tests are to be executed. For more information on how to set up the machine to spawn Zombienet-based network, please refer to the official Zombienet repository.

Environment configuration

The Zombienet deployment relies on a number of environment variables, which are:

  • RELAY_IMAGE: The Docker image for relaychain nodes.
  • RELAY_ALICE_RPC: The RPC port for the relay-alice relaychain node.
  • PROVIDER_IMAGE: The Docker image for the DIP provider nodes.
  • PROVIDER_ALICE_RPC: The RPC port for the provider-alice provider node.
  • CONSUMER_IMAGE: The Docker image for the DIP consumer nodes.
  • CONSUMER_ALICE_RPC: The RPC port for the consumer-alice consumer node.

A series of default values is sourced from either the tests/dip-provider-template-dip-consumer-template/.env.develop.test or tests/peregrine-dip-consumer-template/.env.develop.test file to spin up either a DIP Template Provider <-> DIP Template Consumer network or a Peregrine <-> DIP Template Consumer network.

Test execution

Test execution requires the following steps:

  1. Switch to the expected Node version with nvm use.
  2. Install the repo dependencies with yarn install.
  3. Set up the environment variables as explained above.
  4. Spin up the Zombienet network with test:e2e:start-network:peregrine-provider:develop or test:e2e:start-network:dip-template-provider:develop.
  5. In a new shell session, run the end-to-end tests with yarn test:e2e:peregrine-provider or yarn test:e2e:dip-template-provider.
  6. [OPTIONAL] Tear down the network by killing the process started at step 4.