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

operon-agents

v0.1.0-alpha.44

Published

Public SDK entrypoint for building agents.

Readme

operon-agents

Public SDK entrypoint for building agents.

import { Agent, ChatModel, defineTool } from "operon-agents";
import { Runner, Session } from "operon-agents/advanced";

Use operon-agents from applications. operon-agents-core is the lower-level engine package.

Focused subpaths are available for larger capability areas:

import { TransportMCPServer } from "operon-agents/mcp";
import { bashTool, readTool } from "operon-agents/tools";
import { OTelTracingProcessor } from "operon-agents/tracing";

Tracing

Every session drives the TracingProcessor the infrastructure hook returns as tracing: one trace per run (a prompt and everything it triggers), spans for agents, turns, model generations, tool calls and sub-agents, the session id on every span as gen_ai.conversation.id. By default spans are metadata only. Pass content: "delta" to also record the system prompt, the messages the model was asked to answer, its output, tool arguments and results — enough to replay a conversation in a trace viewer. Local Jaeger:

docker run --rm -p 16686:16686 -p 4318:4318 jaegertracing/jaeger:2.9.0
import { NodeTracerProvider, BatchSpanProcessor } from "@opentelemetry/sdk-trace-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { resourceFromAttributes } from "@opentelemetry/resources";
import { OTelTracingProcessor } from "operon-agents/tracing";

const provider = new NodeTracerProvider({
  resource: resourceFromAttributes({ "service.name": "my-agent" }),
  spanProcessors: [new BatchSpanProcessor(new OTLPTraceExporter({ url: "http://localhost:4318/v1/traces" }))],
});
const tracing = new OTelTracingProcessor({ tracer: provider.getTracer("my-agent"), tracerProvider: provider, content: "delta", shutdownProvider: true });

const harness = await createLocalHarness({
  config: { defaults: { model } },
  infrastructure: () => ({ tracing }),
});

content: "full" repeats the entire context on every generation (trace size grows with steps × context); contentMaxChars caps each attribute; redact: true masks tokens, emails and keys before export when the collector is not on the same machine.

A run that pauses for an answer (turn.paused) ends its trace at the pause — the turn with reason paused, the suspended tool calls marked, not failed — and the run that continues it is the next trace of the same session. Spans are exported when they end, so a wait that may last days is never an open span. examples/linear-github/server/langfuse.ts shows the same processor exporting to Langfuse.