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

@keytrace/runner

v0.0.12

Published

Core verification library for Keytrace identity claims. Matches claim URIs to service providers, fetches proofs, and verifies ownership.

Readme

@keytrace/runner

Core verification library for Keytrace identity claims. Matches claim URIs to service providers, fetches proofs, and verifies ownership.

This library is still very work in progress, and not fully built out for folks who want to run the full verification proofing system. You can use @keytrace/claims to get a list of claims and verify they are real based on public key encryption.

This would allow you to do the HTTP and DNS requests necessary to make the initial proof.

Installation

npm install @keytrace/runner

Usage

Verify a Claim

import { createClaim, verifyClaim, ClaimStatus } from '@keytrace/runner';

// Create and verify a claim
const claim = createClaim('https://gist.github.com/octocat/abc123', 'did:plc:xyz789');
const result = await verifyClaim(claim);

if (result.status === ClaimStatus.VERIFIED) {
  console.log('Claim verified!');
  console.log('Identity:', result.identity);
} else {
  console.log('Verification failed:', result.errors);
}

Fetch a User's Profile and Claims

import { fetchProfile, verifyAllClaims, getProfileSummary } from '@keytrace/runner';

// Fetch profile and claims from ATProto
const profile = await fetchProfile('alice.bsky.social');

// Verify all claims
const verified = await verifyAllClaims(profile);

// Get summary
const summary = getProfileSummary(verified);
console.log(`${summary.verified}/${summary.total} claims verified`);

Match URIs to Service Providers

import { serviceProviders } from '@keytrace/runner';

const matches = serviceProviders.matchUri('https://gist.github.com/octocat/abc123');
// [{ provider: { id: 'github', name: 'GitHub', ... }, match: [...], isAmbiguous: false }]

const matches2 = serviceProviders.matchUri('dns:example.com');
// [{ provider: { id: 'dns', name: 'Domain', ... }, match: [...], isAmbiguous: false }]

Service Providers

Built-in providers for identity verification:

| Provider | URI Pattern | Proof Location | |----------|-------------|----------------| | GitHub | https://gist.github.com/user/id | Gist content | | DNS | dns:example.com | TXT record | | Mastodon | https://instance/@user | Profile bio/fields | | Bluesky | https://bsky.app/profile/handle | Profile bio | | npm | https://npmjs.com/package/keytrace-handle | package.json |

API

Claims

// Create a claim
createClaim(uri: string, did: string): ClaimState

// Match claim to service providers
matchClaim(claim: ClaimState): void

// Verify claim by fetching proof
verifyClaim(claim: ClaimState, options?: VerifyOptions): Promise<ClaimVerificationResult>

// Check if claim matches multiple providers
isClaimAmbiguous(claim: ClaimState): boolean

Profiles

// Fetch profile and claims from ATProto
fetchProfile(handleOrDid: string): Promise<FetchedProfile>

// Verify all claims in a profile
verifyAllClaims(profile: FetchedProfile): Promise<FetchedProfile>

// Get verification summary
getProfileSummary(profile: FetchedProfile): { total: number; verified: number; failed: number }

Service Providers

import { serviceProviders } from '@keytrace/runner';

// Match URI to providers
serviceProviders.matchUri(uri: string): ServiceProviderMatch[]

// Get all providers
serviceProviders.all: ServiceProvider[]

// Get provider by ID
serviceProviders.get(id: string): ServiceProvider | undefined

Claim Status

enum ClaimStatus {
  INIT = 'init',           // Created, not yet matched
  MATCHED = 'matched',     // URI matched to provider
  VERIFIED = 'verified',   // Proof verified successfully
  FAILED = 'failed',       // Proof verification failed
  ERROR = 'error',         // Error during verification
}

Verification Options

interface VerifyOptions {
  timeout?: number;        // Request timeout in ms (default: 10000)
  fetch?: typeof fetch;    // Custom fetch function
}