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

qrspi-agent

v1.1.2

Published

Structured programming agent workflow CLI for Node.js and TypeScript

Downloads

541

Readme

qrspi-agent

Structured programming agent workflow CLI for Node.js and TypeScript.

QRSPI implements an 8-stage workflow:

Questions -> Research -> Design -> Structure -> Plan -> Work Tree -> Implement -> Pull Request

It is designed to keep agent sessions aligned with a real codebase through gated stages, minimal stage context, artifact validation, and bilingual prompts.

Install

npm install -g qrspi-agent
qrspi --help

Or run it without a global install:

npx qrspi-agent --help

Quick Start

qrspi init user-authentication --root .
qrspi prompt render Q --feature user-authentication --input "Add user authentication with email+password and OAuth"
qrspi prompt export --out qrspi-prompts.md
qrspi run --input "Add user authentication with email+password and OAuth"
qrspi status

When qrspi run stops at a gate stage (D, S, PR), review the artifact in .qrspi/<feature_id>/artifacts/<STAGE>_<YYYY-MM-DD>.md. You may edit that markdown as the approved human-reviewed version, but do not edit .qrspi/<feature_id>/state.json or engine_state.json manually.

Typical next steps after run:

# Accept the current gate output
qrspi approve --root . --feature <feature_id>

# Regenerate the same gate stage
qrspi reject --root . --feature <feature_id> --comment "needs changes"
qrspi run --root . --feature <feature_id>

# Rewind to an earlier stage, then regenerate
qrspi rewind D --root . --feature <feature_id> --reason "design needs revision"
qrspi run --root . --feature <feature_id>

When a project contains multiple workflows under .qrspi/, select one explicitly:

qrspi status --feature user-authentication
qrspi run --feature user-authentication --runner mock --max-stages 1

Features

  • 8-stage workflow with human approval gates for D, S, and PR
  • Artifact persistence under .qrspi/<feature_id>/
  • Stage validation and structured parsing
  • Execution-state aware I stage: DONE, DONE_WITH_CONCERNS, BLOCKED, NEEDS_CONTEXT
  • PR precondition enforcement: only runs after a successful I stage
  • Claude Code, Codex CLI, and mock runners
  • English and Chinese prompt rendering
  • Prompt template export for review (qrspi prompt export)
  • Multiple workflow selection via --feature <id>
  • Gate rejection via qrspi reject and workflow rollback via qrspi rewind <stage>

Execution Semantics

I stage artifacts are now interpreted semantically:

  • DONE / DONE_WITH_CONCERNS: successful implementation
  • BLOCKED / NEEDS_CONTEXT: stop on I, keep the workflow on the same stage, and require human follow-up

PR is not allowed to run unless there is already a successful I run in workflow history.

Common Commands

qrspi init <feature_id> --root .
qrspi list --root .
qrspi status --root . --feature <feature_id>
qrspi stage --root . --feature <feature_id>
qrspi prompt render Q --root . --feature <feature_id> --input "requirement"
qrspi prompt export --root . --lang zh --out qrspi-prompts.md
qrspi prompt export --root . --lang zh --split --out qrspi-prompts/
qrspi run --root . --feature <feature_id> --runner mock --max-stages 1
qrspi approve --root . --feature <feature_id>
qrspi reject --root . --feature <feature_id> --comment "needs changes"
qrspi rewind R --root . --feature <feature_id> --reason "redo research"
qrspi slice add mock-api --root . --feature <feature_id> --desc "Create mock API" --order 1 --checkpoint "curl passes"
qrspi slice list --root . --feature <feature_id>
qrspi context --root . --feature <feature_id>
qrspi budget

Runners

Optional external CLIs are used only when you choose a real runner:

  • claude
  • codex

For local state-machine validation, use:

qrspi run --runner mock --input "Add user authentication"

Documentation