The accountability layer for
autonomous systems

If anything in your stack goes silent, we guarantee something intelligent happens. Dead-man switches with escalation policies and AI-powered response.

agent.ts
import { HeartbeatKit } from '@heartbeatkit/sdk'

const hbk = new HeartbeatKit({ apiKey: process.env.HBK_KEY })

// Start a task with a 10-minute timeout
const task = await hbk.task('process-batch', { timeout: 600 })

// Do your work...
await processBatch()

// Check in when done. If this never runs, escalation fires.
await task.complete()

Built for AI-native infrastructure

Four notification channels. Three timer modes. Infinite peace of mind.

MCP

MCP-Native

Agents discover and use Heartbeat Kit directly via Model Context Protocol. No SDK wrapper needed.

AI

AI Agent Responder

When a heartbeat fails, an autonomous AI agent can investigate and take corrective action. Not just alerts — response.

WS

Real-time WebSocket

Connected clients see firing events instantly. Build live dashboards without polling.

ACK

Escalation Policies

Multi-step escalation with acknowledgment tracking. Webhook first, email second, AI agent third — stops when someone responds.

3x

Three Timer Modes

Recurring: check in every N seconds. Oneshot: fire after timeout. Scheduled: check in by 10am daily.

CF

Cloudflare Edge

Durable Objects for timer precision. Queues for reliable delivery. D1 for persistence. Global edge latency.

How it works

1

Create a heartbeat

Define interval, grace period, and attach an escalation policy.

2

Check in

Your system sends a heartbeat. Timer resets. All is well.

3

Miss a deadline

If your system goes silent, the escalation policy fires automatically.

4

Intelligent response

Webhook, email, WebSocket, or AI agent — in escalating order until acknowledged.

Start in 30 seconds

npm install @heartbeatkit/sdk — then create your first heartbeat.