
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@digitalcredentials/ssi
Advanced tools
Typescript types for the W3C Verifiable Credentials Data Model.
Typescript types for the W3C Verifiable Credentials Data Model, DID Core, cryptosuites, etc.
If you're implementing the Verifiable Credential specification in Typescript, chances are that you're using a type definition for VerifiableCredentials and VerifiablePresentations. Many VC-related projects (Sphereon's Veramo, LEF's LearnCard, Transmute's Verifiable Data) include the type definitions in their monorepos.
We saw a niche for a standalone library that exported just the type definitions, hence this repository.
See W3C Verifiable Credentials Data Model specification.
Inspired by / incorporates elements of other VC Typescript libraries:
/packages/core/src/types/vc-data-model.ts)/packages/vc.js/src/types/)/packages/learn-card-core/src/types/)learner-credential-wallet and others)The version numbers of this npm module are meant to mirror the version numbers of the Verifiable Credentials Data Model specification. Developers are encouraged to specify which VC Data model version they're using. For example, currently, the VC DM 1.1 is the stable version:
"dependencies": {
"@digitalcredentials/vc-data-model": "^1.1.0"
}
However, the VC DM 2.0 Working group is currently developing the second version of the specification (which will likely make breaking changes). So, in the future:
"dependencies": {
"@digitalcredentials/ssi": "^3.0.0"
}
To install via NPM:
npm install @digitalcredentials/ssi
To install locally (for development):
git clone https://github.com/digitalcredentials/ssi.git
cd ssi
npm install
import { IVerifiableCredential, IVerifiablePresentation } from '@digitalcredentials/ssi'
// for example, in an Express route definition:
const vp = req.body.presentation as IVerifiablePresentation
IVerifiableCredential and IVerifiablePresentationIOpenBadgeCredentialV3 (for OBv3 VCs)IDidCoreDocument and its children, IDidDocument_v1_0 and IDidDocument_v1_1IKeyPair and its children, such as IVerificationKeyPair2020 and IKeyAgreementKeyPair2020ISigner/src)IZcap and related interfaces (IRootZcap, IDelegatedZcap, IZcapLike, and ICapabilityDelegationProof)PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
MIT License © 2022-2025 Digital Credentials Consortium.
FAQs
Typescript types for the W3C Verifiable Credentials Data Model.
We found that @digitalcredentials/ssi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.