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

@docknetwork/dock-blockchain-modules

v0.11.2

Published

A JavaScript library designed for handling the following elements on the Dock blockchain:

Downloads

1,180

Readme

@docknetwork/dock-blockchain-modules

A JavaScript library designed for handling the following elements on the Dock blockchain:

  • Decentralized Identifiers (DIDs)
  • Accumulators
  • Anchors
  • Blobs
  • Support for public keys including BBS, BBS+, PS, Ed25519, Sr25519, and Secp256k1
  • BBS/BBS+/PS parameters
  • Status List credentials
  • Trust Registries

Install or build

  • Run yarn add @docknetwork/dock-blockchain-modules or npm install @docknetwork/dock-blockchain-modules to install the package from npm
  • When building from source:
    • Run yarn to install the dependencies
    • Run yarn build to create a distribution version.

Documentation

Have a look at the concepts and tutorials. These are generated from markdown present over here. Files prefixed with concepts describe the concepts and files prefixed with tutorials have a tutorial on using the API. Checkout the API reference

Examples

The example scripts present in example directory are meant to demonstrate a complete feature. The following commands demonstrate different features.

Connecting

Use Dock's substrate node: https://github.com/docknetwork/dock-substrate

Running dev node:

yarn dev-node

Use the mainnet tag of this repo when interacting with mainnet as the master branch isn't guaranteed to be mainnet compatible.

Test and example Configuration

Configuration variables like websocket endpoint for node FullNodeEndpoint, URI for account to pay for extrinsics TestAccountURI and keyring type TestKeyringType can be set as environment variables (or in an .env file). If they are not set, default values as specified in file test-constants.js are used. The scripts read parameters from .env file. The available parameters are shown in an example env file env_example

Test

Run tests with yarn test (required node to be running).

You can run tests against a temporary node in docker like so:

yarn test-with-node

Linting and type checking

We use JSDoc and TypeScript for static type checking during the CI process. PRs must pass linting and type checking to be accepted. You can run via: yarn lint --fix and yarn type-check