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

@growr/vc-json-schemas

v1.6.11

Published

A repository of JSON Schemas for Verifiable Credentials

Downloads

4

Readme

The Credential Schema is a document that is used to guarantee the structure, and by extension the semantics, of the set of claims comprising a Verifiable Credential. A shared Credential Schema allows all parties to reference data in a known way1

References:

Overview

This repository contains a set of Credential Schemas. These schemes are hosted and available for use by the community. The objective is to provide a standard, reusable and extensible set of schemas that can be used over different applications enabling the portability of user's information.

For example, if a trusted service like NeverBounce verifies an email and digitally signs a Verifiable Credential complying with a standard schema, the credential can be reused as an email credential over any other application model.

Schemas

The repo

The repository has 4 important modules:

  • The credential schemas folder
  • The sample folder
  • CI linting and testing
  • CD on Github Pages

The credential schemas folder

This folder contains the schema definitions. Each schema is stored in /schema/SCHEMA_NAME/SCHEMA_VERSION/schema.json.

The definitions must be Verifiable Credentials JSON Schemas compliant with:

They must also meet:

  • Have a unique name
  • Be posted in human-readable string representation, using MDN JSON.stringify with space parameter set in 2

Pull requests must meet:

  • Do not modify or delete an existing schema
  • If schema is to be updated, create a new schema with compliant versioning

The sample folder

This folder stores sample Verifiable Credentials for each existent schema. The examples of each schema are stored in /sample/SCHEMA_NAME/SCHEMA_VERSION/sample-K.json, where k is index (starting from 1) of the sample enabling more than one sample to be stored for each schema.

The sample must:

  • Be compliant with the schema specified by the path of the file
  • If credential provides proof, it must be valid

CI linting and testing

Continuous integration is set to

  • [ ] Invalidate any schema update or deletion
  • [x] Verify credential schemas format are valid
  • [ ] Check spacing is correct
  • [x] Validate the samples against the corresponding schema
  • [ ] Versioning is correct

CD on Github Pages

Continuous delivery will make new schemas go live instantly. It will use Github Pages host to serve each of the credential schemas definitions approved and merged into master branch.

Changes to standards

The base schema: is the JSON Schema of the schemas. We made two changes to https://w3c-ccg.github.io/vc-json-schemas/schema/1.0/schema.json:

Enable more DID networks in method

id pattern is ^did:+(\w+:)+\w+;id=[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12};version=d+.\d+$

Changes \w+: for (\w+:)+

Made required property JSON Schema compliant

Changes

{
  "required": {
    "type": "array",
    "items": [ {
      "type": "string" } ] } }

for

{
  "required": {
    "type": "array",
    "items": {
      "type": "string" } } }

Drawbacks

Verifiable Credentials JSON Schema Specification is still a draft so we decided initially to

  • do not include cryptographic proof for these schemas - as it is not yet defined
  • do not publish them in a public ledger - as it may make this project unflexible to future changes