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

ralph-spec-agent-mem

v1.0.0

Published

Ralph Loop - Autonomous 9-phase feature development with spec-driven design, agent-browser E2E testing, and memory system

Readme

ralph-spec-agent-mem

Autonomous 9-phase feature development with spec-driven design, agent-browser E2E testing, and memory system

npm version License: MIT

What is Ralph Loop?

Ralph Loop is an autonomous feature development methodology that executes the complete lifecycle from specification to production merge with minimal human intervention.

The 9-Phase Cycle

1. INTERVIEW        → Capture technical decisions (spec.md)
2. THINK CRITICALLY → 11-step pre-implementation analysis (analysis.md)
3. PLAN             → Design architecture + tasks (design.md, tasks.md)
4. BRANCH           → Create isolated git worktree
5. IMPLEMENT        → Execute tasks with atomic commits
5.5 VERIFY          → Browser automation tests (agent-browser E2E) ✨ NEW
6. PR               → Auto-sync, auto-resolve conflicts, create PR
7. MERGE            → Human approval → Production
8. WRAP-UP          → Capture learnings (wrap_up.md)

Key Features

  • Spec-Driven: Every feature starts with a complete specification
  • 🤖 Agent Automation: Browser E2E tests with Anthropic's agent-browser
  • 🧠 Memory System: Context preservation across development cycles
  • 🔒 Security Filters: Automatic secret detection and filtering
  • 🔄 Git Worktrees: Isolated parallel feature development
  • 📊 Progress Tracking: Real-time status and session logs

Installation

NPM (Recommended)

# Global installation (available in all projects)
npm install -g ralph-spec-agent-mem

# Run the installer
ralph-spec-agent-mem

NPX (No installation required)

# Run directly
npx ralph-spec-agent-mem

Installation Options

The interactive installer offers 3 options:

  1. Global Installation~/.claude/

    • Available in ALL projects
    • Commands/skills work everywhere
  2. Project-Level Installation./.claude/

    • Only in current project
    • Project-specific customization
  3. Both (Recommended)

    • Global: Core methodology
    • Project: Project-specific overrides

What Gets Installed?

  • ✅ Ralph Loop scripts (ralph-feature.sh, ralph-feature.ps1)
  • ✅ Claude commands (/ralph, /interview, /think-critically, /plan)
  • ✅ Claude skills (autonomous loop execution)
  • ✅ Memory system (.memory-system/ with security filters)
  • ✅ Feature templates (docs/features/_template/)
  • ✅ Documentation (complete guides)

Quick Start

1. Create a Feature

mkdir -p docs/features/FEAT-001-auth
cp -r docs/features/_template/* docs/features/FEAT-001-auth/

2. Run Ralph Loop

# Bash/Linux/macOS
./ralph-feature.sh FEAT-001-auth

# PowerShell/Windows
.\ralph-feature.ps1 FEAT-001-auth

3. Or Use Claude Commands

claude code .
# In Claude:
/ralph FEAT-001-auth

Phase 5.5: VERIFY (Browser E2E Testing)

Ralph Loop now includes automatic browser testing using Anthropic's agent-browser.

Auto-runs when:

  • ✅ Frontend files changed (tsx/jsx/css/scss)
  • ✅ Test scripts exist in docs/features/FEAT-XXX/tests/

Features:

  • 🤖 Agent-browser CLI for E2E tests
  • 🔒 Security filters prevent secret leakage
  • 📸 Screenshots + console logs
  • 🚫 Blocks PR if tests fail

Example test structure:

docs/features/FEAT-001-auth/
├── tests/
│   ├── e2e-flow.sh          # Main E2E test
│   ├── e2e-smoke.sh         # Quick smoke test
│   ├── helpers.sh           # Reusable functions
│   └── test-config.json     # Test configuration
└── test-results/
    ├── screenshots/
    ├── console.log
    └── network.log

Available Commands

Once installed, you can use:

# Autonomous loop (processes all phases)
/ralph FEAT-XXX

# Individual phases
/interview FEAT-XXX          # Phase 1: Capture spec
/think-critically FEAT-XXX   # Phase 2: Critical analysis
/plan FEAT-XXX               # Phase 3: Design + tasks
/implement FEAT-XXX          # Phase 5: Execute tasks
/wrap-up FEAT-XXX            # Phase 8: Document learnings

# Git operations
/git commit "message"
/git pr
/git sync

Documentation

Architecture

Ralph Loop uses git worktrees for parallel feature development:

project/                            ← Main repo
project-FEAT-001-auth-loop/         ← Worktree for FEAT-001
project-FEAT-002-api-loop/          ← Worktree for FEAT-002
project-FEAT-003-dashboard-loop/    ← Worktree for FEAT-003

Benefits:

  • Zero conflicts between parallel features
  • Independent branches per feature
  • Clean state for each loop
  • Automatic cleanup after merge

Security

Ralph Loop includes comprehensive security features:

  • 🔒 Pre-commit hooks: Block secrets before they're committed
  • 🛡️ Security filters: 6 pattern types (API keys, tokens, passwords, AWS, private keys, DB URLs)
  • 🧪 Test data isolation: Per-feature test users prevent conflicts
  • 📦 Version locking: [email protected] prevents breaking changes

Requirements

  • Git
  • GitHub CLI (gh)
  • Claude CLI (claude) - recommended
  • Node.js 14+ (for agent-browser)
  • Python 3 (for JSON manipulation)

Contributing

Contributions welcome! This is a methodology repository - improve the process, not specific code.

License

MIT License - see LICENSE

Author

Eduardo Mesones (@edumesones)

Support


Made with ❤️ for autonomous development