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

@vanillagreen/pi-questions

v1.1.0

Published

Pi extension for structured multi-tab inline questions and bridge-driven replies.

Readme

pi-questions

Questions workflow

Structured inline questions for Pi, with multi-tab categories and pi-bridge answer/reject support.

Install

Via npm:

pi install npm:@vanillagreen/pi-questions

Via vstack:

cargo install --git https://github.com/vanillagreencom/vstack.git vstack
vstack add vanillagreencom/vstack --pi-extension pi-questions --harness pi -y

Restart Pi after installation.

What it provides

  • question tool for multiple-choice question tabs.
  • Ships instructions.md so vstack/npm install adds question usage rules to the scope's APPEND_SYSTEM.md, removed on uninstall or disable.
  • ctx.askQuestions(payload) helper for other Pi extensions.
  • Editor-area UI by default, matching opencode/Claude-style prompts.
  • Wrapped option labels/descriptions so long choices remain readable in narrow panes.
  • Optional legacy floating overlay mode.
  • pi-session-bridge integration for listing, answering, rejecting, and streaming question events.
  • pi-qol notification hook before prompts open.

Payload

{
  "id": "que_example",
  "header": "Choose next action",
  "questions": [
    {
      "header": "Issue Missing",
      "question": "How should I proceed?",
      "options": [
        { "label": "Use current branch", "description": "Continue without a tracker issue." },
        { "label": "Stop here", "description": "Wait for operator guidance." }
      ],
      "multiple": false,
      "allowCustom": true,
      "customLabel": "Type issue ID"
    }
  ]
}

Result:

{ "requestId": "que_example", "answers": [["Stop here"]] }

Rejected/cancelled result:

{ "requestId": "que_example", "cancelled": true }

Free-form answers

Set allowCustom: true on a tab to add a free-type row. Selecting it opens an inline text editor, and the submitted text is returned in that tab's answer array. Bridge callers can provide the same custom answer by passing any non-empty string for that tab.

Optional fields:

  • customLabel: label for the free-type row; default Type custom answer.
  • customPlaceholder: help text shown beside the custom row/editor.

Very large result JSON is truncated to Pi's default 50KB/2000-line tool limit and saved to a temp file with the path included in the result.

Interactive keys

| Key | Action | | --- | --- | | / or Tab | Switch tabs. | | / | Move selection. | | Enter | Pick/advance/submit; on the custom row, open text input. | | Space | Toggle multi-select rows; on the custom row, open text input. | | Esc | Cancel the request, or leave custom text input. |

Settings

Settings are exposed through pi-extension-manager under Questions.

  • renderMode: editor (default) or overlay.
  • optionRows: maximum visible option rows before scrolling.
  • popupWidth / popupMaxHeight: overlay mode only.
  • defaultHeader: fallback question title.
  • bridgeRepliesEnabled: allow pi-session-bridge to answer/reject pending questions.

Bridge control

Requires pi-session-bridge in the same Pi runtime.

pi-bridge stream --pid <PID>
pi-bridge questions --pid <PID>
pi-bridge answer --pid <PID> --request-id que_example --answers '[["Stop here"]]'
pi-bridge reject --pid <PID> --request-id que_example