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

zega-cc-agent

v1.0.0

Published

SRE Control Center Agent - connects to backend and provides AWS/K8s/SSH capabilities

Readme

SRE Control Center Agent

A daemon agent that connects to the SRE Control Center backend and provides:

  • AWS EC2 instance management
  • AWS Lambda function management
  • Kubernetes workload management
  • SSH/SSM terminal access
  • LDAP authentication

Installation

npm install -g zega-cc-agent

Configuration

Set the following environment variables:

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | BACKEND_URL | No | http://localhost:4000 | Backend server URL | | AGENT_API_KEY | Yes | - | API key from Settings > Agents | | CACHE_REFRESH_INTERVAL | No | 180000 | Data refresh interval (ms) |

Usage

Direct execution

export BACKEND_URL=https://sre.example.com
export AGENT_API_KEY=your-api-key-here
zega-cc-agent

As a systemd service

Create /etc/systemd/system/zega-cc-agent.service:

[Unit]
Description=SRE Control Center Agent
After=network.target

[Service]
Type=simple
User=sre-agent
Environment=BACKEND_URL=https://sre.example.com
Environment=AGENT_API_KEY=your-api-key
ExecStart=/usr/bin/zega-cc-agent
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Then:

sudo systemctl daemon-reload
sudo systemctl enable zega-cc-agent
sudo systemctl start zega-cc-agent

With PM2

npm install -g pm2

BACKEND_URL=https://sre.example.com \
AGENT_API_KEY=your-api-key \
pm2 start zega-cc-agent --name sre-agent

pm2 save
pm2 startup

With Docker

FROM node:20-alpine
RUN npm install -g zega-cc-agent
ENV BACKEND_URL=https://sre.example.com
# AGENT_API_KEY must be provided at runtime
CMD ["zega-cc-agent"]

Run:

docker run -d \
  --name sre-agent \
  --restart unless-stopped \
  -e BACKEND_URL=https://sre.example.com \
  -e AGENT_API_KEY=your-api-key \
  zega-cc-agent

Requirements

  • Node.js >= 18.0.0
  • AWS credentials configured (for EC2/Lambda)
  • Kubernetes config (for K8s features)
  • SSH keys in ~/keys/ directory (for SSH access)

Getting an API Key

  1. Log in to the SRE Control Center
  2. Go to Settings > Agents
  3. Click "New Agent"
  4. Copy the generated API key

License

MIT