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

@airprompter/otel-bridge

v0.2.14

Published

The AirPrompter agent SDK's telemetry spool as an OpenTelemetry exporter: minute windows become OTLP metrics (gen_ai.client.operation.duration, tokens, checks, feedback, refusals) shipped to the collector you already run — no AirPrompter grant at all. An

Readme

@airprompter/otel-bridge

The AirPrompter agent SDK's telemetry spool as an OpenTelemetry exporter. A segment's minute windows become one OTLP/HTTP JSON ExportMetricsServiceRequestgen_ai.client.operation.duration as a delta histogram in seconds, the token / check / feedback / refusal / dropped sums by the documented attributes — and go to the collector you already run, never to AirPrompter: no grant, no Agent key, no second sidecar. An UploadSink for @airprompter/agent-telemetry's uploader, in airprompterd (--upload-sink otlp --otlp-endpoint …) or in-process.

import { AirPrompterAgent } from "@airprompter/agent-sdk";
import { otlpUploadSink } from "@airprompter/otel-bridge";

const ap = await AirPrompterAgent.start({
  organizationId, agentId, target: "prod", root: { pinned },
  telemetry: { uploadSink: otlpUploadSink({ endpoint: "http://localhost:4318/v1/metrics", headers: { authorization: process.env.OTEL_TOKEN! }, resource: { "service.name": "support-bot" } }) },
});

Rules: a collector's answered refusal (4xx / 5xx) drops and counts the segment — never a spool that fills behind a misconfigured collector — while an unanswered request (the network, a timeout) keeps it under backoff, and 429 / 503 with Retry-After holds for that long; nothing here reads a prompt (the attribute keys are a closed set); the exporter is pluggable (exporter: takes @opentelemetry/exporter-metrics-otlp-proto or -grpc wrapped in a few lines). The mapping is pinned by protocol/vectors/otel-mapping.json; spoolRowsToOtlp(rows) is the pure function behind the sink.

Optional and released in lockstep with the five @airprompter/agent-* packages; depends on @airprompter/agent-core alone, and the facade never pulls it in. The full README and the compatibility table are in sdk-typescript/README.md; the mapping's prose is docs/telemetry.md. BSD-3-Clause.