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

@aaac/observability

v0.1.17

Published

In-process observability for @aaac — EventCollector / Normalizer / Correlator / SqliteSink

Downloads

3,179

Readme

@aaac/observability

aaac-native, in-process observability recording for the AaaC toolchain. Records agent / process / promotion events into a local SQLite store and emits them to a generic OTEL backend. See docs/observability-spec/ for the full design.

Install

npm install @aaac/observability

Requires Node.js >= 22.5 (uses the built-in node:sqlite).

What it does

  • In-process recording: @aaac/runtime emits agent-axis spans via observer.emit(); external processes (git / Cursor hooks, CI) register events via registerExternalEvent().
  • Pipeline: EventCollector → Normalizer → Correlator (span lifecycle pairing, duration, traceId) → Enricher (TypeScript correlation completion) → SqliteSink
    • OtelEmitter.
  • CanonicalEvent internal model with cross-axis links; OTEL is the export representation (Span / SpanLink).
  • Generic OTEL aggregation: OtelEmitter batches CanonicalEvents to an OTLP-compatible backend (fail-open — local SQLite always records).
  • Query (read path): QueryAdapter over the SQLite store — span / trace / link traversal, independent of the write path.

Library usage

import { createPipeline, EventCollector } from "@aaac/observability";

CLI: aaac-observ

A thin entrypoint for external event registration and querying (interface defined via cli-contracts).

aaac-observ record --event-type process.edit --lifecycle instant --attr edit.path=src/x.ts
aaac-observ query trace --trace-id <id>

E2E Test Helpers (observability stack)

The __tests__/e2e/stack/ directory contains a full E2E harness for the aaac observability stack (ClickHouse / Tempo / Grafana). Follow-up issues (#163+) can import the shared helpers:

import {
  seedAndBackfill,
  queryClickHouse,
  assertViewRow,
  applyAnalysisViews,
  waitForSeedData,
} from '@aaac/observability/__tests__/e2e/stack/helpers.js';
import { SEED_SESSION_ID } from
  '@aaac/observability/__tests__/e2e/stack/__fixtures__/observability-stack-seed.js';
import { loadStackConfig } from '@aaac/observability/src/e2e/load-stack-config.js';

// Example usage in a follow-up E2E test:
const config = loadStackConfig();
const seed = await seedAndBackfill(config, { flushTimeoutMs: 30_000 });
await waitForSeedData(config, SEED_SESSION_ID);
const rows = await queryClickHouse<{ session_id: string }>(
  config,
  'SELECT session_id FROM aaac_agent_sessions LIMIT 1',
);
assertViewRow(rows, 'session_id', SEED_SESSION_ID);
await seed.cleanup();

See docs/observability-setup.md for full E2E run instructions.

Documentation

  • Event format and catalog: docs/observability-spec/event-catalog.md
  • Architecture: docs/observability-spec/architecture.md
  • 3-axis model: docs/observability-spec/shift-left-guidline-v2.md
  • E2E setup and run: docs/observability-setup.md

License

MIT