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

@gonzih/agent-ops

v0.24.0

Published

Universal agent control plane — type-agnostic discovery, control, metrics aggregation for cc-tg, openclaw, codex, ollama, and custom agents

Downloads

2,383

Readme

@ecoclaw/agent-ops

Ops layer for the cc-tg agent fleet — discovery, control, and log aggregation across machines.

Architecture

┌─────────────────────────────────────────────────────┐
│                  Telegram Ops Bot                   │
│  /agents /health /restart /logs /update /broadcast  │
└───────────────────┬─────────────────────────────────┘
                    │ HTTP control calls
        ┌───────────┴──────────┐
        │     Redis Registry   │  TTL-based liveness
        │  agent-ops:agent:*   │  heartbeat every 60s
        └───────────┬──────────┘
                    │ self-registers
   ┌────────────────┼────────────────┐
   ▼                ▼                ▼
cc-tg A          cc-tg B          cc-tg C
money-brain      simorgh-app      ...
:8080/status     :8081/status
:8080/restart    :8081/restart
:8080/logs       :8081/logs

Quick Start

1. Run the ops bot

OPS_BOT_TOKEN=<your-bot-token> \
REDIS_URL=redis://localhost:6379 \
CONTROL_AUTH_TOKEN=secret123 \
ALLOWED_CHAT_IDS=123456789 \
npx @ecoclaw/agent-ops

2. Integrate into cc-tg

Each cc-tg instance needs to:

  1. Call registry.register(record) on startup
  2. Call registry.heartbeat(id) every 60s
  3. Start createControlServer({ port, agentRecord, authToken }) on a free port

See ARCHITECTURE.md for the full integration spec.

Environment Variables

| Variable | Required | Description | |---|---|---| | OPS_BOT_TOKEN | Yes | Telegram bot token for the ops bot | | REDIS_URL | No | Redis connection URL (default: redis://localhost:6379) | | CONTROL_AUTH_TOKEN | No | Bearer token sent to control endpoints | | ALLOWED_CHAT_IDS | No | Comma-separated Telegram chat IDs allowed to use ops bot |

Commands

| Command | Description | |---|---| | /agents | List all registered agents with liveness status | | /health | Fleet health summary | | /restart <id> | Restart a specific agent (launchd respawns = auto-update) | | /logs <id> | Tail last 50 lines from agent log file | | /update all | Restart all agents | | /broadcast <msg> | Broadcast message guidance |