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

foundry-trace-inspector-cli

v0.2.2

Published

Command-line tool to fetch and inspect Microsoft Foundry agent traces from your terminal.

Readme

foundry-trace-inspector-cli

npm CI License: MIT

Fetch and inspect Microsoft Foundry agent traces from your terminal.

Fetch responses and conversations from a Microsoft Foundry project and print them as a readable tree or JSON — straight from the command line. Built on foundry-trace-inspector-core.

Works for any model hosted on Foundry (GPT, Claude, Grok, Kimi, and others).

Usage

Run without installing:

npx foundry-trace-inspector-cli show resp_abc123 \
  --endpoint https://my-hub.services.ai.azure.com/api/projects/my-project

Or install globally to get the foundry-trace command:

npm install -g foundry-trace-inspector-cli
foundry-trace show resp_abc123 --endpoint <url>

Commands

foundry-trace show <resp_...> [<resp_...> ...]   Fetch and print one or more responses
foundry-trace conversation <conv_...>            Fetch and print a full conversation

Options

| Flag | Description | | --- | --- | | --endpoint <url> | Foundry project endpoint (or FOUNDRY_PROJECT_ENDPOINT) | | --api-key <key> | Use API-key auth (or FOUNDRY_API_KEY). Omit to use Entra ID / az login. | | --json | Print the normalized trace as JSON instead of a readable tree | | --quiet | Suppress diagnostic logging | | -h, --help | Show help |

Authentication

  • With --api-key (or FOUNDRY_API_KEY) the key is sent as the api-key header.
  • Otherwise DefaultAzureCredential is used: az login, managed identity, environment variables, and the rest of the Azure credential chain.

Examples

# One response, readable output, via az login
foundry-trace show resp_abc123 --endpoint https://my-hub.services.ai.azure.com/api/projects/my-project

# A whole conversation as JSON, using env vars
export FOUNDRY_PROJECT_ENDPOINT=https://my-hub.services.ai.azure.com/api/projects/my-project
export FOUNDRY_API_KEY=...
foundry-trace conversation conv_xyz --json

Find response IDs (resp_...) and conversation IDs (conv_...) in the Foundry portal under Agents → your agent → Traces.

License

MIT © Jubin Soni