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

@useaop/collector

v0.4.4

Published

Local event collector and server for the Agent Observability Protocol

Readme

@useaop/collector

Local event collector, real-time dashboard, and anomaly detector for the Agent Observability Protocol.

Quick Start

npx @useaop/collector start
● aop — Agent Observability Protocol

  collector  http://localhost:4317
  dashboard  http://localhost:4317/dashboard/

  ready. waiting for agents...

One command gives you:

  • Collector on :4317 — receives events from your agents via HTTP
  • Dashboard at /dashboard/ — real-time UI to watch your agents think, with live event streaming
  • SQLite storage — all events persisted locally at ~/.aop/events.db

The dashboard opens automatically in your browser. Run an instrumented agent and watch events stream in live.

Dashboard

The bundled dashboard provides:

  • Sessions overview — all active and completed sessions with status, cost, and duration
  • Live session detail — real-time event feed as your agent runs, with metrics and confidence indicators
  • Anomaly alerts — inline warnings when loops, confidence drops, or error cascades are detected

API

| Endpoint | Description | |----------|-------------| | POST /events | Receive an AOP event | | GET /stream | SSE stream of all incoming events and alerts | | GET /sessions | List all sessions | | GET /sessions/:id | Get session with all events and alerts | | GET /sessions/:id/export | Export session as JSONL | | DELETE /sessions/:id | Delete a session and its events | | GET /health | Health check | | GET /dashboard/ | Real-time dashboard UI |

Anomaly Detection

The collector automatically detects:

  • Loop detection — same tool called 3+ times with similar inputs within 60 seconds
  • Confidence drop — agent expresses low confidence 3 times in a row
  • Error cascade — 3 consecutive tool failures

Alerts are broadcast via SSE and displayed inline in the dashboard.

Storage

Events are stored in SQLite at ~/.aop/events.db. The database is created automatically on first run.

Programmatic Usage

import { startCollector } from '@useaop/collector'

const { server, db, broadcaster } = await startCollector({
  port: 4317,
  dbPath: '/custom/path/events.db',
  openBrowser: false,
})

Community

License

MIT