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

@alexgorbatchev/pi-quick-answer

v1.0.0

Published

Pi extension to quickly extract questions, options, and decisions from the assistant's last response for prompt answering

Readme

@alexgorbatchev/pi-quick-answer

A Pi extension that extracts open questions, options, and decisions from the assistant's latest response, presents an interactive selector, and opens a prefilled modal editor to quickly submit your answer.

Workflow

  1. Run /quick-answer.
  2. The extension extracts questions and options from the last assistant turn using a fast model (or regex heuristic). Extraction results are cached per turn for instant repeat invocations.
  3. If multiple questions/options exist, select one using the inline interactive picker (ctx.ui.select).
  4. Enter your answer in the prefilled modal editor dialog ([Selected Question] -> ).
  5. Press Enter to submit; the message is sent directly to the assistant.

Installation

To install globally:

pi install npm:@alexgorbatchev/pi-quick-answer

To install locally for a specific project:

pi install npm:@alexgorbatchev/pi-quick-answer -l

Configuration

You can optionally configure preferred extraction models and custom system prompts in your global or project .pi/settings.json under the "@alexgorbatchev/pi-quick-answer" key.

{
  "@alexgorbatchev/pi-quick-answer": {
    "models": ["google/gemini-2.5-flash", "openai/gpt-4o-mini"],
    "systemPrompt": "Custom extraction prompt..."
  }
}

Options

  • models (string[] or string): Preferred model identifier(s) or wildcard patterns (e.g. "google/gemini-2.5-flash", "openai/gpt-4o-mini", "flash"). Evaluated in order against available models. If omitted, defaults to fast models (flash, mini, haiku) or the current active model.
  • systemPrompt (string): Overrides the default extraction prompt.

Startup Summary

On startup, the extension reports the resolved model and the prompt source:

[@alexgorbatchev/pi-quick-answer]
  model: google/gemini-2.5-flash
  prompt: default

Or if a custom prompt is configured:

[@alexgorbatchev/pi-quick-answer]
  model: google/gemini-2.5-flash
  prompt: project settings

Development & Testing

# Run unit tests
bun test

# Run linter and typecheck
bun run check

# Launch interactive Pi session with the test prompt prefilled
bun run test:local