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

@allhail/signoz-agent

v0.1.1

Published

Agent-first CLI for investigating SigNoz traces and logs.

Readme

signoz-agent-cli

Agent-first CLI for discovering SigNoz services, selecting a service, and searching traces/logs.

Installation

Install globally:

npm install --global @allhail/signoz-agent
signoz-agent --help

Or run a command without installing:

npx @allhail/signoz-agent doctor

For local development:

npm install
npm run build
npm link
signoz-agent doctor

Environment

The CLI reads SigNoz connection settings from environment variables:

  • SIGNOZ_API_URL: SigNoz API base URL.
  • SIGNOZ_API_KEY: SigNoz API key.

Use a local .env file or shell exports for development, but do not print or commit secrets. This repo ignores .env and .env.* files by default. Confirm env vars are present without exposing their values.

Example shell setup with placeholders:

export SIGNOZ_API_URL="<your-signoz-api-base-url>"
export SIGNOZ_API_KEY="<your-signoz-api-key>"

Commands

Run doctor first to verify configuration, authentication, and API reachability:

signoz-agent doctor

Discover recent services, select one, then search traces and logs without repeating --service:

signoz-agent services list --since 2h
signoz-agent services select checkout-api
signoz-agent traces search --since 30m
signoz-agent logs search --contains "timeout" --since 30m

Trace searches create session-local refs such as @t1; log searches create refs such as @l1. Inspect spans or fetch correlated logs with a trace ID or trace ref:

signoz-agent trace inspect @t1
signoz-agent trace logs @t1

Use direct SigNoz filter expressions when the relevant attribute is known:

signoz-agent traces search --filter "deployment.environment = 'production'" --since 2h
signoz-agent logs search --filter "request.id = 'abc123'" --since 2h

Use log body search for snippets, task IDs, or messages:

signoz-agent logs search --contains "connection timeout" --since 2h
signoz-agent logs search --contains "abc123" --raw

Add --json when an agent or script needs parsed output. Add --raw when debugging SigNoz query construction; it prints the request payload and compact response shape, not parsed rows.

If a ref is missing, rerun the search that created it or pass the full trace ID.

Validation

Before opening a PR or handing off changes, run:

npm run format:check
npm run type-check
npm run lint
npm run test