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

@herbcaudill/ralph

v1.2.0

Published

Autonomous AI session engine for Claude CLI

Readme

@herbcaudill/ralph

Autonomous AI session engine that wraps the Claude CLI to run iterative development workflows. Spawns Claude CLI processes with a custom prompt, captures streaming JSON output, displays it in a formatted terminal UI using Ink, and orchestrates multiple sessions.

Install

npm install -g @herbcaudill/ralph

Quick start

# Initialize ralph in your project
ralph init

# Run autonomous sessions
ralph

Usage

ralph [sessions]     Run N autonomous sessions (default: auto-calculated)
ralph init           Set up .ralph/ directory with workflow config
ralph --replay       Replay events from the most recent log file
ralph --replay <f>   Replay events from a specific file

Options

| Flag | Description | | ---------------------- | ------------------------------------------------------ | | --watch, -w | After completing all tasks, watch for new beads issues | | --json, -j | Output events as JSON (machine-readable mode) | | --agent <name>, -a | Agent to use: claude (default) or codex | | --replay [file] | Replay events from a log file |

Session count

By default, Ralph runs ceil(openIssues * 1.2) sessions, bounded between 10 and 100. Pass a number to override: ralph 5.

How it works

  1. Ralph combines a core prompt with your repo's .ralph/workflow.prompt.md to build the session instructions
  2. Spawns the agent CLI with --output-format stream-json
  3. The agent checks build/tests, finds available issues via bd ready, claims one, completes it, and closes it
  4. Events are streamed to the terminal UI and logged to .ralph/events-*.jsonl
  5. Sessions repeat until all issues are done or the session limit is reached

Runtime controls

| Key | Action | | -------- | --------------------------- | | Escape | Send a message to the agent | | Ctrl+T | Add a todo item | | Ctrl+S | Stop after current session | | Ctrl+P | Pause/resume |

JSON mode stdin commands

{ "type": "message", "text": "your message" }
{ "type": "stop" }
{ "type": "pause" }
{ "type": "resume" }

Configuration

After ralph init, customize .ralph/workflow.prompt.md with your repo's build commands, test commands, and task prioritization rules.

Template system

  • Core prompt (bundled) - Session lifecycle, task assignment, output tokens
  • Workflow (.ralph/workflow.prompt.md) - Repo-specific build/test commands and workflow rules

Environment variables

| Variable | Description | | ------------------- | -------------------------------------------------------------------- | | ANTHROPIC_API_KEY | Required for the Claude agent | | OPENAI_API_KEY | Optional for the Codex agent | | RALPH_DEBUG | Enable debug logging (1, or namespace like messagequeue,session) | | RALPH_CWD | Override base path for relative path rendering |

Debug logging

RALPH_DEBUG=1 ralph                    # all debug output
RALPH_DEBUG=messagequeue ralph         # specific namespace
RALPH_DEBUG=messagequeue,session ralph # multiple namespaces