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

@the-hashgraph-group-ag/identity-client-sdk-js-verifier

v0.6.0

Published

Verification Client SDK for OIDC4VP credential verification and presentation exchange

Readme

Verifier Client SDK

Simplified facade for integrating with the Verifier API to manage DCQL queries, Presentation Definitions, and verify verifiable presentations.

Purpose

The Verifier Client SDK provides a simplified interface for applications that need to manage DCQL queries, presentation definitions, and request/verify presentations from holders. It uses a handler-based architecture: you register DCQLHandler, PresentationDefinitionHandler, and VerificationHandler instances.

Features

  • DCQL: create, list, get, resolve, deprecate, count, validate DCQL queries
  • Presentation Definition: create, list, get, deprecate, count, validate presentation definitions; manage relations and synchronization
  • Verification: create and publish VP requests; verify verifiable presentations (signatures, claims, schemas); trusted issuers; revocation checks

Requirements

Node.js >= 18 (or a runtime with equivalent support).

Installation

pnpm add @the-hashgraph-group-ag/identity-client-sdk-js-verifier

Getting Started

import {
  VerificationSDK,
  DCQLHandler,
  PresentationDefinitionHandler,
  VerificationHandler,
} from '@the-hashgraph-group-ag/identity-client-sdk-js-verifier';

const dcqlHandler = new DCQLHandler({
  baseUrl: 'https://dcql-api.example.com',
  apiKey: 'your-dcql-api-key',
});

const presentationDefinitionHandler = new PresentationDefinitionHandler({
  baseUrl: 'https://pd-api.example.com',
  apiKey: 'your-pd-api-key',
});

const verificationHandler = new VerificationHandler({
  baseUrl: 'https://verifier-api.example.com',
  apiKey: 'your-verifier-api-key',
});

const sdk = new VerificationSDK({
  dcqlHandlers: [dcqlHandler],
  presentationDefinitionHandlers: [presentationDefinitionHandler],
  verificationHandlers: [verificationHandler],
});

// DCQL
const query = await sdk.dcql.create({ name: '...', description: '...', dcqlQuery: { ... } });

// Presentation Definition
const pd = await sdk.presentationDefinition.create({ schemaId: '...', name: '...', presentationDefinition: { ... } });

// Verification
const vpRequest = await sdk.verification.generatePresentationRequest({ ... });

Usage

Create a DCQL Query

const query = await sdk.dcql.create({
  name: 'KYC Verification',
  description: 'Request KYC credentials for identity verification',
  dcqlQuery: {
    credentials: [
      {
        id: 'kyc_credential',
        format: { 'vc+sd-jwt': {} },
        meta: { type_values: [['VerifiableCredential', 'KYCCredential']] },
      },
    ],
    credential_sets: [],
    claims: [
      { id: 'given_name', path: ['credentialSubject', 'given_name'] },
      { id: 'family_name', path: ['credentialSubject', 'family_name'] },
    ],
  },
});

List DCQL Queries

const queries = await sdk.dcql.list({
  page: 1,
  limit: 10,
  status: 'ACTIVE',
});

Generate a Presentation Request

const vpRequest = await sdk.verification.generatePresentationRequest({
  dcqlQueryId: query.id,
  responseMode: 'direct_post',
  responseUri: 'https://callback.example.com/vp',
});

console.log('VP Request URI:', vpRequest.uri);

Verify a Presentation

const result = await sdk.verification.verifyPresentation({
  state: vpRequest.state,
  vp_token: 'eyJhbGciOiJSUzI1NiIs...',
});

if (result.is_valid) {
  console.log('Presentation verified successfully!');
} else {
  console.log('Verification errors:', result.errors);
}

Error handling

Errors from the core package (@the-hashgraph-group-ag/identity-client-sdk-js-core):

  • HandlerNotSetError – thrown when you use sdk.dcql, sdk.presentationDefinition, or sdk.verification without registering a handler for that domain.
  • HttpError – thrown when an API request returns 4xx/5xx; has status, data, headers.
  • ValidationError – thrown when input validation fails; has message and optional field.

Use instanceof to handle them in catch blocks.

Examples

Runnable examples (DCQL, presentation requests, presentation definitions, trusted issuers) are in the repo under examples/verifier. See that folder’s README for setup and environment variables.

Documentation

For detailed API documentation, see the Verifier Package Documentation.