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

openclaw-aegis

v1.12.0

Published

Self-healing sidecar daemon for the OpenClaw gateway

Downloads

1,878

Readme


The Armor Your Gateway Deserves

When your OpenClaw gateway goes down, everything goes dark — Telegram, WhatsApp, all channels. Silent. No alerts, no warnings, nothing. If a bad config caused the crash, restarting won't help. The .bak files carry the same poison. You only find out hours later when someone asks why messages stopped.

Aegis doesn't let that happen.

It stands between your gateway and disaster — a tireless sentinel that detects failures in seconds, diagnoses the root cause, repairs what it can, and alerts you through channels that bypass the gateway entirely.

What It Does

| | | |---|---| | Detects | 11 health probes scan process, port, HTTP, config, WebSocket, TUN, memory, CPU, disk, logs, and channel readiness every 10 seconds | | Diagnoses | 6 failure pattern matchers identify poison configs, stale PIDs, port conflicts, permission errors, corruption, and OOM kills | | Heals | L1 restart, L2 targeted repair, L3 deep repair (network, dependencies, safe mode, disk), config rollback — all automatic | | Alerts | 8 out-of-band providers (ntfy, Telegram, WhatsApp, Slack, Discord, Email, Pushover, webhook) that work even when the gateway is dead | | Responds | Message /health on Telegram, WhatsApp, Slack, or Discord — Aegis replies with real-time status | | Observes | Prometheus metrics, structured JSON logs, health time-series, SLA reports, recovery traces | | Remembers | Full incident timeline, MTTR tracking, and a 26-endpoint REST API for dashboard integration |

Total downtime: ~15 seconds instead of hours.


Quick Start

Three commands. That's it.

# Deploy the shield
npm install -g openclaw-aegis

# Auto-detect your gateway — zero questions asked
aegis init --auto

# Confirm the shield is up
aegis check
Health: HEALTHY (score: 10)
Probes: 10 passed, 0 failed

Your gateway is now protected.


Arsenal

| Command | What It Does | |---------|-------------| | aegis init | Interactive setup — walks you through everything | | aegis init --auto | Zero-config setup — detects gateway, sets defaults | | aegis check | Run all 11 probes, get a health verdict | | aegis check --json | Machine-readable output for scripts and monitoring | | aegis status | Live dashboard — every probe, color-coded | | aegis test-alert | Fire a test alert to all configured channels | | aegis incidents | Browse past battles — what failed, what was fixed | | aegis incidents <id> | Full incident timeline with every recovery step | | aegis serve | Start REST API + bot listeners for dashboard integration |


Defense Architecture

OpenClaw Gateway                  Aegis Sidecar
┌─────────────────────┐          ┌──────────────────────────────┐
│                     │          │  Health Monitor (11 probes)  │
│  ~/.openclaw/       │◄────────►│  Config Guardian             │
│    openclaw.json    │          │  Dead Man's Switch           │
│    logs/            │          │  Recovery Orchestrator        │
│                     │          │    L1: Quick Restart         │
│  systemd/launchd    │◄─────────│    L2: Targeted Repair       │
│                     │          │    L3: Deep Repair           │
│                     │          │    L4: Human Alert           │
└─────────────────────┘          │  Alert Dispatcher            │
                                 │  (8 out-of-band providers)   │
                                 └──────────────────────────────┘
                                          │
                                    Out-of-band
                                    (never through
                                     the gateway)
                                          │
                                          ▼
                                      Your phone

Alerts bypass the gateway entirely. If the gateway is down, Aegis talks directly to Telegram, Slack, Discord, and the rest. No single point of failure.


Recovery Cascade

When Aegis detects a problem, it doesn't just restart and pray:

L1 — Quick Restart (5s) — Pre-flight config check first. If config is clean, restart with exponential backoff. If config is poisoned, skip straight to L2.

L2 — Targeted Repair (30s-2min) — Diagnose the exact failure pattern and apply the right fix. Restore known-good config, delete stale PID files, fix permissions.

L3 — Deep Repair (30s-2min) — Riskier fixes when L2 isn't enough. Network repair (DNS flush, TUN reset), process resurrection (reinstall binary), dependency rebuild, safe mode boot, and disk cleanup.

L4 — Human Alert (instant) — When auto-recovery fails, Aegis sends a full incident report through every configured channel. You get the health score, what was tried, and why it failed.

Anti-flap protection, circuit breakers, and exponential backoff prevent crash loops. Aegis won't make things worse.


Documentation

| Document | Description | |----------|-------------| | Getting Started | Installation, first setup, verification | | Architecture | Probe pipeline, recovery tiers, system design | | Configuration | Full TOML reference — every knob and dial | | Alerts | Setup guides for all 8 providers | | CLI Reference | Every command with examples | | Contributing | Dev setup, testing, PR process | | Releasing | Version bumps, npm publish, GitHub releases | | Roadmap | What's coming — intelligence, fleet management, ecosystem |


Requirements

  • Node.js >= 18
  • OpenClaw Gateway (any version with openclaw gateway health)
  • Linux (systemd) or macOS (launchd)

License

MIT — see LICENSE.

Built by Canary Builds.