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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cheqd/did-registrar

v2.7.1

Published

Universal Registrar for cheqd DID method

Readme

Universal Registrar Driver for did:cheqd

GitHub release (latest by date) GitHub Release Date GitHub license

GitHub release (latest by date including pre-releases) GitHub commits since latest release (by date) GitHub contributors

GitHub Workflow Status GitHub Workflow Status GitHub repo size

ℹ️ Overview

The purpose of this service is to provide a Universal Registrar driver for the did:cheqd DID method. Universal Registrar is a project to provide simple REST APIs for DID creation, update, and deactivation.

📖 Endpoints

  • POST /create
  • POST /update
  • POST /deactivate
  • POST /{did}/create-resource
  • POST /createResource
  • POST /updateResource
  • GET /key-pair
  • GET /did-document
  • GET /properties
  • GET /methods
  • GET /traits

🧑‍💻🛠 Developer Guide

Setup

Environment variable configuration

Environment variables needed for the Registrar are

  1. FEE_PAYER_MAINNET_MNEMONIC : The Cosmos SDK payer account mnemonic for cheqd Mainnet.
  2. FEE_PAYER_TESTNET_MNEMONIC : The Cosmos SDK payer account mnemonic for cheqd Testnet.
  3. LOCAL_STORE_TTL (default: 600): The time in seconds for the registrar to store data in cache
  4. PORT (default: 3000): The port number
  5. TESTNET_RPC_URL (default: https://rpc.cheqd.network): RPC URL for cheqd Testnet. This could be an internal RPC endpoint, if you don't use the public endpoint.
  6. MAINNET_RPC_URL (default: https://rpc.cheqd.net): RPC URL for cheqd Mainnet. This could be an internal RPC endpoint, if you don't use the default public endpoint or one of the 3rd party publicly available endpoints.
  7. RESOLVER_URL (default: https://resolver.cheqd.net): DID Resolver url supporting did:cheqd.
  8. ENABLE_FALLBACK_ENDPOINTS (default: false): Enable periodic health checks and automatic fallback.
  9. TESTNET_RPC_URL_FALLBACK (optional): Fallback RPC URL for cheqd Testnet.
  10. MAINNET_RPC_URL_FALLBACK (optional): Fallback RPC URL for cheqd Mainnet.

Fallback behavior (when enabled):

  • On startup, both primary and fallback endpoints are health-checked; if neither network has a healthy endpoint, the service fails fast.
  • Every 30 seconds, endpoints are re-checked and health statuses updated.
  • Requests use the primary endpoint when healthy; otherwise they use the fallback, and switch back automatically when the primary recovers.
  • If a request fails due to an endpoint going unhealthy between checks, a quick reconnect is attempted using the other healthy endpoint.

Clone the repository

git clone [email protected]:cheqd/did-registrar.git
cd did-registrar

Running a DID Registrar Using Docker

Build Docker container image using Dockerfile:

docker build --target cheqd-did-registrar . --tag did-registrar:local

Run the Docker container (modify according to your own build tags and other desired parameters):

docker run -it did-registrar:local

Running a DID Registrar Locally

npm install
npm run build
npm start 

🛠 Testing

This repository contains the playwright tests for unit and integration testing. Add any additional tests in the tests directory.

You must set up these two env vars before running test:

  1. TEST_PRIVATE_KEY : Private key for signing the requests
  2. TEST_PUBLIC_KEY : Corresponding public key

Then execute the tests

npm run test
# if tests fail because of parallelism, run
npm run test -- --workers=1

🐞 Bug reports & 🤔 feature requests

If you notice anything not behaving how you expected, or would like to make a suggestion / request for a new feature, please create a new issue and let us know.

💬 Community

Our Discord server is the primary chat channel for our open-source community, software developers, and node operators.

Please reach out to us there for discussions, help, and feedback on the project.

🙋 Find us elsewhere

Telegram Discord Twitter LinkedIn Medium YouTube