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

process-watchdog

v1.2.0

Published

Modular PC health agent for the aidev.com.au ecosystem

Readme

Process Watchdog

npm version

Modular PC health agent for the aidev.com.au ecosystem.


Features

  • 5 built-in plugins: process-guard, memory-monitor, disk-health, startup-optimizer, cpu-monitor
  • REST API on port 3400 (/api/v1)
  • watchdog CLI tool
  • Windows service support via node-windows
  • aidev.com.au dashboard integration (totalRecall, mah)

Quick Start

npm install -g process-watchdog

watchdog status   # one-shot health check
watchdog start    # run continuously with scheduler

CLI Commands

| Command | Description | |----------------------------|----------------------------------------------------| | watchdog start | Load config, start scheduler, watch continuously | | watchdog stop | Stop the running watchdog process | | watchdog status | Run check() on each plugin and print a summary | | watchdog check [plugin] | Detailed metrics for all or a specific plugin | | watchdog fix [plugin] | Run fix() for all or a specific plugin | | watchdog api start | Start the HTTP REST API server | | watchdog install-service | Install watchdog as a Windows system service | | watchdog uninstall-service | Uninstall the Windows system service |


Plugins

| Plugin | Description | Default Interval | Auto-Fix | |---------------------|----------------------------------------------|-----------------|----------| | process-guard | Kills runaway node/cmd/bash processes | 5 min | Yes | | memory-monitor | Alerts on high RAM usage | 2 min | No | | disk-health | Checks disk usage and cleans temp files | 30 min | Yes | | startup-optimizer | Audits startup programs | On demand | No | | cpu-monitor | Alerts on sustained high CPU usage | 2 min | No |


API Endpoints

All routes are prefixed with /api/v1.

| Method | Endpoint | Description | |--------|------------------------|------------------------------------------------------| | GET | /health | Overall service health and per-plugin status | | GET | /plugins | List all plugins with config and last check time | | GET | /plugins/:name | Plugin details and last 50 history entries | | POST | /plugins/:name/run | Run check or fix on a plugin ({ action } body) | | GET | /history | Check/fix history (query: plugin, limit) | | GET | /config | Current active configuration |


Configuration

Default configconfig/default.json in the package.

User override~/.aidev/watchdog.json (merged over defaults at startup).

Key options:

{
  "port": 3400,
  "logLevel": "info",
  "historyRetentionDays": 30,
  "plugins": {
    "process-guard": { "enabled": true, "interval": 300000, "autoFix": true },
    "memory-monitor": { "enabled": true, "interval": 120000, "autoFix": false }
    // ...
  }
}

History and the SQLite database are stored at ~/.aidev/watchdog.db.


Dashboard

Open dashboard/watchdog.html in a browser while the API server is running to view a live health overview compatible with aidev.com.au.


Development

npm run build   # compile TypeScript → dist/
npm test        # run tests with vitest
npm run dev     # run from source with tsx (no build step)

License

MIT