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

@interop/vc-display

v0.1.0

Published

Pure verifiable-credential display derivation and credential input parsing, for the browser, Node.js, and React Native.

Downloads

127

Readme

VC Display (@interop/vc-display)

Node.js CI NPM Version

Pure verifiable-credential display derivation and credential input parsing, for the browser, Node.js, and React Native.

Table of Contents

Background

The helpers a verifiable-credential viewer needs between "here is a VC" and "here is what to show": the credential's title, issuer and subject render info, issuance and expiry, Open Badges v3 achievements, skills, alignments and evidence, the display-field list, a verification checklist, and the parsing of pasted or scanned credential input (VC or VP JSON, a URL to fetch).

The guiding seam is raw values out, formatting in the UI. Nothing here imports Intl, moment, i18next, react-native, or any app config. Dates come out as ISO strings or Date, verification messages come from an injected labels map, and URL fetching is an injected fetchUrl callback. The app keeps a thin wrapper that applies its own formatting, localization, and transport.

The package was extracted from @interop/wallet-core's display subpath, where it had been reconciled from two wallet apps' drifted implementations. It has one dependency, @interop/data-integrity-core, which owns the VC types and the loose-shape guards (isVerifiableCredential, typeArray, issuerId, subjectId, ...). Import those from there.

Security

These helpers read untrusted credential JSON and return values an app renders. They never fetch on their own (the one network seam is the injected fetchUrl), never evaluate a credential's proof (the verification checklist is built from a caller-supplied verification result), and treat every field as optional and possibly malformed. Render the returned strings as text, not as markup.

Install

  • Node.js 24+ is recommended.

PNPM

To install via PNPM:

pnpm install @interop/vc-display

Development

To install locally (for development):

git clone https://github.com/interop/vc-display.git
cd vc-display
pnpm install

Usage

import {
  credentialName,
  issuerRenderInfoFrom,
  getDisplayFields,
  isExpired,
  credentialsFromJSON
} from '@interop/vc-display'

const [vc] = credentialsFromJSON(pastedText)
credentialName(vc) // 'Bachelor of Science'
issuerRenderInfoFrom(vc) // { name, url, image, ... } -- raw, unformatted
getDisplayFields(vc) // the fields a credential card shows
isExpired(vc) // boolean, from the credential's own validity period

Contribute

PRs accepted. See CONTRIBUTING.md for editor setup (Prettier, ESLint, and EditorConfig) and how it maps to CI.

If editing the Readme, please conform to the standard-readme specification.

License

MIT License © 2026 Interop Alliance.