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

claude-heartbeat

v0.1.0

Published

A background daemon that periodically wakes Claude Code using a HEARTBEAT.md checklist

Downloads

91

Readme

claude-heartbeat

A background daemon that periodically wakes Claude Code using a HEARTBEAT.md checklist.

Inspired by OpenClaw's heartbeat mechanism and WakeClaude.

How it works

  1. You define a HEARTBEAT.md checklist in your project root with items to monitor
  2. You configure intervals, active hours, and optional scheduled tasks in heartbeat.config.json
  3. The daemon periodically invokes claude CLI with your checklist as context
  4. Claude checks each item and responds with HEARTBEAT_OK (all clear) or an alert

Quick start

# Install
npm install -g claude-heartbeat

# Initialize config files in your project
claude-heartbeat init

# Edit HEARTBEAT.md with your checklist
# Edit heartbeat.config.json with your preferences

# Start the daemon
claude-heartbeat start

# Or run a single heartbeat
claude-heartbeat run

Commands

| Command | Description | |---------|-------------| | start | Start the heartbeat daemon (background by default) | | start -f | Run in foreground mode | | stop | Stop the running daemon | | status | Show daemon status (PID, uptime) | | run | Run a single heartbeat immediately | | logs | View recent heartbeat logs | | logs -n 50 | View last 50 log entries | | init | Create example config files |

Configuration

heartbeat.config.json

{
  "interval": "30m",
  "model": "sonnet",
  "permissions": "plan",
  "heartbeatFile": "HEARTBEAT.md",
  "ackMaxChars": 300,
  "logRetention": 50,
  "activeHours": {
    "start": "09:00",
    "end": "22:00",
    "timezone": "America/Los_Angeles"
  },
  "schedules": [
    {
      "id": "nightly-review",
      "prompt": "Review the project for any issues and summarize.",
      "cron": "0 2 * * *",
      "model": "sonnet",
      "enabled": true
    }
  ]
}

| Field | Default | Description | |-------|---------|-------------| | interval | "30m" | Time between heartbeats ("15m", "1h", "2h30m") | | model | "sonnet" | Claude model to use | | permissions | "plan" | "plan" (read-only), "acceptEdits", or "bypassPermissions" | | heartbeatFile | "HEARTBEAT.md" | Path to checklist file | | ackMaxChars | 300 | Max chars for OK acknowledgments | | logRetention | 50 | Number of log entries to keep | | activeHours | none | Restrict heartbeats to a time window | | schedules | [] | Cron-scheduled one-off prompts |

HEARTBEAT.md

A markdown checklist that Claude reads each cycle. Keep it concise.

# Heartbeat Checklist

- [ ] Are tests passing?
- [ ] Any new error logs or warnings?
- [ ] Is the build succeeding?
- [ ] Any open issues that need attention?

Response protocol

  • HEARTBEAT_OK: Claude starts its response with this token when everything is fine. The daemon logs it quietly.
  • Alert: Any response without HEARTBEAT_OK is treated as an alert and surfaced in logs.
  • Error: CLI failures, timeouts, or missing files are logged as errors.

Scheduled tasks

In addition to periodic heartbeats, you can schedule one-off prompts using cron expressions:

{
  "schedules": [
    {
      "id": "morning-standup",
      "prompt": "Summarize recent commits and open PRs for the daily standup.",
      "cron": "0 9 * * 1-5",
      "model": "sonnet"
    }
  ]
}

Logs

Logs are stored in .heartbeat/heartbeat.log.jsonl as JSON lines:

{"timestamp":"2026-02-10T10:30:00.000Z","type":"heartbeat","status":"ok","response":"All checks passing.","durationMs":4523}

View them with claude-heartbeat logs.

Prerequisites

License

MIT