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

@volcengine/tls-observer-pi

v0.0.2

Published

Export Pi plugin telemetry to Volcengine TLS with GenAI OTEL traces.

Readme

TLS Observer for Pi

Pi Coding Agent plugin that converts Pi lifecycle events into GenAI OTEL traces and exports them to Volcengine TLS.

Trace shape

agent.turn (server)
  llm.request (client)
  tool.call (client)

The plugin listens to Pi public lifecycle hooks, groups them by session and turn in memory, and exports one agent.turn trace when the turn or agent run finishes.

Configuration

Environment variables:

  • PI_TLS_EXPORT=0 disables export.
  • PI_TLS_ENV_FILE optionally points to an env file. Defaults to ~/.pi/agent/tls-observer-pi.env.
  • PI_TLS_DATA_ROOT overrides local send-log and retry state.
  • PI_TLS_CAPTURE_CONTENT=0 disables prompt/response/tool content capture.
  • PI_TLS_ENDPOINT or TRACE_TLS_ENDPOINT or TLS_ENDPOINT
  • PI_TLS_REGION or TRACE_TLS_REGION or TLS_REGION
  • PI_TLS_TRACE_TOPIC_ID or PI_TLS_TOPIC_ID or TRACE_TLS_TRACE_TOPIC_ID or TLS_TRACE_TOPIC_ID
  • PI_TLS_API_KEY or TRACE_TLS_API_KEY or TLS_API_KEY
  • PI_TLS_AK / PI_TLS_SK or TRACE_TLS_AK / TRACE_TLS_SK or TLS_AK / TLS_SK

Default data root:

~/.pi/agent/tls-observer-pi

Pi plugin loading

Install with the dedicated installer:

npm exec -y --package=@volcengine/tls-observer-pi-install -- tls-observer-pi-install

If pi is not on PATH, pass PI_TLS_PI_BIN=/absolute/path/to/pi or --pi-bin /absolute/path/to/pi.

For local installs, build the runtime package first and point the installer at the package source. The installer uses Pi CLI install semantics: pi install npm:<package> for registry installs and pi install <local-path> for local runtime packages.

cd packages/pi
rslib build
node scripts/build-package.mjs
cd ../pi-install
PI_PLUGIN_SOURCE=../pi/dist-package npm exec -y -- tls-observer-pi-install
cd -

Design notes

This implementation uses a clean-room Pi adapter. It borrows the event-aggregation idea from existing Pi tracing integrations, but the code, names, state model, and TLS span mapping are independently implemented for this repository.