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

@voidwire/llm-notify

v2.0.0

Published

Queue notifications for Claude awareness from external systems

Downloads

291

Readme

llm-notify

Queue notifications for Claude awareness from external systems.

Philosophy

Async awareness - External systems (CI, cron, monitoring) emit notifications that Claude can consume when convenient.

Three tiers - Urgent interrupts, indicators persist until acked, silent logs for audit trails.

JSONL queue - Append-only file at ~/.local/state/llm-notify/notifications.jsonl for durability and simplicity.

Quick Start

# CI build failure (urgent - Claude sees immediately)
llm-notify emit --source ci --tier urgent --message "Build failed on main"

# Daily backup complete (indicator - shown when convenient)
llm-notify emit --source cron --tier indicator --message "Daily backup completed"

# Heartbeat (silent - logged but not surfaced)
llm-notify emit --source monitoring --tier silent --message "Service healthy"

Installation

cd packages/llm-notify
bun link

Now llm-notify is available globally.

Usage

llm-notify emit --source <name> --tier <tier> --message <text>

Required Arguments

  • --source <name> - Source name (e.g., "ci", "cron", "monitoring")
  • --tier <tier> - Notification tier: urgent, indicator, silent
  • --message <text> - Human-readable message

Tiers

| Tier | Behavior | |------|----------| | urgent | Interrupt - show immediately, auto-ack after injection | | indicator | Show when convenient - persists until manually acked | | silent | Log only - never surfaced to Claude |

Output Format

{
  "success": true,
  "id": "550e8400-e29b-41d4-a716-446655440000"
}

Library Usage

import { emit } from "@voidwire/llm-notify";

const result = emit("ci", "urgent", "Build failed on main");
if (result.success) {
  console.log(`Notification queued: ${result.id}`);
}

Claude Code Integration

To wire notifications into Claude Code, create a hook that reads the queue and injects notifications into context.

Sample Hook

Create .claude/hooks/llm-notify-hook.ts:

#!/usr/bin/env bun
/**
 * llm-notify hook for Claude Code
 * Injects pending notifications into UserPromptSubmit context
 */
import { list, ack, type Notification } from "@voidwire/llm-notify";

// Get unacked notifications (urgent and indicator tiers)
const notifications = list(true).filter(
  (n) => n.tier === "urgent" || n.tier === "indicator"
);

if (notifications.length > 0) {
  // Format for context injection
  const lines = ["<notifications>"];
  for (const n of notifications) {
    lines.push(
      `  <notification tier="${n.tier}" source="${n.source}">${n.message}</notification>`
    );
  }
  lines.push("</notifications>");

  console.log(lines.join("\n"));

  // Auto-ack urgent notifications after injection
  for (const n of notifications.filter((n) => n.tier === "urgent")) {
    ack(n.id);
  }
}

Hook Configuration

Add to .claude/settings.json:

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bun run .claude/hooks/llm-notify-hook.ts"
          }
        ]
      }
    ]
  }
}

Now external systems can notify Claude:

# CI notifies Claude of build failure
llm-notify emit --source ci --tier urgent --message "Build failed on main"

# Next time you send a message, Claude sees the notification

Architecture

  • Zero dependencies - Uses Node.js built-ins only
  • XDG compliant - Respects XDG_STATE_HOME, defaults to ~/.local/state
  • Append-only - JSONL format for crash safety
  • UUID identifiers - Each notification gets a unique ID

Error Handling

Exit codes:

  • 0 - Notification queued successfully
  • 2 - Client error (missing args, write failure)

Related

  • Momentum - Claude Code workflow system that consumes these notifications
  • argus-send - Synchronous event dispatch to Argus observability