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

@useairfoil/traceview

v0.4.1

Published

Fetch an OpenTelemetry trace from Axiom or Jaeger and render it into a single, deterministic Markdown file — structured for human reading and LLM agent consumption.

Readme

@useairfoil/traceview

Fetch an OpenTelemetry trace from Axiom or Jaeger and render it into a single, deterministic Markdown file — structured for human reading and LLM agent consumption.

Install

npm install -g @useairfoil/traceview
# or
pnpm add -g @useairfoil/traceview

Quick start

traceview <trace-id> --source axiom

The rendered Markdown is written to ./traces/<trace-id>.md. If the render is small enough, traceview also prints a plain-text terminal preview; large traces only print a warning and the artifact path.


CLI

traceview <trace-id> --source <axiom|jaeger> [--out-dir <dir>]

| Flag | Default | Description | | ----------- | -------- | ------------------------------------------ | | --source | required | axiom or jaeger | | --out-dir | traces | Directory where <trace-id>.md is written |

Examples

# Fetch from Axiom and write to ./traces/
traceview abc123 --source axiom

# Fetch from Jaeger, write to a custom directory
traceview abc123 --source jaeger --out-dir ./tmp/traces

Sources

Axiom

Set these environment variables before running:

AXIOM_API_TOKEN=<your-query-token>
AXIOM_DATASET=your-dataset-name
AXIOM_DOMAIN=https://api.axiom.co     # optional — this is the default

Optionally narrow the query to a time window (ISO 8601):

AXIOM_START_TIME=2026-05-09T00:00:00Z
AXIOM_END_TIME=2026-05-10T00:00:00Z

Without a time window, Axiom searches the full dataset history. Specifying a window speeds up the query significantly for large datasets. Axiom span timing is read from normal OTel timestamp fields or from _time plus duration.

Jaeger

JAEGER_BASE_URL=http://localhost:16686  # optional — this is the default

Optionally narrow the query to a time window:

JAEGER_START_TIME=2026-05-09T00:00:00Z
JAEGER_END_TIME=2026-05-10T00:00:00Z

Traceview reads Jaeger v3 trace responses from /api/v3/traces/:id and normalizes standard OTel span kind and status values for display.


Output

The Markdown artifact has four sections:

Metadata table — trace ID, source, span count, total duration.

Tree — ASCII span tree showing parent-child relationships and timing at a glance.

S1 connector.batch.process [internal] [OK] 843.0ms
├─ S1.1 connector.publish [producer] [OK] 12.3ms
└─ S1.2 connector.state.set [internal] [OK] 0.8ms

Index — flat list of all spans with their IDs.

Spans — full detail for each span: span ID, kind, status, duration, attributes, and events.

For terminal output, traceview renders the same information in plain text without Markdown headings, tables, or code fences.

Span IDs

Spans are assigned positional IDs (S1, S1.1, S1.2.3) based on their position in the tree, sorted by start time. The same trace always produces the same IDs regardless of the order spans are returned by the backend — so an LLM agent can reference S1.2 across multiple renders.

Sensitive value redaction

Attribute values are automatically redacted if their key matches any of: authorization, cookie, set-cookie, token, secret, password, signature, api-key, apikey, x-api-key. Redaction applies recursively to nested objects and arrays.