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

clawtrace-monitor

v1.0.5

Published

CLI heartbeat agent and configuration manager for ClawTrace Monitor

Downloads

11

Readme

ClawTrace Monitor CLI

Heartbeat agent and configuration manager for ClawTrace Orchestrator. Install on any machine running an agent to send real-time metrics and manage configurations from the terminal.

Install

npm i -g clawtrace-monitor
# Or run without installing:
bun x clawtrace-monitor monitor ...

Quick Start

  1. Register at your ClawTrace dashboard and add an agent
  2. Copy the agent ID and Secret from the dashboard
  3. Run the monitor:
clawtrace monitor --saas-url=https://fleet.clawtrace.dev --agent-id=YOUR_AGENT_UUID --agent-secret=YOUR_AGENT_SECRET

Commands

monitor

Starts the heartbeat agent. Sent metrics include CPU, Memory, Uptime, and Gateway Latency.

clawtrace monitor \
  --saas-url=https://fleet.clawtrace.dev \
  --agent-id=... \
  --agent-secret=... \
  --interval=5

config

Manage local agent configuration (encrypted at rest).

# Set a value
clawtrace config set --key=openai_api_key --value=sk-... 

# Get a value
clawtrace config get --key=openai_api_key

# List all
clawtrace config list

discover

Auto-discover local ClawTrace Gateways on the network (mDNS/Bonjour).

clawtrace discover

status

Show current system metrics and agent status.

clawtrace status

install-service (Linux/macOS)

Install the monitor as a systemd service (Linux) or LaunchAgent (macOS) for persistence.

clawtrace install-service --saas-url=... --agent-id=... --agent-secret=...

Development

git clone https://github.com/alexgutscher/fleet
cd fleet/cli
npm install
npm link
clawtrace --help

Service Definition

When installed as a service, the unit file is named clawtrace-monitor.service (Linux) or com.clawtrace.monitor.plist (macOS).

Logs are written to:

  • Linux: journalctl -u clawtrace-monitor
  • macOS: /var/log/clawtrace-monitor.log or Console.app

Monitor Options

| Option | Required | Default | Description | |--------------|----------|---------|----------------------------------| | --saas-url | Yes | - | Your ClawTrace dashboard URL | | --agent-id | Yes | - | Agent UUID from dashboard | | --agent-secret| Yes | - | Agent Secret for authentication | | --interval | No | 300 | Heartbeat interval in seconds | | --status | No | healthy | Status to report (healthy/idle) | | --plugins | No | - | Path to custom metric scripts |

Config Push Options

Update your agent's configuration directly from the CLI.

| Option | Required | Description | |--------------|----------|----------------------------------| | --model | No | AI Model (e.g., claude-sonnet-4)| | --skills | No | Comma-separated list of skills | | --profile | No | Agent profile (dev, prod) | | --data-scope| No | Data access scope (full, etc.) |

Auto-Discovery

If you don't know your Gateway URL, you can scan your local network:

clawtrace discover

Plugin System

You can extend the agent's telemetry by writing custom scripts (Python, JS, or any executable) that output JSON.

Example Plugin (queue.py):

import json
print(json.dumps({"queue_length": 42, "db_status": "ok"}))

Run with Plugins:

clawtrace monitor ... --plugins=./queue.py

Service Mode

Install the agent as a background service (Linux/macOS):

clawtrace install-service --saas-url=... --agent-id=... --agent-secret=...

This will automatically create and enable:

  • Linux: systemd unit (/etc/systemd/system/clawtrace-monitor.service)
  • macOS: LaunchAgent (~/Library/LaunchAgents/com.clawtrace.monitor.plist)

Examples

# Standard 5-minute heartbeat
clawtrace monitor --saas-url=https://fleet.clawtrace.dev --agent-id=abc-123 --agent-secret=secret-123

# Push configuration update (Change model and skills)
clawtrace config push \
  --saas-url=https://fleet.clawtrace.dev \
  --agent-id=abc-123 \
  --agent-secret=secret-123 \
  --model=claude-sonnet-4 \
  --skills=code,search

# Check system status locally with plugins
clawtrace status --plugins=./queue.py

What It Reports

  • CPU usage (%)
  • Memory usage (%)
  • System uptime (hours)
  • Response latency (ms)

License

MIT