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

open-ralph-loop

v0.1.0

Published

OpenCode-native Ralph Loop plugin for Lisa PRDs

Readme

Open Ralph Loop

Open Ralph Loop is an OpenCode plugin that executes Lisa PRDs one story at a time.

Lisa plans. Ralph does.

What It Does

Open Ralph adds /ralph-loop to OpenCode. It:

  1. Resolves a Lisa JSON PRD.
  2. Creates or reuses the matching progress file.
  3. Starts an OpenCode-native loop in the current session.
  4. Continues when the session goes idle until the PRD is complete or max iterations is reached.
  5. Stops only when the assistant prints <promise>COMPLETE</promise> and every userStories[].passes value is true.

No nested opencode run subprocess is used.

Install

Add the plugin to your OpenCode config:

{
  "plugin": ["open-ralph-loop"]
}

Restart OpenCode. On startup, the plugin installs these commands into ~/.config/opencode/commands/ if missing:

  • /ralph-loop
  • /cancel-ralph
  • /ralph-status

PRD Resolution

Open Ralph reads Lisa output directly.

Supported inputs:

/ralph-loop docs/specs/my-feature.json
/ralph-loop lisa/my-feature.json
/ralph-loop my-feature
/ralph-loop

Resolution order for a slug such as my-feature:

  1. docs/specs/my-feature.json
  2. lisa/my-feature.json

Progress files:

  • docs/specs/my-feature.json -> docs/specs/my-feature-progress.txt
  • lisa/my-feature.json -> lisa/my-feature-progress.txt

Story ordering:

  • If priority exists, the lowest numeric value wins.
  • Otherwise Lisa categories are used in order: setup, core, integration, polish.
  • Ties use the original array order.

Commands

/ralph-loop <spec-or-slug>

Starts a loop for a PRD path or feature slug.

/cancel-ralph

Cancels the active loop by deleting .opencode/ralph-loop.local.md.

/ralph-status

Shows active loop state, PRD path, progress path, iteration count, and next story hint.

State

Runtime state is stored in:

.opencode/ralph-loop.local.md

This file is intentionally ignored by git. Delete it to cancel a loop manually.

PRD Shape

Open Ralph expects Lisa JSON:

{
  "project": "user-authentication",
  "branchName": "ralph/user-authentication",
  "description": "User authentication",
  "userStories": [
    {
      "id": "US-001",
      "category": "setup",
      "title": "Database schema for users",
      "description": "As a developer, I want user tables created",
      "acceptanceCriteria": ["Migration creates users table"],
      "passes": false,
      "notes": ""
    }
  ]
}

Development

npm run typecheck

The plugin entrypoint is src/index.ts.

License

MIT