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

@rankigi/otel

v1.0.0

Published

OpenTelemetry SpanProcessor that adds cryptographic receipts to AI agent spans.

Readme

@rankigi/otel

OpenTelemetry SpanProcessor that adds cryptographic receipts to your AI agent spans.

The processor runs alongside your existing OTel exporters — it does not replace them. Keep Datadog, Honeycomb, Jaeger, or whatever you have. RANKIGI just adds a tamper-evident proof layer for the spans that matter for governance.

Install

npm install @rankigi/otel @rankigi/sdk

Setup

First, enroll a connector passport in your RANKIGI dashboard (Agents → New, type "connector"). Copy the credentials into your environment:

RANKIGI_API_KEY=rnk_...
RANKIGI_AGENT_ID=<uuid>
RANKIGI_PASSPORT_ID=<uuid>
RANKIGI_SIGNING_KEY=<base64 ed25519 seed>

Then add the processor to your existing OTel pipeline:

import { createRankigiProcessor } from "@rankigi/otel";
import { NodeSDK } from "@opentelemetry/sdk-node";

const sdk = new NodeSDK({
  spanProcessors: [
    createRankigiProcessor(),
    // your existing exporters stay here -- Datadog, Honeycomb, etc.
  ],
});
sdk.start();

That's it. Every AI span now gets a cryptographic receipt.

If you'd rather construct the client explicitly (e.g. you're sharing one Rankigi instance across multiple subsystems), pass client:

import { Rankigi } from "@rankigi/sdk";
import { createRankigiProcessor } from "@rankigi/otel";

const rankigi = Rankigi.fromEnv();
const processor = createRankigiProcessor({ client: rankigi });

What gets hashed (never leaves your process in raw form)

These OpenTelemetry GenAI attributes are SHA-256-hashed locally before any network call:

  • gen_ai.input.messages (prompts)
  • gen_ai.output.messages (completions)
  • gen_ai.system_instructions
  • gen_ai.tool.call.arguments
  • gen_ai.tool.call.result
  • gen_ai.tool.definitions
  • llm.input_messages, llm.output_messages
  • llm.prompts, llm.completions

What gets sent to RANKIGI

  • Span name, duration, status
  • Trace ID, span ID, parent span ID (for chain linking and incident replay)
  • Model name (gen_ai.request.model), token counts (gen_ai.usage.*)
  • All other non-sensitive span attributes
  • SHA-256 hashes of the sensitive fields above

Filtering

Only spans whose names start with gen_ai., llm., langchain., openai., anthropic., tool., or agent. are processed. Everything else is silently ignored so your HTTP and database spans don't end up on the audit chain.

Override with spanNamePrefixes:

createRankigiProcessor({
  spanNamePrefixes: ["gen_ai.", "my.custom.prefix."],
});

Backpressure

  • In-memory queue cap: maxQueueSize (default 2048). When exceeded, new spans are dropped silently. Set logDropped: true to surface drops.
  • Auto-flush cadence: flushTimeoutMs (default 5000ms).
  • await processor.forceFlush() drains immediately.
  • await processor.shutdown() flushes and stops accepting new spans.

The processor will never throw into the OTel pipeline. If RANKIGI is unreachable the events are absorbed and dropped on the floor — the AI agent keeps running normally.

Verify receipts offline

python3 verify.py --receipt receipt.json --rekor

License

MIT