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-issuer

v0.6.0

Published

Issuer Client SDK for OIDC4VCI credential issuance and management

Readme

Issuer Client SDK

Simplified facade for integrating with the Issuer API to issue verifiable credentials.

Purpose

The Issuer Client SDK provides a simplified interface for applications that need to issue credentials using standardized endpoints. It abstracts the complexity of REST/gRPC calls to the Issuer API.

Features

  • Abstract REST or gRPC calls to Issuer API
  • Simplify creation of credential offers
  • Manage credential templates and schemas
  • Manage credential requests and verifiable credentials

Installation

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

Getting Started

Initialization

import { IssuerSDK, SchemaHandler } from '@the-hashgraph-group-ag/identity-client-sdk-js-issuer';

const schemaHandler = new SchemaHandler({
  baseUrl: '<schema-management-url>',
  auth: {
    apiKey: '<api-key>',
  },
});

const sdk = new IssuerSDK({
  schemaHandlers: [schemaHandler],
});

Schema Management

Create a Schema

const schema = await sdk.schema.create({});

console.log('Schema created:', schema.schemaId);

Fetch Schemas

// Fetch all schemas
const schemas = await sdk.schema.list();

// Fetch schemas with pagination
const paginatedSchemas = await sdk.schema.list({
  page: 1,
  itemsPerPage: 10,
  status: 'ACTIVE',
});

// Fetch a specific schema by ID
const schema = await sdk.schema.get('schema-123');

Schema Count

const { ACTIVE: activeCount, DEPRECATED: deprecatedCount } = await sdk.schema.count();
console.log(`Active schemas: ${activeCount}`);
console.log(`Deprecated schemas: ${deprecatedCount}`);

Deprecate a Schema

const result = await sdk.schema.deprecate('schema-123');
console.log('Schema deprecated successfully');

Handlers overview

The SDK is handler-based. You register one or more handlers per domain; the first registered becomes active. Access via sdk.schema, sdk.template, sdk.credentialOffer, sdk.issuance, sdk.vcManagement, sdk.issuanceEvent. If you use a getter without registering a handler, HandlerNotSetError is thrown.

SchemaHandler (sdk.schema) – create, list, get, count, deprecate schemas (see above).

TemplateHandler (sdk.template) – manage credential templates: create, list, get, deprecate, count. Same pagination pattern as schema (itemsPerPage, page, status). Count returns { ACTIVE, DEPRECATED }.

CredentialOfferHandler (sdk.credentialOffer) – create, list, get, delete, and resolve credential offers: create(payload), createFromTemplate(payload), list(params), get(id), delete(id), resolve(id).

IssuanceHandler (sdk.issuance) – create issuance requests (for external signing), issue, and decline: createIssuanceRequest(params), issue(request), decline(request).

VcManagementHandler (sdk.vcManagement) – list issued credentials, get by id, status totals, revoke: list(filters?), getById(id), getStatusTotals(), revoke(request).

IssuanceEventHandler (sdk.issuanceEvent) – list issuance events (audit/monitoring): list(filters?).

Register with schemaHandlers, templateHandlers, credentialOffersHandlers, issuanceHandlers, vcManagementHandlers, issuanceEventHandlers in the constructor, or via registerSchema, registerTemplate, etc. Switch active handler with useSchemaHandler, useTemplateHandler, and the corresponding use* methods.

Error handling

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

  • HandlerNotSetError – thrown when you access a getter (e.g. sdk.schema, sdk.issuance) without having registered 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: if (err instanceof HttpError) { console.error(err.status, err.data); }.