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

@ixo/did-provider-x

v0.1.0

Published

Veramo SDK plugin for the did:x/ixo DID method

Readme

@ixo/did-provider-x

A Veramo / did-resolver plugin that resolves did:ixo (and the legacy did:x) DID methods against the ixo DID resolver service.

It returns resolver functions you can plug into a did-resolver Resolver or a Veramo DIDResolverPlugin, so DID documents (and their JSON-LD @context, required for verifiable-credential verification) resolve correctly.

Install

npm install @ixo/did-provider-x
# or
yarn add @ixo/did-provider-x

Usage

With did-resolver

getResolver(options?) returns a method → resolver map for ixo and x:

import { Resolver } from "did-resolver";
import { getResolver } from "@ixo/did-provider-x";

const resolver = new Resolver({
  ...getResolver(), // resolves did:ixo and did:x
});

const result = await resolver.resolve(
  "did:ixo:entity:54bede0aced5282b2401c58a048a731a"
);
console.log(result.didDocument);

Point it at a specific network's resolver with the url option:

const resolver = new Resolver({
  ...getResolver({ url: "https://resolver.devnet.ixo.earth/1.0/identifiers/" }),
});

With a Veramo agent

import { createAgent, IResolver } from "@veramo/core";
import { DIDResolverPlugin } from "@veramo/did-resolver";
import { Resolver } from "did-resolver";
import { getResolver } from "@ixo/did-provider-x";

const agent = createAgent<IResolver>({
  plugins: [
    new DIDResolverPlugin({
      resolver: new Resolver({ ...getResolver() }),
    }),
  ],
});

await agent.resolveDid({
  didUrl: "did:ixo:entity:54bede0aced5282b2401c58a048a731a",
});

Universal-resolver helpers

For resolving other DID methods through a Universal Resolver instance:

import {
  getUniversalResolver,
  getUniversalResolverFor,
} from "@ixo/did-provider-x";

// a single resolver for any method the universal resolver supports
const uni = getUniversalResolver();

// or map specific methods
const resolver = new Resolver({
  ...getUniversalResolverFor(["web", "key", "elem"]),
});

API

| Export | Description | | --- | --- | | getResolver(options?) | Returns { ixo, x } DIDResolvers for the ixo DID methods. | | IxoDidResolver | Class form of the above (new IxoDidResolver(options).build()). | | getUniversalResolver(url?) | A single DIDResolver backed by a universal resolver instance. | | getUniversalResolverFor(methods, url?) | Maps the given DID methods to a universal resolver. |

options.url (and the url argument) is the base URL of a DID resolver endpoint, ending in /1.0/identifiers/. It defaults to https://resolver.ixo.world/1.0/identifiers/.

The resolvers request the JSON-LD DID representation (Accept: application/did+ld+json), so resolved documents include their @context — required for JSON-LD verifiable-credential verification.

ixo network endpoints

| Network | RPC | DID resolver | | --- | --- | --- | | mainnet | https://impacthub.ixo.world/rpc/ | https://resolver.ixo.world/1.0/identifiers/ | | testnet | https://testnet.ixo.earth/rpc/ | https://resolver.testnet.ixo.earth/1.0/identifiers/ | | devnet | https://devnet.ixo.earth/rpc/ | https://resolver.devnet.ixo.earth/1.0/identifiers/ |

Development

yarn install
yarn build      # build the main (CommonJS) and module (ESM) outputs
yarn build:ts   # emit type declarations

License

Apache-2.0