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 🙏

© 2026 – Pkg Stats / Ryan Hefner

verifiable-credential-toolkit

v0.5.1

Published

Provides methods for handling, constructing and signing Verifiable Credentials

Downloads

14

Readme

Verifiable Credential Toolkit

Tools and Library for Verifiable Credential creation and signing.

CLI Tools

vc_signer (cargo default-run)

A CLI tool for signing Verifiable Credentials

Usage: vc_signer <COMMAND>

Commands:
  sign  Sign a verifiable credential
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version
Sign a verifiable credential

Usage: vc_signer sign [OPTIONS] --input-vc <INPUT_VC> --key <KEY>

Options:
  -i, --input-vc <INPUT_VC>      Path to the unsigned VC JSON file
  -k, --key <KEY>                Path to the private key file
  -o, --output-vc <OUTPUT_VC>    Path to save the signed VC [default: signed_output.json]
  -s, --schema <SCHEMA>          Optional schema file path for validation
  -u, --schema-url <SCHEMA_URL>  Optional schema URL for validation
  -h, --help                     Print help

generate_keys

Generates Ed25519 key pairs

Usage: generate_keys [OPTIONS]

Options:
  -o, --output <OUTPUT>  Output directory for the keys [default: .]
  -h, --help             Print help
  -V, --version          Print version

WASM Compilation and Usage in Client-side Javascript in the browser

You can compile the sign and verify functions for web based WASM like so:

wasm-pack build --target web

Tested with:

wasm-pack --version
wasm-pack 0.13.1

By default it will build in the pkg directory.

I have put an example usage of the WASM functionality in the browser inside the ./wasm_js_example_usage directory.

If you compile it inside that directory in a directory called pkg like so:

wasm-pack build --target web --out-dir wasm_js_example_usage/pkg

Then run the web server at localhost 8080 with:

python3 -m http.server 8080

When you load the page in a browser and open the console you should see the signed VC object being logged and the successful result of the verification. See screenshot below:

Screenshot showing example web page and console logs

The load_keys.mjs Node.js script can be used to print a private and public key to the command line in a format which can be copied into the index.js file for testing/example usage purposes.

WASM Compilation and Usage in Node.js

You can compile the sign and verify functions for nodejs based WASM like so:

wasm-pack build --target nodejs

I have put an example usage of the WASM functionality in a node script inside the ./wasm_nodejs_example_usage directory.

If you compile it inside that directory in a directory called pkg like so:

wasm-pack build --target nodejs --out-dir wasm_nodejs_example_usage/pkg

Then run the node script like so:

node index.js

It should log your VC to the console and the result of verification like so:

Signed VC: Map(6) {
'@context' => [ 'https://www.w3.org/2018/credentials/v1' ],
'id' => 'http://example.com/credentials/3732',
'type' => 'VerifiableCredential',
'issuer' => 'https://example.com/issuers/14',
'credentialSubject' => Map(1) { 'id' => 'did:example:abcdef' },
'proof' => {
type: 'Ed25519Signature2018',
proofPurpose: 'assertionMethod',
verificationMethod: undefined,
cryptosuite: 'eddsa-rdfc-2022',
created: '2025-02-27T10:17:09.806Z',
proofValue: 'ShO0cQNI3whBuwYNh2EDY3Mua/NLpu5n5QlC5vLQCv4aya5/vQI64avSZ2JcQOpUCf1SPQtzMDeurHNka8CmBA=='
 }
}
Verification result: true