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

clawdoctor

v0.4.13

Published

Self-healing doctor for OpenClaw. Watches gateway, crons, and sessions, sends Telegram alerts, and auto-fixes what it can.

Readme

ClawDoctor

Self-healing monitor for OpenClaw. Watches your gateway, crons, sessions, auth, and budget — sends Telegram alerts and auto-fixes what it can.

Built for people running OpenClaw in production who got tired of checking if things were still alive.

Homepage: https://clawdoctor.dev | Source: https://github.com/turleydesigns/clawdoctor

Install

npm install -g clawdoctor

Requires Node 18+, Linux.

Quick Start

# Configure (interactive)
clawdoctor init

# Start monitoring daemon
clawdoctor start

Commands

clawdoctor init                               # Interactive setup
clawdoctor start                              # Start monitoring daemon
clawdoctor start --dry-run                    # Run without taking healing actions
clawdoctor stop                               # Stop daemon
clawdoctor status                             # Live health check of all monitors
clawdoctor log                                # Show recent events
clawdoctor log -n 100                         # Show 100 events
clawdoctor log -w GatewayWatcher -s critical  # Filter by watcher/severity
clawdoctor install-service                    # Install as systemd user service
clawdoctor plan                               # Show current plan and features
clawdoctor activate <key>                     # Activate a license key
clawdoctor snapshots                          # List healer action snapshots (rollback points)
clawdoctor audit                              # Show healer audit trail

What It Monitors

| Monitor | What It Watches | Interval | |---------|-----------------|----------| | GatewayWatcher | OpenClaw gateway process running | 30s | | CronWatcher | Cron jobs for failures and overdue runs | 60s | | SessionWatcher | Agent sessions for errors, aborts, stuck sessions | 60s | | AuthWatcher | Auth token expiry (warns at 24h, 4h, 1h) | 60s | | BudgetWatcher | Daily API spend vs configured limit | 5m | | CostWatcher | Per-session token costs vs rolling average | 5m |

What It Fixes

| Healer | Trigger | Action | |--------|---------|--------| | ProcessHealer | Gateway down | Restarts via openclaw gateway restart, verifies recovery | | CronHealer | Cron failing repeatedly | Logs failure with manual rerun command | | SessionHealer | Session stuck >2h | Kills session; alerts first if cost >$10 | | AuthHealer | Auth failures detected | Attempts openclaw auth refresh; alerts if fails | | BudgetHealer | Daily spend exceeded | Requests approval: kill sessions, increase limit, or ignore |

All healing actions are logged with a snapshot for rollback. Risky actions require Telegram approval before executing.

Alerts

Telegram alerts, rate-limited to max 1 per monitor per 5 minutes:

🔴 ClawDoctor Alert
Monitor: GatewayWatcher
Event: Gateway process not found
Action: openclaw gateway restart
Status: Back online
─────
Time: 2026-03-15 03:14 UTC
Host: devbox

Configuration

Config lives at ~/.clawdoctor/config.json:

{
  "openclawPath": "/root/.openclaw",
  "watchers": {
    "gateway": { "enabled": true, "interval": 30 },
    "cron": { "enabled": true, "interval": 60 },
    "session": { "enabled": true, "interval": 60 },
    "auth": { "enabled": true, "interval": 60 },
    "budget": { "enabled": true, "interval": 300 },
    "cost": { "enabled": true, "interval": 300 }
  },
  "healers": {
    "processRestart": { "enabled": true },
    "cronRetry": { "enabled": false },
    "sessionKill": { "enabled": true },
    "authRefresh": { "enabled": true }
  },
  "alerts": {
    "telegram": {
      "enabled": true,
      "botToken": "your-bot-token",
      "chatId": "your-chat-id"
    }
  },
  "dryRun": false,
  "retentionDays": 7
}

Events stored in ~/.clawdoctor/events.db (SQLite, 7-day retention by default).

Systemd

clawdoctor install-service
systemctl --user daemon-reload
systemctl --user enable clawdoctor
systemctl --user start clawdoctor

Non-Interactive Setup

clawdoctor init \
  --openclaw-path ~/.openclaw \
  --telegram-token TOKEN \
  --telegram-chat CHATID \
  --auto-fix \
  --no-prompt

Plans

| Feature | Free | Diagnose ($9/mo) | Heal ($19/mo) | |---------|------|-----------------|--------------| | Monitors | 5 | Up to 20 | Unlimited | | Event history | 7 days | 30 days | 90 days | | Alerts | Local only | Telegram, Slack, Discord | Everything in Diagnose | | Smart alerts with root cause | - | Yes | Yes | | Known-issue pattern matching | - | Yes | Yes | | Auto-fix (restart, retry) | - | - | Yes | | Approval flow for risky fixes | - | - | Yes | | Full audit trail and rollback | - | - | Yes |

Get a license key at https://clawdoctor.dev, then:

clawdoctor activate <your-key>

Or set via env:

export CLAWDOCTOR_KEY=your-key

License

MIT