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

@mnemom/aip-otel-exporter

v0.1.0

Published

OpenTelemetry exporter for AIP integrity checkpoints and AAP verification results

Readme

@mnemom/aip-otel-exporter

npm License

OpenTelemetry exporter for AIP integrity checkpoints and AAP verification results.

Send AIP/AAP telemetry to any OTel-compatible observability platform (Langfuse, Arize Phoenix, Datadog, Grafana) with zero custom code.

Three Layers

| Layer | Import | OTel SDK Required | Use Case | |---|---|---|---| | Manual API | @mnemom/aip-otel-exporter | Yes | Works everywhere with OTel SDK | | Auto-instrumentation | @mnemom/aip-otel-exporter/auto | Yes | Wraps AIP/AAP calls automatically (Node.js) | | CF Workers adapter | @mnemom/aip-otel-exporter/workers | No | Cloudflare Workers (no OTel SDK needed) |

Installation

npm install @mnemom/aip-otel-exporter
# Peer dependency (optional — required for Manual API and Auto-instrumentation):
npm install @opentelemetry/api

Quick Start

Manual API

import { NodeTracerProvider } from "@opentelemetry/sdk-trace-base";
import { createAIPOTelRecorder } from "@mnemom/aip-otel-exporter";

const provider = new NodeTracerProvider();
// ... configure your OTLP exporter (Langfuse, Datadog, etc.)
provider.register();

const recorder = createAIPOTelRecorder({ tracerProvider: provider });

// After an AIP integrity check:
recorder.recordIntegrityCheck(signal);

// After an AAP verification:
recorder.recordVerification(result);

// After an AAP coherence check:
recorder.recordCoherence(result);

// After AAP drift detection:
recorder.recordDrift(alerts, tracesAnalyzed);

Auto-instrumentation (Node.js)

import { instrument } from "@mnemom/aip-otel-exporter/auto";

// Automatically wraps AIPClient.check() and verifyTrace()
instrument();

Cloudflare Workers

import { createWorkersExporter } from "@mnemom/aip-otel-exporter/workers";

export default {
  async fetch(request, env, ctx) {
    const exporter = createWorkersExporter({
      endpoint: env.OTLP_ENDPOINT,
      authorization: `Bearer ${env.OTLP_TOKEN}`,
    });

    // ... your handler logic ...
    exporter.recordIntegrityCheck(signal);

    ctx.waitUntil(exporter.flush());
    return new Response("OK");
  },
};

Span Hierarchy

Integrity/alignment spans are children of the current active span:

invoke_agent (existing)
  └── aip.integrity_check (our span)
       ├── event: aip.concern (one per concern)
       └── event: aip.drift_alert (conditional)
  └── aap.verify_trace (our span)
       └── event: aap.violation (one per violation)

Attributes

aip.integrity_check span

| Attribute | Type | Description | |---|---|---| | aip.integrity.checkpoint_id | string | Checkpoint ID | | aip.integrity.verdict | string | clear / review_needed / boundary_violation | | aip.integrity.proceed | boolean | Whether to proceed | | aip.integrity.recommended_action | string | Recommended action | | aip.integrity.concerns_count | int | Number of concerns | | aip.integrity.agent_id | string | Agent ID | | aip.integrity.card_id | string | Alignment Card ID | | aip.integrity.session_id | string | Session ID | | aip.integrity.thinking_hash | string | SHA-256 of thinking block | | aip.integrity.analysis_model | string | Analysis LLM model | | aip.integrity.analysis_duration_ms | float | Analysis duration | | aip.integrity.thinking_tokens | int | Original thinking tokens | | aip.integrity.truncated | boolean | Whether thinking was truncated | | aip.integrity.extraction_confidence | float | Extraction confidence | | aip.conscience.consultation_depth | string | surface / standard / deep | | aip.conscience.values_checked_count | int | Values checked count | | aip.conscience.conflicts_count | int | Conflicts count | | aip.window.size | int | Window size | | aip.window.integrity_ratio | float | Integrity ratio (0.0-1.0) | | aip.window.drift_alert_active | boolean | Drift alert active | | gen_ai.evaluation.verdict | string | GenAI SIG alias | | gen_ai.evaluation.score | float | GenAI SIG alias |

aap.verify_trace span

| Attribute | Type | |---|---| | aap.verification.result | boolean | | aap.verification.similarity_score | float | | aap.verification.violations_count | int | | aap.verification.warnings_count | int | | aap.verification.trace_id | string | | aap.verification.card_id | string | | aap.verification.duration_ms | float | | aap.verification.checks_performed | string |

Metrics

| Metric | Type | Labels | |---|---|---| | aip.integrity_checks.total | Counter | verdict, agent_id | | aip.concerns.total | Counter | category, severity | | aip.analysis.duration_ms | Histogram | verdict | | aip.window.integrity_ratio | Histogram | — | | aip.drift_alerts.total | Counter | — | | aap.verifications.total | Counter | verified | | aap.violations.total | Counter | type, severity | | aap.verification.duration_ms | Histogram | — | | aap.coherence.score | Histogram | compatible |

Dashboard Templates

Pre-built dashboards are included in the dashboards/ directory:

  • grafana-aip-overview.json — Grafana system overview
  • grafana-aip-detail.json — Grafana per-agent deep-dive
  • datadog-aip-overview.json — Datadog importable dashboard

See dashboards/README.md for import instructions.

Performance

| Operation | Target | Actual | |---|---|---| | recordIntegrityCheck() | <1ms | Run npm run bench | | recordVerification() | <1ms | Run npm run bench | | Workers OTLP serialize | <0.5ms | Run npm run bench |

License

Apache 2.0