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

vorlo-trace

v0.3.2

Published

The debugger for AI agents — add 2 lines, replay every run, get the plain-English root cause and exact fix in 30 seconds.

Readme

vorlo-trace

The debugger for AI agents — TypeScript/JS edition. Add 2 lines of code to see exactly which step of your agent failed, the plain-English root cause, and the exact fix — in 30 seconds.

This is the TypeScript counterpart to the Python vorlo-trace package — same ingest contract, same dashboard.

Quick Start

npm install vorlo-trace
import * as vorlo from 'vorlo-trace';
import { AgentExecutor } from 'langchain/agents';

// 1. Initialize Vorlo (or set VORLO_API_KEY env var)
vorlo.init({ apiKey: 'vrlo_your_key_here', agentName: 'my-agent' });

// 2. Add the handler to your agent
const result = await agentExecutor.invoke(
  { input: 'Check my latest emails' },
  { callbacks: [vorlo.getHandler()] },
);

That's it. Open vorlo.dev to see every step your agent took, with:

  • Step Replay — chronological view of every tool call
  • Root Cause — plain English explanation, not raw HTTP errors
  • Fix Hints — specific, actionable steps to resolve the issue
  • LLM Reasoning — why the agent made each decision

What You See

Without Vorlo:

ToolError: 403

With Vorlo:

Stripe authentication failed.
The credentials used for 'stripe_charge' were rejected by the upstream service.
Fix: Check your Stripe API key in Settings → Integrations.

How It Works

Vorlo implements LangChain.js's BaseCallbackHandler. It captures:

  1. Every tool call (input, output, latency)
  2. Every LLM reasoning step (chain of thought)
  3. Every error (translated to plain English with fix hints)
  4. Cross-step context (what data flowed between steps)

All sends are fire-and-forget — Vorlo never slows or crashes your agent, even if the Vorlo server is unreachable.

Features

  • 2-line integration — works with any LangChain.js agent
  • Sensor/Actuator classification — reads vs writes, clearly labeled
  • Cross-step root cause — understands data flow between steps
  • OTel-compatibletrace_id, span_id, parent_span_id for enterprise export
  • Zero impact — async fetch, bounded in-flight queue, silent failures

Convenience wrapper

import * as vorlo from 'vorlo-trace';

vorlo.init({ apiKey: 'vrlo_...' });
const out = await vorlo.trace(agentExecutor, { input: 'Check my latest emails' });

MCP server — debug from inside your editor

The package ships a zero-dependency MCP server, so Claude Code / Cursor / any MCP client can ask Vorlo "why did my last run fail?" without leaving the editor:

claude mcp add vorlo --env VORLO_API_KEY=vrlo_... -- npx -y -p vorlo-trace vorlo-mcp

Tools: why_did_my_last_run_fail, get_session_diagnosis, list_recent_sessions, get_failure_clusters.

Configuration

vorlo.init({
  apiKey: 'vrlo_...',          // or set VORLO_API_KEY env var
  serverUrl: 'https://...',    // or set VORLO_SERVER_URL env var
  agentName: 'order-processor' // shown in dashboard
});

Environment Variables

| Variable | Description | |---|---| | VORLO_API_KEY | Your Vorlo API key | | VORLO_SERVER_URL | Custom server URL (default: production) | | VORLO_DEBUG | Set to 1 for debug logging to stderr |

Requirements

  • Node.js >= 18 (uses the global fetch)
  • @langchain/core >= 0.1.0 (peer dependency)
  • ESM only

License

MIT — see LICENSE