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

@hona/ralph-cli

v0.1.3

Published

Ralph Driven Development using OpenCode SDK and OpenTUI

Readme

ralph

AI agent loop for autonomous task execution. Reads a plan, picks one task, completes it, commits, repeats.

Quick Start

# Install stable release
bun install -g @hona/ralph-cli

# Or install dev snapshot (latest from dev branch)
bun install -g @hona/ralph-cli@dev

# Run in any project directory
ralph

Install from Source

git clone https://github.com/hona/opencode-ralph.git
cd opencode-ralph
bun install
bun run build:single  # compiles for current platform

What is Ralph?

Ralph-driven development forces an AI agent to re-read full context every iteration, eliminating context drift. Each loop:

  1. Read plan.md
  2. Pick ONE task
  3. Complete it
  4. Commit (updating the plan in the same commit)
  5. Repeat until done

The agent never pushes—only commits—so you maintain review control.

Why it works:

  • Deterministic failures are debuggable. When Ralph fails, fix the prompt.
  • AGENTS.md accumulates wisdom so future iterations don't rediscover fire.
  • Human review checkpoint before anything goes live.

See: ghuntley.com/ralph · lukeparker.dev/stop-chatting-with-ai-start-loops-ralph-driven-development

Usage

ralph                              # uses plan.md in current directory
ralph --plan BACKLOG.md            # different plan file
ralph --model anthropic/claude-opus-4  # different model
ralph --reset                      # start fresh, ignore previous state

| Option | Default | Description | |--------|---------|-------------| | --plan, -p | plan.md | Plan file path | | --model, -m | opencode/claude-opus-4-5 | Model (provider/model format) | | --prompt | see below | Custom prompt ({plan} placeholder) | | --reset, -r | false | Reset state |

Default prompt:

READ all of {plan}. Pick ONE task. If needed, verify via web/code search (this applies to packages, knowledge, deterministic data - NEVER VERIFY EDIT TOOLS WORKED OR THAT YOU COMMITED SOMETHING. BE PRAGMATIC ABOUT EVERYTHING). Complete task. Commit change (update the plan.md in the same commit). ONLY do one task unless GLARINGLY OBVIOUS steps should run together. Update {plan}. If you learn a critical operational detail, update AGENTS.md. When ALL tasks complete, create .ralph-done and exit. NEVER GIT PUSH. ONLY COMMIT.

Keybindings

| Key | Action | |-----|--------| | p | Pause/resume | | q / Ctrl+C | Quit |

Files

| File | Purpose | |------|---------| | .ralph-state.json | Persisted state for resume after Ctrl+C | | .ralph-lock | Prevents multiple instances | | .ralph-done | Agent creates this when all tasks complete | | .ralph-pause | Created by p key to pause loop |

Add to .gitignore:

.ralph-*

Architecture

src/
├── index.ts      # CLI entry, wires TUI to loop
├── loop.ts       # Main agent loop (prompt → events → commit)
├── app.tsx       # Solid.js TUI root component
├── state.ts      # State types and persistence
├── plan.ts       # Plan file parser (checkbox counting)
├── git.ts        # Git operations (hash, diff, commits)
├── lock.ts       # Lock file management
├── prompt.ts     # User confirmation prompts
├── components/   # TUI components (header, log, footer)
└── util/         # Helpers (time formatting, logging)

Data flow: index.ts starts the TUI (app.tsx) and the loop (loop.ts) in parallel. The loop sends callbacks to update TUI state. State persists to .ralph-state.json for resume capability.

Writing Plans

The plan is everything. Invest time here.

# Project Plan

## Phase 1: Setup
- [ ] Initialize project with bun init
- [ ] Add TypeScript configuration
- [ ] Create src/index.ts entry point

## Phase 2: Core Features
- [ ] Implement user authentication
- [ ] Add database connection

Guidelines:

  • Small, isolated tasks—one commit each
  • Chronological order (dependencies first)
  • Use - [ ] checkboxes (Ralph parses these)
  • 1000+ lines is normal; more detail = fewer hallucinations

AGENTS.md

Ralph writes operational learnings here. Future iterations read it.

# AGENTS.md

## Build
- Run `bun install` before `bun run dev`

## Pitfalls
- Never import from `solid-js`, use `@opentui/solid`

When Ralph makes a mistake, add a sign to prevent it recurring.

Testing

bun test              # run all tests
bun test --watch      # watch mode
bun test --coverage   # with coverage
tests/
├── unit/         # Module isolation tests
├── integration/  # Full workflow tests
├── fixtures/     # Test plan files
└── helpers/      # Mock factories, temp file utils

Requirements

License

MIT