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

@waydock/pulse

v0.3.4

Published

Watch what you run: health checks, automatic restarts, and heartbeats to Waydock Pulse. One YAML file, installs as a background service on macOS and Linux.

Readme

@waydock/pulse

Pulse answers one question about the things you run: is anything down, and when did it break? This CLI is the watcher that runs on your own machines. It evaluates health checks, restarts what has died, persists state across its own restarts, and posts a heartbeat on an independent timer, so a machine that goes quiet is itself the alert. Point it at Waydock Pulse and that heartbeat opens an incident, pages your channels, and feeds the status page; leave the heartbeat out and it still watches and restarts locally, alerting through your own webhook.

npm install -g @waydock/pulse

Requires Node.js >= 20. Supported on macOS and Linux (checks and restarts rely on ps / /bin/sh); Windows is not supported yet.

Quick start

pulse init      # set up pulse.config.yaml (guided wizard; offers login + a test heartbeat)
pulse login     # authenticate this machine (device flow) -> ~/.pulse/credentials.json
pulse check     # evaluate all agents once and print a status table (no restarts, no network)
pulse start     # run the watch + heartbeat loops in the foreground
pulse install   # run Pulse as a background service so it survives reboot

All commands accept --config <path> (default: ./pulse.config.yaml).

Commands

| Command | What it does | | --- | --- | | init | Guided setup wizard (autodetects running services; chains into login → a verifying heartbeat → an optional install). --yes writes the static template. | | login / logout | Authenticate this machine / remove stored credentials. | | whoami | Show auth status, a masked key fingerprint, and where this node reports. | | check | Evaluate all agents once (re-runs the checks). --json emits machine-readable output for CI/cron. | | status | Show what the running watcher last saw, from the persisted state file (no re-evaluation) + how long ago it updated. --json too. | | logs | Tail the service log (~/.pulse/pulse.log). --follow/-f to stream, --lines/-n <count> for how many. | | start | Run the watch + heartbeat loops in the foreground. --quiet silences the per-beat status line. | | doctor | Preflight diagnostics: Node version, config, auth, ingest reachability, agent status, restart binaries on PATH. | | install / uninstall | Register/remove Pulse as a background service — launchd (macOS) or a systemd user unit (Linux); on Linux it auto-enables loginctl lingering so it starts on boot. | | upgrade | Reinstall the latest published version (npm i -g @waydock/pulse@latest). | | version | Print the CLI version (pulse --version / -v). |

A best-effort "update available" note is shown (at most once a day) when a newer version is on npm.

pulse init

Run in an interactive terminal, pulse init walks you through a few questions (what to watch, how to health-check it, how to restart it) and writes a ready-to-run config — no need to learn the YAML up front. It validates your answers against the config schema before writing, and asks before overwriting an existing file.

| Flag | Behaviour | | --- | --- | | (none, on a TTY) | Guided wizard | | -i, --interactive | Force the wizard (e.g. through a pipe) | | -y, --yes | Skip the wizard and write the static starter template |

When stdin/stdout isn't a terminal (CI, pipes, pulse init > file), it writes the static template automatically, so scripts and Dockerfiles keep working.

Configuration

pulse.config.yaml:

node: my-server            # unique name for this machine

heartbeat:
  url: https://ingest.waydock.ai/api/pulse/heartbeat
  # key is loaded from ~/.pulse/credentials.json after `pulse login`
  interval: 60             # seconds between heartbeats (also the check interval)

defaults:
  retries: 3               # restart attempts before giving up
  confirm: 2               # consecutive failed checks before marking an agent down

# Optional: local alert webhook (Discord webhook URLs are auto-detected)
webhook:
  url: https://discord.com/api/webhooks/...

# Optional: which system metrics to collect (all default to true)
metrics:
  cpu: true
  mem: true
  disk: true

agents:
  - name: my-process
    checks:
      - process: my-process-name      # substring match against `ps` output
      # - http: http://localhost:8080/health   # passes when the response is 2xx
      # - command: systemctl is-active myservice  # passes when exit code is 0
    # Optional restart command. Omit (or set `restart: false`) for alert-only.
    restart: launchctl kickstart -k gui/$(id -u)/com.example.myservice
    # retries / confirm override the defaults block per-agent

${ENV_VAR} references in the config are interpolated from the environment at load time (a missing variable is a hard error).

How it works

  • Checks — an agent is up only when all of its checks pass. A process check substring-matches ps output, http passes on a 2xx response, and command passes on exit code 0.
  • Confirm — an agent is marked down only after confirm consecutive failures, to avoid flapping.
  • Restart — on a down transition, the restart command runs with backoff up to retries times; a passing recheck in between counts as recovered.
  • Heartbeat — runs on its own independent timer, so a slow restart can never delay or block a heartbeat. Network failures are swallowed (best-effort).
  • State — agent status is persisted atomically to ~/.pulse/state.json so a process restart does not re-fire alerts for agents already known to be down.

Security / trust model

command checks and restart commands are executed via /bin/sh. They come from your local config file, so treat pulse.config.yaml as trusted input and restrict who can write to it. Credentials are stored at ~/.pulse/credentials.json with 0600 permissions.

License

MIT. See LICENSE.