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

@hypercerts-org/sdk

v2.9.1

Published

SDK for hypercerts protocol

Readme

Hypercerts SDK

Quickstart Guide

  1. Install the SDK using npm or yarn:
pnpm install @hypercerts-org/sdk

or

 pnpm add @hypercerts-org/sdk
  1. Import the SDK into your project:
import { HypercertClient } from "@hypercerts-org/sdk";
  1. Create a new instance of the HypercertClient class with your configuration options:
const client = new HypercertClient({
  environment: "test",
  walletClient, // optional, client will default to read-only mode if not provided
  publicClient, // optional, can be infered from walletClient if present
});

Note If there's no walletClient provided the client will run in read-only mode

  1. Use the client object to interact with the Hypercert network.

For example, you can use the client.mintClaim method to create a new claim:

const hash = await client.mintHypercert({
  metaData: { ... },
  totalUnits: 1000n,
  transferRestriction: TransferRestrictions.AllowAll,
});

This will validate the metadata, store it on IPFS, create a new hypercert on-chain and return a transaction receipt.

For more information on how to use the SDK, check out the developer documentation and the Graph playground.

That's it! With these simple steps, you can start using the Hypercert SDK in your own projects.

Config

HypercertClientConfig is a configuration object used when initializing a new instance of the HypercertClient. It allows you to customize the client by setting your own providers or deployments. At it's simplest, you only need to provide chain.id to initalize the client in readonly mode.

| Field | Type | Description | | -------------- | ------------------------ | -------------------------------------------------------------------------------------------- | | environment | 'test' \| 'production' | Defines the environment the client will connect with. | | deployments | Object | The deployments of the contracts on various networks. | | readOnly | Boolean | Boolean to assert if the client is in read-only mode. | | graphUrl | String | The URL of the graph endpoint. | | publicClient | Object | The PublicClient is inherently read-only and is used for reading data from the blockchain. | | walletClient | Object | The WalletClient is used for signing and sending transactions. |

Read-only mode

The SDK client will be in read-only mode if any of the following conditions are true:

  • The client was initialized without a wallet client.
  • The client was initialized with a wallet client connected to a chain that is not supported in the environment.

Logging

The logger for the SDK uses the log level based on the value of the LOG_LEVEL environment variable. The log level determines which log messages are printed to the console. By default, the logger is configured to log messages with a level of info or higher to the console.

Modules

Storage

The storage module is an utility service for easy access to the hypercerts API. It's built based on the OpenAPI spec exposed by the hypercerts API.

 const client = new HypercertClient({
  environment: "test",
  walletClient, // optional, client will default to read-only mode if not provided
  publicClient, // optional, can be infered from walletClient if present
});

const storage = client.storage;

const storageRequest = { metadata: {...}}
const storageResponse = await client.storage.storeMetadata(storageRequest);