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

ralphflow

v0.5.3

Published

Multi-agent AI workflow orchestration framework for Claude Code. Define pipelines as loops, coordinate parallel agents, and ship structured work.

Readme

RalphFlow

Multi-agent AI workflow orchestration for Claude Code.

Define pipelines as loops, coordinate parallel agents via file-based trackers, and ship structured work — from single-agent interactive sessions to multi-agent autonomous execution.

Documentation | npm | GitHub

Quick Start

# In your project with a CLAUDE.md
npx ralphflow

This starts the web dashboard at http://localhost:4242 and opens it in your browser. From the dashboard you can create apps, run loops, edit prompts, monitor agents, and browse archives — all in one place.

CLI Commands

# Initialize a new flow
npx ralphflow init --template code-implementation --name my-app

# Run loops
npx ralphflow run story
npx ralphflow run tasks
npx ralphflow run tasks --multi-agent   # Multi-agent — one terminal per agent
npx ralphflow run delivery

# Run with live dashboard alongside
npx ralphflow run tasks --ui
npx ralphflow e2e --ui

# Check status
npx ralphflow status

How It Works

RalphFlow organizes work into loops — repeating cycles where Claude agents read a prompt, check a tracker, do work, update the tracker, and exit. The framework handles iteration, signal detection, and multi-agent coordination.

The default code-implementation template ships with three loops:

| Loop | Purpose | Mode | |------|---------|------| | Story Loop | Break features into stories and tasks | Interactive Claude Code session | | Tasks Loop | Implement tasks, commit code, update CLAUDE.md | Single or multi-agent (--multi-agent) | | Delivery Loop | Review completed work, gather feedback | Interactive Claude Code session |

Pipeline Flow

Story Loop          Tasks Loop              Delivery Loop
┌──────────┐       ┌──────────────┐        ┌──────────────┐
│ Describe  │──────▶│ Implement    │───────▶│ Review       │
│ features  │       │ tasks        │        │ & feedback   │
└──────────┘       └──────────────┘        └──────────────┘
                    ▲  ▲  ▲
                    │  │  │
                   agent-1 agent-2 agent-3

Web Dashboard

The dashboard (http://localhost:4242) is the primary interface for managing workflows.

Features:

  • Live pipeline view — color-coded loop status (complete/running/pending)
  • Per-loop detail — stage, active item, progress bar, agent table
  • Prompt editor — edit prompt files with Cmd+S save and dirty indicator
  • Tracker viewer — auto-updates as agents write via WebSocket
  • Model selector — per-loop model configuration (claude-sonnet-4-6, claude-opus-4-6, etc.)
  • Attention notifications — real-time alerts when Claude needs input, with desktop notifications and audio chime
  • App archiving — snapshot and reset flows to start fresh
  • Archive browser — browse past snapshots with timeline view and file viewer
  • Template creator — build custom templates with a visual config builder and live YAML preview
  • Create app — initialize new flows from built-in or custom templates
npx ralphflow dashboard              # Default port 4242
npx ralphflow dashboard -p 3000      # Custom port
npx ralphflow ui                     # Alias

Commands

npx ralphflow (no args)

Starts the dashboard and opens it in your browser. This is the recommended way to use RalphFlow.

npx ralphflow init

Scaffolds a new flow in .ralph-flow/<name>/.

npx ralphflow init                                          # Interactive — pick template and name
npx ralphflow init --template code-implementation --name api # Non-interactive
npx ralphflow init --template research --name kashi          # Research pipeline

Options:

  • -t, --template <name> — Template to use (code-implementation, research, or any custom template)
  • -n, --name <name> — Custom name for the flow

npx ralphflow run <loop>

Runs a loop. Handles the iteration cycle — spawning Claude, detecting completion signals, and restarting.

npx ralphflow run story                    # Run story loop (interactive Claude session)
npx ralphflow run tasks                    # Run tasks loop (single agent)
npx ralphflow run tasks --multi-agent      # Run as a multi-agent instance
npx ralphflow run tasks --ui              # Run with live dashboard alongside
npx ralphflow run tasks -m claude-opus-4-6  # Use a specific model

Multi-agent mode: Each terminal is one agent. Open multiple terminals, run --multi-agent in each, and they auto-assign sequential agent IDs (agent-1, agent-2, ...) via PID-based lock files.

Options:

  • --multi-agent — Run as a multi-agent instance
  • --ui — Start the web dashboard alongside execution
  • -m, --model <model> — Claude model to use (overrides per-loop config)
  • -n, --max-iterations <n> — Maximum iterations (default: 30)
  • -f, --flow <name> — Which flow to run

npx ralphflow e2e

Runs all loops end-to-end with SQLite orchestration. Skips loops already completed.

npx ralphflow e2e                   # Run all loops
npx ralphflow e2e --ui              # With live dashboard

Options:

  • --ui — Start the web dashboard alongside
  • -m, --model <model> — Claude model to use
  • -n, --max-iterations <n> — Maximum iterations per loop (default: 30)
  • -f, --flow <name> — Which flow to run

npx ralphflow status

Shows the current state of all loops.

  RalphFlow — my-app

  Loop           Stage    Active  Progress
  Story Loop     analyze  none    0/0
  Tasks Loop     —        none    3/6
  Delivery Loop  idle     none    0/0

Per-Loop Model Configuration

Each loop in ralphflow.yaml supports an optional model field:

loops:
  story-loop:
    model: claude-sonnet-4-6
  tasks-loop:
    model: claude-opus-4-6

Resolution order: CLI --model flag → per-loop model from config → Claude default. The dashboard includes a model selector dropdown to configure this per loop.

Templates

Built-in

  • code-implementation — Story → Tasks → Delivery pipeline for code projects
  • research — Discovery → Research → Story → Document pipeline for research projects

Custom Templates

Create custom templates via the dashboard's Template Creator or the API. Custom templates are stored in .ralph-flow/.templates/ and appear alongside built-in templates when creating new apps.

Multiple Flows

Run multiple flows in the same project for separate workstreams:

npx ralphflow init --template code-implementation --name frontend
npx ralphflow init --template code-implementation --name backend
npx ralphflow init --template research --name market-research

Project Structure

After npx ralphflow init --template code-implementation --name my-app:

your-project/
├── CLAUDE.md                              # Project context (read + updated by agents)
└── .ralph-flow/
    └── my-app/
        ├── ralphflow.yaml                 # Pipeline config
        ├── 00-story-loop/
        │   ├── prompt.md                  # Agent instructions
        │   ├── tracker.md                 # State tracking
        │   └── stories.md                 # Story definitions
        ├── 01-tasks-loop/
        │   ├── prompt.md
        │   ├── tracker.md
        │   └── tasks.md
        └── 02-delivery-loop/
            ├── prompt.md
            └── tracker.md

CLAUDE.md

CLAUDE.md is a first-class citizen of the workflow:

  • Story loop reads it for project context
  • Tasks loop reads it for architecture, stack, conventions, and commands — and updates it after each task
  • Delivery loop reads it for project context and patterns

RalphFlow requires CLAUDE.md to exist before initializing a flow.

Install

No install required — use npx ralphflow directly. Or install globally:

npm install -g ralphflow

Requirements

License

MIT